Commit Graph

9 Commits

Author SHA1 Message Date
Pedro M. Baeza
e4d4c113e6 [FIX] account_payment_purchase: Don't propagate empty payment mode
Steps to reproduce the problem:

- Have a partner without payment mode.
- Create a PO with such partner.
- No payment mode is filled.
- Now fill the payment mode in the partner.
- Create the invoice for the PO.

Current behavior:

The invoice has empty payment mode.

Expected behavior:

The invoice has the partner payment mode. Someone may think that having
no payment mode in the PO may prevail over the partner's payment mode,
or even their flows may consist in empyting the payment mode in the PO
for not binding it with anything yet, but that strategy has more holes
than the one implemented here, as the flow presented proves.

You can then use another one like having an extra payment mode
"Undetermined" or similar for doing such classification as a more
resilient strategy.

It includes a regression test that fails before the change and now is
correct.

TT38608
2024-06-13 10:40:11 -05:00
Koen Loodts
ce5da9d7ef [MIG] account_payment_purchase: Migration to 15.0 2023-06-01 11:26:57 +02:00
Andrea
c450a8a8e2 Split account_payment_purchase (add account_payment_purchase_stock) 2023-06-01 11:26:55 +02:00
mreficent
9a66745752 [IMP] account_payment_purchase: black, isort 2023-06-01 11:26:55 +02:00
cubells
850663b898 account_payment_purchase: Migration to 11.0 2023-06-01 11:26:55 +02:00
cubells
090dc8440d account_payment_purchase module 2023-06-01 11:26:54 +02:00
Alexis de Lattre
b3c160823b Remove module account_payment_purchase 2023-06-01 11:26:54 +02:00
Pedro M. Baeza
6939b277fd account_payment_purchase: Propagate payment_mode on MTO/drop shipping 2023-06-01 11:26:53 +02:00
Pedro M. Baeza
6b1d85a90f Migration and enhancement of all modules involved in SEPA 2023-06-01 11:26:52 +02:00