Commit Graph

9 Commits

Author SHA1 Message Date
Pedro M. Baeza
f286691f14 [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
2022-08-29 11:37:01 +02:00
Andrea
30b2feb0f8 Split account_payment_purchase (add account_payment_purchase_stock) 2021-01-22 12:35:18 +01:00
mreficent
373cf0b8f4 [IMP] account_payment_purchase: black, isort 2021-01-22 12:35:18 +01:00
Nikul-Chaudhary
9497b1802e [MIG] account_payment_purchase v11 to v12 2021-01-22 12:35:18 +01:00
cubells
0724f16753 account_payment_purchase: Migration to 11.0 2021-01-22 12:33:19 +01:00
cubells
de82b267c7 account_payment_purchase module 2021-01-22 12:33:19 +01:00
Alexis de Lattre
682a2191cb Remove module account_payment_purchase 2021-01-22 12:33:19 +01:00
Pedro M. Baeza
c73b278437 account_payment_purchase: Propagate payment_mode on MTO/drop shipping 2021-01-22 12:33:19 +01:00
Pedro M. Baeza
7b803c4744 Migration and enhancement of all modules involved in SEPA 2021-01-22 12:33:19 +01:00