Commit Graph
6 Commits
Author SHA1 Message Date
Cédric Krier a2ba60730b Set origin on shipment cost invoice line earlier
The origin must be set before calling on_change_product such that module like
account_tax_rule_country can fill the tax rule pattern.

Closes #12507
2023-08-29 14:11:32 +02:00
Cédric Krier 60e3544d81 Convert shipment costs in company currency when they have been generated
For shipment cost from the shipment, the effective date of the shipment is
used.
And for shipment cost from the sale order, the sale date is used.
2023-08-21 15:58:05 +02:00
Cédric Krier d03ff8f1de Deduce sold shipment cost from shipment once sale is shipped
When the shipment cost method is by order, the sold shipment cost is
dispatched between shipments once the sale is shipped.
The amount is stored on the shipment for each sale (in case the shipments have
been grouped) and deduced from the shipment cost when it is set on the stock
moves.

Closes #12506
2023-08-21 15:34:26 +02:00
Cédric Krier 237b3b3e49 Reuse shipment cost readonly to set carriage cost readonly 2023-08-21 15:30:53 +02:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier 69592addf3 Prepare migration to monorepo 2022-12-16 19:13:28 +01:00