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:
Cédric Krier
2025-08-07 10:28:09 +02:00
parent f69b50af84
commit f2fa5ea0f8
+3 -3
View File
@@ -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