Commit Graph

373 Commits

Author SHA1 Message Date
Yves Le Doeuff
e30330b5cb Added translation using Weblate (French (France))
Currently translated at 86.8% (192 of 221 strings)

Translation: bank-payment-14.0/bank-payment-14.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_order/fr_FR/
2023-03-04 19:42:47 +01:00
João Marques
735fcfbee4 [FIX] account_payment_order: Fix tests
On multi-company settings, we need to make sure we are searching and creating objects with the correct company associated.

TT28423
2023-03-04 19:42:47 +01:00
Carlos Roca
16274598ac [MIG] account_payment_order: Migration to v14 2023-03-04 19:42:47 +01:00
Jesús Alan Ramos Rodríguez
c65a93af5b [MIG] account_payment_order: Migration to 14.0 2023-03-04 19:42:47 +01:00
Andrea
28a35012b0 [FIX] avoid cache miss in compute 2023-03-04 19:42:47 +01:00
Ignacio Buioli
0d2341a9c4 Added translation 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/
2023-03-04 19:42:47 +01:00
Luc De Meyer
98bf9b4c0c [IMP] account_payment_order: move payment order menus 2023-03-04 19:42:28 +01:00
Alexis de Lattre
bed10e155d Fix state condition on invoice view 2023-03-04 19:42:28 +01:00
Valentin Vinagre Urteaga
0c571a2028 [FIX] account_payment_order: set partner_bank_id + order generation from invoice tree + attachment file name
- 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.
-  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.
  Solution: Remove binding_views="form": by default are "tree & form". With this fix, users can add payment/debit orders from the invoice tree view
- 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.
  Solution: This fix makes the .xml file downloadable from the .xml file name as it was in older versions
2023-03-04 19:41:03 +01:00
Stefan Rijnhart
a274542d2e [FIX] Set priority on alternate view 2023-03-04 19:39:08 +01:00
Pedro M. Baeza
96c1587079 [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.
2023-03-04 19:39:08 +01:00
Andrea
f1930ad52e [FIX] multicompany rule 2023-03-04 19:39:08 +01:00
Raf Ven
6cbf2bd82d [MIG] account_payment_order: Migration to 13.0 2023-03-04 19:39:08 +01:00
Raf Ven
284fe5c01c [IMP] account_payment_order: black, isort 2023-03-04 19:39:08 +01:00
Carles Antoli
6812b62308 Added translation using Weblate (Catalan) 2023-03-04 19:39:08 +01:00
Ernesto Tejeda
cd562afe74 [IMP] account_payment_order: change 'bill reference' column value in reports 2023-03-04 19:39:08 +01:00
Pedro M. Baeza
73cd656088 [FIX] account_payment_order: Restore colors in payment order tree view 2023-03-04 19:39:08 +01:00
Pedro M. Baeza
ae4a403732 [FIX] account_payment_order: Sequences must be noupdate=1 2023-03-04 19:39:08 +01:00
Sergio Teruel
a24125c961 [FIX] account_payment_order: Fix payment order report. Adapt to bootstrap4 2023-03-04 19:39:08 +01:00
Jaume Planas
49da73911c 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/
2023-03-04 19:39:08 +01:00
Carlos Dauden
70505b8128 [IMP] account_payment_order: Select first partner bank 2023-03-04 19:39:08 +01:00
Pedro M. Baeza
f53d7176f4 [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.
2023-03-04 19:39:08 +01:00
Pedro M. Baeza
d68dd84c19 [FIX] account_payment_error: Avoid singleton error in allowed_journal_ids
Fixes #612
2023-03-04 19:39:08 +01:00
Guewen Baconnier
01ac03b93e 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.
2023-03-04 19:39:08 +01:00
Raf Ven
29a705d71c [12.0] [FIX] Failing test test_account_payment_02 2023-03-04 19:39:08 +01:00
Thomas Binsfeld
c9b07b7533 [REF] Payment Order: move all move preparation code in _prepare_move 2023-03-04 19:39:08 +01:00
Rubén Cerdà
a3a7808bd5 [FIX] account_payment_order: wrong function name + report totals + report title 2023-03-04 19:38:55 +01:00
Marco Calcagni
a864e3a4bc 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/
2023-03-04 19:38:55 +01:00
Thomas Binsfeld
e2f51e7d00 [REF+IMP] account_payment_order: invoice addition + move generation + restrict payment modes selection on orders
- allow add to order from invoice if order exists
- payment line creation from move line
  Benefits of the batch creation of Odoo 12.0
  The method returns the created payment lines
- split generate_move method
- 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
2023-03-04 19:37:36 +01:00
Pedro M. Baeza
794cba3373 [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
2023-03-04 11:17:15 +01:00
Raf Ven
9b8a485a76 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/
2023-03-04 11:17:15 +01:00
Joel Michaud
aa1bde1a95 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/
2023-03-04 11:17:15 +01:00
Thomas Binsfeld
1be0b508f7 [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)
2023-03-04 11:17:15 +01:00
Thomas Binsfeld
4f8844a9fd [REF] Account Payment Order: add Admin in security group 2023-03-04 11:17:15 +01:00
Pedro M. Baeza
eb9a0f2cc5 [MIG] account_banking_sepa_direct_debit: Finish migration to 12.0
* Fixed tests
* Adjust code for Python dates handling
* Update copyrights
2023-03-04 11:17:14 +01:00
Pedro M. Baeza
297b91ec86 [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.
2023-03-04 11:17:14 +01:00
Sergio Teruel
57a80571bc [12.0][mig] account_payment_order: Migrate to v12.0 2023-03-04 11:17:14 +01:00
Mathias Neef
c5c1885ad0 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/
2023-03-04 11:17:14 +01:00
Martronic SA
00b52fcd86 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
2023-03-04 11:17:14 +01:00
ecino
cba78716d7 [IMP] account_payment_order: Use bank.payment.line reference in Payment Order Move Lines (#418) 2023-03-04 11:17:14 +01:00
Alexis de Lattre
b7a4ada91a [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
2023-03-04 11:17:14 +01:00
Enric Tobella
14d8fea929 [FIX] default_partner_id added on partner_bank if it is created. 2023-03-04 11:17:14 +01:00
Enric Tobella
c4fef09558 Translated using Weblate (Español (España))
Currently translated at 100,0% (193 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/es/
2023-03-04 11:17:14 +01:00
Pedro M. Baeza
ed34b4add4 [FIX] account_payment_order: Fix FR translation 2023-03-04 11:17:14 +01:00
Enric Tobella
efafee2996 [FIX] report should show the invoice number, not the move name (#477)
[IMP] account_payment_order: report show the invoice number or the move name
2023-03-04 11:17:14 +01:00
Alexis de Lattre
15fafb32e3 Several small usability improvements
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
2023-03-04 11:17:14 +01:00
Carlos Dauden
9fe7a6a2c2 [FIX] account_payment_order: Add bank payment line multi-company rule 2023-03-04 11:17:14 +01:00
Pedro M. Baeza
2608ce18de [FIX] account_payment_order: Take payment mode from move (#466)
When adding to a payment order from invoices, the payment mode
considered is the one in the invoice, but once you have confirmed it,
you can't change it, so if you change the payment mode in the journal
items, it doesn't make the difference.

With this change, this is taken into account for adding to the
payment order(s) properly.
2023-03-04 11:17:14 +01:00
Andrea
5b82ec781b [11.0][FIX] account_payment_order: printing report 2023-03-04 11:17:14 +01:00
Pedro M. Baeza
624fbd4717 [FIX] account_payment_order: Correct domain definition on account.payment.line view 2023-03-04 11:17:14 +01:00