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:
Cédric Krier
2015-04-11 13:29:27 -04:00
parent 9feff360a2
commit c9e71827a2
+1
View File
@@ -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):