Commit Graph

8 Commits

Author SHA1 Message Date
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
Raf Ven
832bdb54fe [MIG] account_payment_partner: Migration to 13.0 2020-10-20 07:32:03 +02:00
Raf Ven
615dc1bdf0 [IMP] account_payment_partner: black, isort 2020-10-20 07:32:03 +02:00
Guewen Baconnier
36b37cc343 Add indexes on account payment models
The fields where the indexes are added are used in searches in
account_payment_order, which becomes really slow when a database have
many lines.
2020-10-20 07:32:03 +02:00
cubells
1eac10f419 [IMP] account_payment_partner: Add several tests 2020-10-20 07:32:03 +02:00
etobella
6226f64fa1 [MIG] account_payment_partner 2020-10-20 07:32:03 +02:00
Alexis de Lattre
2033a69b8d Port almost all modules to v10 (#305)
Port almost all modules to v10

* Update to EPC Rulebook v9.2 that start to apply on 2016-11-20 (bug #300)
2020-10-20 07:32:03 +02:00
Alexis de Lattre
b000259c80 [MIG] account_payment_partner: Start to port bank-payment to v9 (with a lot of improvements) during the Sorrento Code sprint 2016
Improvements include:
- full re-organisation of modules and big re-organisation of the code
- simplification of the code related to the fact that support for direct debit is now in t
he base module, not added by an optional module account_direct_debit (module was removed)
- new design of the wizard to select move lines to pay
- support for non-SEPA file transfer-
- support for German direct debit SEPA files (fixes bug #129)
- remove workflow of payment.order
* Finalise the wizard of selection of move lines to pay
* Add button "Add to payment/debit order" on invoice form view
* Started to integrate payment transfer in account_payment_order (not finished at all though)
* Copy payment mode and mandate from invoice to refund
* Run dos2unix on the few files that had DOS carriage return
* Add _id suffix on M2O fields customer_payment_mode and supplier_payment_mode (Odoo did the same on all the M2O property fields of res.partner)
* Better handling of partner_bank_id and mandate_id on invoice: invisible/required/onchange
* Move field bank_account_required from module account_payment_partner to account_payment_mode
2020-10-20 07:32:03 +02:00