From c9e71827a285bf1c496647899334ed52fc70ad0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sat, 11 Apr 2015 13:29:27 -0400 Subject: [PATCH] Explicitly set the default warehouse on the sale The warehouse can be needed when calling on_change's issue4693 review8121002 --- opportunity.py | 1 + 1 file changed, 1 insertion(+) diff --git a/opportunity.py b/opportunity.py index 1bb56f53c4..4a2e911b5e 100644 --- a/opportunity.py +++ b/opportunity.py @@ -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):