[FIX] stock: run scheduler

the "company_id" value wasn't declared explicitly in the "_prepare_procurement_values" method, wich caused the procurement "run" method to set a company by default regardless of the company associated to the orderpoint.

this caused issues in a multi-company config. ( see #23764 )
This commit is contained in:
Arnaud Baes
2018-03-21 15:52:41 +01:00
committed by Simon Lejeune
parent aed8e199ce
commit 3c468b0185
+1
View File
@@ -829,5 +829,6 @@ class Orderpoint(models.Model):
'date_planned': date or self._get_date_planned(product_qty, datetime.today()),
'warehouse_id': self.warehouse_id,
'orderpoint_id': self,
'company_id': self.company_id,
'group_id': group or self.group_id,
}