diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-05-09 13:55:27 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-05-09 13:55:27 +0200 |
| commit | eeae2b80ea9e679a86ca7c8982e679b9ee9c9023 (patch) | |
| tree | fff56bc907eb6874dc7a9b78382bd9837441b918 /addons/stock/models/procurement.py | |
| parent | 7b67a1474b4f8df411804cebf8ebd7afa193d0dd (diff) | |
| parent | b793e23ae53b5f1edab8c98bbed7ac5f5f921280 (diff) | |
[MERGE] forward port branch 11.0 up to b793e23ae53
Diffstat (limited to 'addons/stock/models/procurement.py')
| -rw-r--r-- | addons/stock/models/procurement.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock/models/procurement.py b/addons/stock/models/procurement.py index ba047badef8..fd08b362949 100644 --- a/addons/stock/models/procurement.py +++ b/addons/stock/models/procurement.py @@ -77,7 +77,7 @@ class ProcurementRule(models.Model): data = self._get_stock_move_values(product_id, product_qty, product_uom, location_id, name, origin, values, group_id) # Since action_confirm launch following procurement_group we should activate it. - move = self.env['stock.move'].sudo().create(data) + move = self.env['stock.move'].sudo().with_context(force_company=data.get('company_id', False)).create(data) move._action_confirm() return True |
