summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2017-06-15 15:00:18 +0200
committerGoffin Simon <sig@odoo.com>2017-06-19 23:40:27 +0200
commita133afe8a1e3741c7943a0db1a87fd68edfcb166 (patch)
tree5ec9aa07d85121a8ca6cb2cbe58b5443d83e5ed8 /addons/web/static/src/js/views/basic/basic_controller.js
parent29a717529205081f18f78711d1e2845873e86897 (diff)
[FIX] mrp: same products in different sub-phantom-BoMs should be allowed
Let's consider 4 products P0, P1, P2 and P3 where: - P0 depends on P1, P2 and P3 - P1 depends on P2 and P3 - P2 depends on P3 NB: "x depends on y" means that there is a phantom BOM for x where y is in a line. With this example, before the fix, when creating a MO for P0, the function "explode" raised a user error saying that there was a recursion error. Even if in this case there was no recursion. Now to check if there is a recursion, a graph of the dependencies of the bom is created while exploding the boms and a function "isCyclic" is applied on the graph to verify that there is no cycle which means no recursion in the dependencies. The algorithm was taken from this site: http://www.geeksforgeeks.org/detect-cycle-in-a-graph/ opw:745453
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions