Set web shop currency and methods on sale after calling on_change's
The on_change_party set the default currency from the company and methods from the party. Closes #14149
This commit is contained in:
1 parent
08ed6e529b
commit
8f7ebb18cd
1 file changed
+3
-3
@@ -250,13 +250,13 @@ class Shop(DeactivableMixin, ModelSQL, ModelView):
|
||||
party = self.guest_party
|
||||
sale = Sale(party=party)
|
||||
sale.company = self.company
|
||||
sale.currency = self.currency
|
||||
sale.warehouse = self.warehouse
|
||||
sale.invoice_method = 'order'
|
||||
sale.shipment_method = 'order'
|
||||
sale.web_shop = self
|
||||
sale.on_change_party()
|
||||
sale.on_change_web_shop()
|
||||
sale.currency = self.currency
|
||||
sale.invoice_method = 'order'
|
||||
sale.shipment_method = 'order'
|
||||
return sale
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user