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 : 6.0
This commit is contained in:
1 parent
769bc0ad14
commit
ee2721d0b6
1 file changed
+3
-3
@@ -235,13 +235,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