Commit Graph

14 Commits

Author SHA1 Message Date
Pedro M. Baeza
d879a42c74 [IMP] account_payment_partner: Make payment mode editable on entry
Complement of 998f8df6aa254266c015fab144ba290e1a386cf0

Extend the editability to the journal entry (account.move), taking
as criteria if there's no reconciliation made, which is the definitory
one.

It includes test for this new partner, both the mode propagation and
the editability check.

TT39850
2023-01-18 10:02:31 +01:00
Pedro M. Baeza
c11afd5f96 [IMP] account_payment_partner: Make payment mode editable on journal item
This field was editable in previous version before invoice > move
refactoring, and it's logic to allow to change payment mode once the
invoice has been posted without the need of resetting it to draft.

Thus, the field has been changed to computed writable field, taking care
of the consequences at model level (compute) and view level (add the
field in views + proper attrs).

This commits adds tracking=True to the payment mode field as well to be
aware when and who the payment mode is changed in the invoice, no matter
if directly changed in draft, or through the change on the journal item.

TT39850
2023-01-18 09:26:55 +01:00
Víctor Martínez
14efae4b0a [FIX] account_payment_partner: Set the correct value of payment_mode_id instead of False
TT31904
2021-09-16 08:28:31 +02:00
Carlos Dauden
86893badc6 [FIX] account_payment_partner: _compute_invoice_partner_bank isn't executed when partner_id changes
TT30875
2021-07-07 15:54:45 +02:00
Víctor Martínez
32b6b88dfd [IMP] account_payment_partner: Add refund_payment_mode_id to assign any payment mode to set auto-compute in reverse moves (in_refund and out_refund) 2021-05-25 08:13:31 +02:00
Víctor Martínez
05badcddc6 [FIX] account_payment_partner: Set correct journals in tests to prevent error 2021-03-12 12:08:35 +01:00
mreficent
fbdfb3db4b [MIG] account_payment_purchase: Migration to 13.0 2020-03-18 11:35:41 +01:00
Raf Ven
b6ef376371 [MIG] account_payment_partner: Migration to 13.0 2019-12-19 11:28:34 +01:00
Raf Ven
7c4fcab6f6 [IMP] account_payment_partner: black, isort 2019-12-17 14:44:20 +01:00
Raf Ven
2cd4ce31c1 [FIX] test_invoice_refund
The test checks on empty bank account but with Odoo commit d5688e6ca0 (diff-f3712147f4b25231caa371bd83265dbe) the company bank account gets defaulted when not specified
2019-12-17 14:44:20 +01:00
Pedro M. Baeza
8bec1bcfc8 [MIG] account_payment_partner: Fix tests for new version 2019-12-17 14:44:20 +01:00
Pedro M. Baeza
b8ba454e6f [MIG] account_payment_partner: Adapt tests + code to latest version 2019-12-17 14:44:20 +01:00
cubells
f986b42414 [IMP] account_payment_partner: Add several tests 2019-12-17 14:44:20 +01:00
Jordi Ballester
b234ee0ce7 add tests and small fixes 2019-12-17 14:44:20 +01:00