josep-tecnativa
365ea506a6
[IMP] account_payment_partner: test performance improvement
...
- Include context keys for avoiding mail operations overhead.
2024-09-19 10:43:10 +02:00
Pedro M. Baeza
2b4bc079c2
[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-25 18:40:40 +01:00
Pedro M. Baeza
c816feb80d
[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-25 18:14:57 +01:00
Thomas Binsfeld
00ab7d0df1
[MIG] account_payment_partner: Migration to 16.0
2022-11-29 14:51:23 +01:00
David Ramia
7c98ab268e
[FIX] account_payment_partner: Fix tests
...
Add company permissions to the admin user to be able to create the demo data
2022-11-29 14:15:04 +01:00
Marçal Isern
ec6028f8d4
[MIG] account_payment_partner: Migration to 15.0
2022-11-29 14:15:04 +01:00
Marçal Isern
8ad04276f5
[IMP] account_payment_partner: black, isort, prettier
2022-11-29 14:15:03 +01:00
Víctor Martínez
b1720bdca8
[FIX] account_payment_partner: Set the correct value of payment_mode_id
...
instead of False
TT31904
2022-11-29 14:15:03 +01:00
Carlos Dauden
7660d5924b
[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
2022-11-29 14:15:03 +01:00
Víctor Martínez
03a65c40b3
[IMP] account_payment_partner: Add refund_payment_mode_id to set in reverse moves (Adapt to 14.0)
2022-11-29 14:15:03 +01:00
Víctor Martínez
17b8ca575f
[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)
2022-11-29 14:15:03 +01:00
João Marques
f4d509e7ae
[FIX] account_payment_partner: Fix tests
...
After fcaa54939e , we need to specify the invoice date for vendor bills to be able to post them
2022-11-29 14:15:03 +01:00
Víctor Martínez
d6257a213c
[FIX] account_payment_partner: Set correct journals in tests to prevent error
2022-11-29 14:15:03 +01:00
Alexis de Lattre
3e2c2b8cea
account_payment_partner: FIX form view of account.move
...
Replace python constraint by check_company=True on payment_mode_id of account.move
2022-11-29 14:15:03 +01:00
Marçal Isern
d1fa981bd2
[MIG] account_payment_partner: Migration to 14.0
2022-11-29 14:15:03 +01:00
mreficent
3fe3f9831a
[MIG] account_payment_purchase: Migration to 13.0
2022-11-29 14:15:03 +01:00
Raf Ven
26de286d5c
[MIG] account_payment_partner: Migration to 13.0
2022-11-29 14:15:03 +01:00
Raf Ven
31817a7d88
[IMP] account_payment_partner: black, isort
2022-11-29 14:15:03 +01:00
Raf Ven
368ff27b1c
[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
2022-11-29 14:15:03 +01:00
Pedro M. Baeza
a6e4752c78
[MIG] account_payment_partner: Fix tests for new version
2022-11-29 14:15:03 +01:00
Pedro M. Baeza
4293479ebc
[MIG] account_payment_partner: Adapt tests + code to latest version
2022-11-29 14:15:03 +01:00
cubells
9c4906c13b
[IMP] account_payment_partner: Add several tests
2022-11-29 14:15:03 +01:00
Jordi Ballester
f32a73ed6c
add tests and small fixes
2022-11-29 14:15:03 +01:00