summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.editor.js
diff options
context:
space:
mode:
authorDhaval Panchal <dpa@odoo.com>2016-12-16 17:03:22 +0530
committerSimon Lejeune <sle@openerp.com>2017-02-17 13:21:58 +0100
commitb1b3de1339a13504ac5e223aec465bd70417d11e (patch)
tree1d0604fe93017f9115d64a26180536ba01e30f36 /addons/website/static/src/js/website.editor.js
parent9770256f66fa6dda2bb1673e93713a0ac3e063eb (diff)
[REF] stock: no more global push/pull rules
Global push/pull rules are error prone and can be replaced efficiently by creating a "global" route. There was an odd behavior when you delete a route, the different rules of this route were'nt deleted and thus became global. A lot of users didn't understand that, so to avoid this unexpected behaviour, we delete on cascade the push and pull rules when a route is deleted. To avoid inconsistencies in the system, we also restrict the deletion of rules when they are used in a stock move or in a procurement. We also restrict the deletion of routes used in warhouses and order lines. We change the global pull rule test by applying the procurement rule on a route and apply this route on a product. Menu items related to global rules are removed, so are the logic to look for them in the methods looking for which pull/push rule to apply. joint work by @dpa-odoo, @pimodoo and @sle-odoo
Diffstat (limited to 'addons/website/static/src/js/website.editor.js')
0 files changed, 0 insertions, 0 deletions