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 (grafted from 28c6378e6e274df23e31f85bdc9062a28f2b6fdd) --HG-- branch : 7.0
This commit is contained in:
@@ -242,13 +242,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