Commit Graph

7 Commits

Author SHA1 Message Date
Pedro M. Baeza
3911d8c887 [FIX] account_payment_sale: Adapt tests to 18489012
The expected one is to not have partner bank set, as we don't want the
invoice is printed with such bank account forced.
2021-07-21 08:44:50 +02:00
Alexis de Lattre
f6f59e47a4 [MIG] account_payment_sale to 14.0 2020-12-24 10:33:49 +01:00
Raf Ven
a16f4615c4 [MIG] account_payment_sale: Migration to 13.0 2020-12-24 10:23:31 +01:00
Raf Ven
7600ec8e84 [IMP] account_payment_sale: black, isort 2020-12-24 10:23:31 +01:00
Laurent Mignon (ACSONE)
09e2da951b [FIX] account_payment_sale: Propagate payment_mode to invoices created from a call to sale.action_invoice_create
Into the normal process of the invoice creation from a sale order by odoo, the onchange_partner is called. In some case, this call will reset the specific payment_mode and/or partner_bank_id set on the sale_order.
To fix this issue, we must override the _finalize_invoices method, take a snapshot of these values before the call to super and restore these values if these are changed.
fixes #536
2020-12-24 10:23:31 +01:00
Pedro M. Baeza
9a38977e50 [MIG] account_payment_sale: Adapt tests to v12 2020-12-24 10:23:31 +01:00
mpanarin
bea218789f [IMP] account_payment_sale: Add tests to increase coverage 2020-12-24 10:23:31 +01:00