Commit Graph

29 Commits

Author SHA1 Message Date
Luis J. Salvatierra
3e10ad2102 [FIX] account_payment_partner: fetchPreloadedData bug using selection widget 2023-07-26 16:44:57 +02:00
Rodrigo
6389e560c3 [FIX] account_payment_partner: bad application of attributes on the field partner_bank_id, this commit fixes showing the same field twice in customer invoices. 2023-04-13 16:35:55 +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
Miquel Raïch
e40ed0979c [FIX] account_payment_partner: only use bank_account_required in bills 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
Alexis de Lattre
5a55fc89a5 account_payment_partner: add optional="hide" on payment mode in invoice tree view 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
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
Marçal Isern
cf6cee8a86 [IMP] account_payment_partner: black, isort, prettier 2022-11-29 14:15:03 +01:00
OCA-git-bot
fefdb68f53 pre-commit update 2022-11-29 14:15:03 +01:00
Raf Ven
290b03aa40 [MIG] account_payment_sale: 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
altoch
c798da607e Update invoice_supplier_form view
Set proper context to partner_bank_id field so on bank account number creation it's set the correct owner
2022-11-29 14:15:03 +01:00
Mourad
dc8422c50e [MIG] account_payment_partner: migrate to 12.0 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
Carlos Dauden
59c0a5a3d4 [FIX+IMP] account_payment_partner: Fix invoice bank account assignation + show it on invoice report
* IMP: Add options to show partner bank account on invoice report
* FIX: Don't auto-assign partner bank account due to problems when you have a direct debit payment
  method with bank_account_link = 'fixed'. Bank account is shown through new mechanism.
2022-11-29 14:15:03 +01:00
François Honoré
5bb64013cf [FIX] Fix issue when the bank_id of partner_bank_id is not set (field not mandatory) and create a traceback for the user
Use t-if
2022-11-29 14:15:03 +01:00
etobella
4fcedc53bc [MIG] account_payment_partner 2022-11-29 14:15:03 +01:00
Alexis de Lattre
9a0f233051 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)
2022-11-29 14:15:03 +01:00
Alexis de Lattre
294cd5ffe9 [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
2022-11-29 14:15:03 +01:00
Pedro M. Baeza
77ff49f9de [IMP] account_payment_partner: Several things
* Short headers
* Remove label field

  There's already a field in the payment mode called 'note' that is
  printed on the invoices, so there's no need of another field for
  that purpose. This field is added by account_banking_payment_export

* Bump version numbers
* es translations
* Name to filter for better inheratiblity
2022-11-29 14:15:03 +01:00
Alexis de Lattre
d77f563860 [FIX+IMP] account_payment_partner: Several things:
* Forgot to remove a usecase of debit_denied
* Add ACL
* Better filters on payment.order.create wizard
* Add default values for those filters on payment.mode
* FIX remove coma at end of line
* Add translatable 'label' field on payment.mode, designed to be used in invoice report
2022-11-29 14:15:03 +01:00
AngelMoya-Domatix
93fb3cae36 ADD description on payment mode and show it on invoice report
FIX tabs

FIX translate
2022-11-29 14:15:03 +01:00
Alexis de Lattre
5d97d82d86 [IMP] account_payment_partner: Several things:
* move unused file + cleanup code
* Add sale_ok and purchase_ok filters in partner/sale/purchase form views
* Use widget=selection for payment_mode_id fields
* Update demo data
* Return res in inherit (even if res is empty in this case)
2022-11-29 14:15:03 +01:00
Roberto Lizana
34f005b4ed [FIX+IMP] account_payment_partner: 2 things:
* IMP: Add filter group by payment mode in account invoices
* FIX: Remove deprecated tag type
2022-11-29 14:15:03 +01:00
Pedro M. Baeza
849047a367 [MIG] account_payment_partner: Migration to v8
* Migration and enhancement of all modules involved in SEPA
* Clean files
* Replace deprecated workflow calls
* Translation template files
* Translations to spanish
* Use sale_ok and purchase_ok instead of tweaking payment type
2022-11-29 14:15:03 +01:00