Skip to content
Snippets Groups Projects
Commit 3c468b01 authored by Arnaud Baes's avatar Arnaud Baes Committed by Simon Lejeune
Browse files

[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 )
parent aed8e199
Branches
Tags
No related merge requests found
......@@ -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,
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment