diff options
| author | Darshil Trivedi <dat@odoo.com> | 2018-07-03 15:22:07 +0530 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2018-07-19 14:43:08 +0200 |
| commit | 827958a8902589246dd741341ce1bc5465059909 (patch) | |
| tree | 4aab62ac9f8ae82ca7846be5afca7ce550546e5d /addons/procurement_jit | |
| parent | c93ae01986578fff16e401b30232a314ba6bfd4d (diff) | |
[REF] stock: rename procurement.rule to stock.rule
This commit is related to task ID 1852969.
Diffstat (limited to 'addons/procurement_jit')
| -rw-r--r-- | addons/procurement_jit/sale.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/procurement_jit/sale.py b/addons/procurement_jit/sale.py index ae6023e74b5..b35cd0e606f 100644 --- a/addons/procurement_jit/sale.py +++ b/addons/procurement_jit/sale.py @@ -8,8 +8,8 @@ class SaleOrderLine(models.Model): _inherit = "sale.order.line" @api.multi - def _action_launch_procurement_rule(self): - res = super(SaleOrderLine, self)._action_launch_procurement_rule() + def _action_launch_stock_rule(self): + res = super(SaleOrderLine, self)._action_launch_stock_rule() orders = list(set(x.order_id for x in self)) for order in orders: reassign = order.picking_ids.filtered(lambda x: x.state=='confirmed' or (x.state in ['waiting', 'assigned'] and not x.printed)) |
