Miquel Alzanillas
4d1c73bd14
[MIG] account_payment_partner: Migration to 17.0
2023-11-25 08:46:06 +01:00
Miquel Alzanillas
4d46d09a4b
[IMP] account_payment_partner: pre-commit auto fixes
2023-11-22 22:20:03 +01:00
Pedro M. Baeza
5e47c9dfb1
[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-11-22 22:13:18 +01:00
Pedro M. Baeza
9f5b540b53
[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-11-22 22:13:18 +01:00
Thomas Binsfeld
e0e25d6542
[MIG] account_payment_partner: Migration to 16.0
2023-11-22 22:13:18 +01:00
David Ramia
07a952be63
[FIX] account_payment_partner: Fix tests
...
Add company permissions to the admin user to be able to create the demo data
2023-11-22 22:13:18 +01:00
Marçal Isern
4c85747dfe
[MIG] account_payment_partner: Migration to 15.0
2023-11-22 22:13:18 +01:00
Marçal Isern
a420a625f4
[IMP] account_payment_partner: black, isort, prettier
2023-11-22 22:13:18 +01:00
Víctor Martínez
7ceeae0aeb
[FIX] account_payment_partner: Set the correct value of payment_mode_id
...
instead of False
TT31904
2023-11-22 22:13:18 +01:00
Carlos Dauden
7afd7b6f18
[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
2023-11-22 22:13:18 +01:00
Víctor Martínez
0b62e5dd84
[IMP] account_payment_partner: Add refund_payment_mode_id to set in reverse moves (Adapt to 14.0)
2023-11-22 22:13:18 +01:00
Víctor Martínez
989de87103
[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)
2023-11-22 22:13:18 +01:00
João Marques
6f692486f8
[FIX] account_payment_partner: Fix tests
...
After fcaa54939e , we need to specify the invoice date for vendor bills to be able to post them
2023-11-22 22:13:18 +01:00
Víctor Martínez
1682701242
[FIX] account_payment_partner: Set correct journals in tests to prevent error
2023-11-22 22:13:18 +01:00
Alexis de Lattre
bf0edfe419
account_payment_partner: FIX form view of account.move
...
Replace python constraint by check_company=True on payment_mode_id of account.move
2023-11-22 22:13:18 +01:00
Marçal Isern
b004ad80da
[MIG] account_payment_partner: Migration to 14.0
2023-11-22 22:13:18 +01:00
mreficent
e77a67f3ad
[MIG] account_payment_purchase: Migration to 13.0
2023-11-22 22:13:18 +01:00
Raf Ven
c291c0f6fc
[MIG] account_payment_partner: Migration to 13.0
2023-11-22 22:13:18 +01:00
Raf Ven
1ec4093c3a
[IMP] account_payment_partner: black, isort
2023-11-22 22:13:18 +01:00
Raf Ven
95acc9500a
[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
2023-11-22 22:13:18 +01:00
Pedro M. Baeza
aaf4d65c7e
[MIG] account_payment_partner: Fix tests for new version
2023-11-22 22:13:18 +01:00
Pedro M. Baeza
dd68f62db7
[MIG] account_payment_partner: Adapt tests + code to latest version
2023-11-22 22:13:18 +01:00
cubells
ab3c2f0cc5
[IMP] account_payment_partner: Add several tests
2023-11-22 22:13:18 +01:00
Jordi Ballester
450142073b
add tests and small fixes
2023-11-22 22:13:18 +01:00