Commit Graph

12 Commits

Author SHA1 Message Date
Pedro M. Baeza
c24ebfad61 [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 feature, both the mode propagation and
the editability check.

TT39850
2023-01-18 17:11:18 +01:00
Pedro M. Baeza
da8ca5bb62 [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 16:09:51 +01:00
Víctor Martínez
0263e15d0e [FIX] account_payment_partner: Set the correct value of payment_mode_id
instead of False

TT31904
2021-09-17 16:20:11 +02:00
JordiMForgeFlow
7bcbd1d01a [14.0][FIX] account_payment_partner: pass invoice_partner_bank_id correctly on account move create 2021-07-30 14:31:35 +02:00
Carlos Dauden
2e5995027c [FIX] account_payment_partner: _compute_invoice_partner_bank isn't executed
- When value is set from SO _prepare_invoice method
- When partner_id changes

TT30875
2021-07-13 20:37:30 +02:00
Víctor Martínez
1555670c58 [IMP] account_payment_partner: Add refund_payment_mode_id to set in reverse moves (Adapt to 14.0) 2021-05-25 16:06:04 +02:00
Víctor Martínez
8ea977b238 [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 12:54:14 +02:00
Alexis de Lattre
0800cec5c7 account_payment_partner: FIX form view of account.move
Replace python constraint by check_company=True on payment_mode_id of account.move
2021-02-01 10:33:57 +01:00
Marçal Isern
f268125f3e [MIG] account_payment_partner: Migration to 14.0 2020-10-20 07:32:03 +02:00
Atchuthan Ubendran
04887b91bd [FIX] account_payment_partner: payment_mode_id default not set for Refund 2020-10-20 07:32:03 +02:00
Raf Ven
0f23ec3a97 [MIG] account_payment_sale: Migration to 13.0 2020-10-20 07:32:03 +02:00
Raf Ven
832bdb54fe [MIG] account_payment_partner: Migration to 13.0 2020-10-20 07:32:03 +02:00