Commit Graph

4 Commits

Author SHA1 Message Date
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