Explicitly set the default warehouse on the sale
The warehouse can be needed when calling on_change's issue4693 review8121002
This commit is contained in:
@@ -282,6 +282,7 @@ class SaleOpportunity(Workflow, ModelSQL, ModelView):
|
||||
comment=self.comment,
|
||||
sale_date=None,
|
||||
origin=self,
|
||||
warehouse=Sale.default_warehouse(),
|
||||
)
|
||||
|
||||
def create_sale(self):
|
||||
|
||||
Reference in New Issue
Block a user