[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:
committed by
Simon Lejeune
parent
aed8e199ce
commit
3c468b0185
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user