Commit Graph

273 Commits

Author SHA1 Message Date
Carlos Roca
a5b1cdbe50 [MIG] account_payment_order: Migration to v14 2022-03-09 17:58:47 +01:00
Jesús Alan Ramos Rodríguez
6d486d8b93 [MIG] account_payment_order: Migration to 14.0 2022-03-09 17:58:47 +01:00
Andrea
d7e72114e6 [FIX] avoid cache miss in compute 2022-03-09 17:58:47 +01:00
Ignacio Buioli
f57e06e222 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (220 of 220 strings)

Translation: bank-payment-13.0/bank-payment-13.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_order/es_AR/
2022-03-09 17:58:47 +01:00
Ignacio Buioli
7b68119b60 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (220 of 220 strings)

Translation: bank-payment-13.0/bank-payment-13.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_order/es_AR/
2022-03-09 17:58:47 +01:00
Ignacio Buioli
b781a8057a Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (220 of 220 strings)

Translation: bank-payment-13.0/bank-payment-13.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-13-0/bank-payment-13-0-account_payment_order/es_AR/
2022-03-09 17:58:47 +01:00
Ignacio Buioli
fb1fc0e441 Added translation using Weblate (Spanish (Argentina)) 2022-03-09 17:58:47 +01:00
Luc De Meyer
d09294761e move Debit Order after Payments in Customer menu 2022-03-09 17:58:47 +01:00
Luc De Meyer
6654bddd2a [13.0][IMP]move payment order menus 2022-03-09 17:58:47 +01:00
Alexis de Lattre
848d50fc08 Fix state condition on invoice view 2022-03-09 17:58:47 +01:00
Valentin Vinagre Urteaga
621b92c0dc [FIX] account_payment_order: fix the attachment file name & dowload.
Case: After the configuration of a debit order and generating the .xml file, user can't download it from the next step screen using the download link.
This fix makes the .xml file downloadable from the .xml file name as it was in older versions
2022-03-09 17:58:47 +01:00
Valentin Vinagre Urteaga
a4803323a4 [FIX] account_payment_order: fix payment orders from invoice tree view
Case: User can't add invoices to payment/debit orders from the tree view but it's still possible to add them one by one from the form view.
- Remove binding_views="form": by default are "tree & form".
With this fix, users can add payment/debit orders from the invoice tree view
2022-03-09 17:58:47 +01:00
Valentin Vinagre Urteaga
ad66139589 [FIX] account_payment_order: fix set partner_bank_id in account move lines
Case:
The bank account isn't set properly in the payment order lines, because the bank account is only got from account.move.line or the first bank account in the partner_id, but never from the invoice (account.move).

Solution:
With this fix, the bank account will be get from account.move when matching the criteria.
2022-03-09 17:58:47 +01:00
Stefan Rijnhart
e9be65da1f [FIX] Set priority on alternate view 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
4a8f7ea705 [IMP] account_payment_order: Print payment order in user lang if not generated
When you haven't still generated the file, `generated_user_id` is not filled, and
so, you can't control the language in which the payment order is going to be printed.

Adding a condition for using the user language in that case makes this more
comfortable.
2022-03-09 17:58:47 +01:00
Andrea
f17666da24 [FIX] multicompany rule 2022-03-09 17:58:47 +01:00
Raf Ven
10a529c859 [MIG] account_payment_order: Migration to 13.0 2022-03-09 17:58:47 +01:00
Raf Ven
4f076b21f4 [IMP] account_payment_order: black, isort 2022-03-09 17:58:47 +01:00
Carles Antoli
8cc61a8cd0 Added translation using Weblate (Catalan) 2022-03-09 17:58:47 +01:00
Ernesto Tejeda
b76448c265 [IMP] account_payment_order: change 'bill reference' column value in reports 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
45f8be854c [FIX] account_payment_order: Restore colors in payment order tree view 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
d35c35890e [FIX] account_payment_order: Sequences must be noupdate=1 2022-03-09 17:58:47 +01:00
Sergio Teruel
829975de4d [FIX] account_payment_order: Fix payment order report. Adapt to bootstrap4 2022-03-09 17:58:47 +01:00
Jaume Planas
970a71a761 Translated using Weblate (Catalan)
Currently translated at 100.0% (223 of 223 strings)

Translation: bank-payment-12.0/bank-payment-12.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_order/ca/
2022-03-09 17:58:47 +01:00
Carlos Dauden
46245a3288 [IMP] account_payment_order: Select first partner bank 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
071fb9f9ce [FIX+IMP] account_payment_order: Make tests resilient + inbound inheritable + SavepointCase
Previous tests did several risk operations on tests, like performing an unbound search
on payment orders, what can lead to errors if there are some data on DB (or for example
we add in the future some payment orders in demo.

This commit also split the tests for inbound payment in a base inheritable class that
can be reused in other dependant modules, and the test of this module.

Finally, we use SavepointCase for improving performance in tests.
2022-03-09 17:58:47 +01:00
Pedro M. Baeza
de31571676 [FIX] account_payment_error: Avoid singleton error in allowed_journal_ids
Fixes #612
2022-03-09 17:58:47 +01:00
Guewen Baconnier
6d862e3e71 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.
2022-03-09 17:58:47 +01:00
Raf Ven
2cb49e4bf4 [12.0] [FIX] Failing test test_account_payment_02 2022-03-09 17:58:47 +01:00
Thomas Binsfeld
a78917fa89 [REF] Payment Order: move all move preparation code in _prepare_move 2022-03-09 17:58:47 +01:00
Rubén Cerdà
6c460b13e4 [FIX] account_payment_order: report title 2022-03-09 17:58:47 +01:00
Rubén Cerdà
63217c9da2 [FIX] account_payment_order: report totals 2022-03-09 17:58:47 +01:00
Rubén Cerdà
1386584941 [FIX] account_payment_order: wrong function name 2022-03-09 17:58:47 +01:00
Marco Calcagni
e0e14e44d3 Translated using Weblate (Italian)
Currently translated at 5.5% (12 of 217 strings)

Translation: bank-payment-12.0/bank-payment-12.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_order/it/
2022-03-09 17:58:47 +01:00
Thomas Binsfeld
257289dfb2 [ADD] Payment Order: only payment order option on payment methods
New option on payment methods: payment order only (unchecked by default) allowing to enforce the use of payment orders for some payment methods
2022-03-09 17:58:47 +01:00
Thomas Binsfeld
ec160255a8 [REF] Account Payment Order: split generate_move method 2022-03-09 17:58:47 +01:00
Thomas Binsfeld
1ad7003dd1 [REF] Payment Order: payment line creation from move line
Benefits of the batch creation of Odoo 12.0
The method returns the created payment lines
2022-03-09 17:58:47 +01:00
Thomas Binsfeld
cdacd28064 [REF] Payment Order: allow add to order from invoice if order exists 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
e652a4a6ac [FIX] account_payment_order: Fix journal domain
Steps to reproduce
------------------

* Create a payment mode with "Link to Bank Account" = "Variable".
* Select several journals.
* Create a payment order with that payment mode.
* Save.
* Go to other menu and come back to payment order.
* Try to select a journal: the list is empty.

Fixes #544
2022-03-09 17:58:47 +01:00
Raf Ven
7ad48c8afa Translated using Weblate (Dutch)
Currently translated at 62.0% (134 of 216 strings)

Translation: bank-payment-12.0/bank-payment-12.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_order/nl/
2022-03-09 17:58:47 +01:00
Joel Michaud
ec5c214ed3 Translated using Weblate (German)
Currently translated at 44.9% (97 of 216 strings)

Translation: bank-payment-12.0/bank-payment-12.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-12-0/bank-payment-12-0-account_payment_order/de/
2022-03-09 17:58:47 +01:00
Thomas Binsfeld
660a461697 [REF] Payment Order: better performance of draft2open method
Add a norecompute in draft2open to avoid the recomputation of total_company_currency n times (where n is the number of payment lines)
2022-03-09 17:58:47 +01:00
Thomas Binsfeld
a9be800b25 [REF] Account Payment Order: add Admin in security group 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
43e2876e76 [MIG] account_banking_sepa_direct_debit: Finish migration to 12.0
* Fixed tests
* Adjust code for Python dates handling
* Update copyrights
2022-03-09 17:58:47 +01:00
Pedro M. Baeza
82d1cade74 [MIG] account_payment_order: Finish migration to v12
* Removed deprecated YAML tests.
* Removed document dependency, as now there's no attachment dropdown.
* Switched deprecated `compute` method of res.currency.
* Restored missing field `reference_type` in invoices.
* Fixed call to `message_post`.
* Added missing description in model.
2022-03-09 17:58:47 +01:00
Sergio Teruel
70da4de29b [12.0][mig] account_payment_order: Migrate to v12.0 2022-03-09 17:58:47 +01:00
Mathias Neef
0ef01d8b61 Translated using Weblate (German)
Currently translated at 50.8% (98 of 193 strings)

Translation: bank-payment-11.0/bank-payment-11.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-11-0/bank-payment-11-0-account_payment_order/de/
2022-03-09 17:58:47 +01:00
Martronic SA
105d3d080f Fix structured communication
Adds 'structured' to the invoice_reference_type2communication_type ans the 'structured' type is added by the module itself in account_invoice but breaks the account_move_line.py as explained here: https://github.com/OCA/bank-payment/issues/495
2022-03-09 17:58:47 +01:00
ecino
c1a9f672f5 [IMP] account_payment_order: Use bank.payment.line reference in Payment Order Move Lines (#418) 2022-03-09 17:58:47 +01:00
Alexis de Lattre
6868819655 [10.0] Add filter on partners on wizard "Create Payment Lines from Journal Items" (#489)
* Add filter on partners on wizard "Create Payment Lines from Journal Items"

* Bump version number
2022-03-09 17:58:47 +01:00