Commit Graph

12 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
Jordi Ballester
8d7e6ce34b [account_payment_purchase][fix] Only warn for non-blank payment mode or bank PO
- Only issue a warning message if the PO had a non-blank payment mode or bank.
2021-11-25 19:58:05 +07:00
Carlos Roca
cdb7f32e4f [MIG] account_payment_purchase: Migration to v14 2021-01-22 12:55:03 +01:00
Andrea
30b2feb0f8 Split account_payment_purchase (add account_payment_purchase_stock) 2021-01-22 12:35:18 +01:00
mreficent
86ccb51488 [MIG] account_payment_purchase: Migration to 13.0 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
Abranes
c8ed1ae150 account_payment_purchase: Migration to 10.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