Commit Graph

390 Commits

Author SHA1 Message Date
Marçal Isern
ad9f376b29 [MIG] account_payment_order: Migration to 15.0 2023-03-04 19:44:00 +01:00
Simon S
ed5c2d0c3f Added translation using Weblate (Swedish)
Currently translated at 65.0% (138 of 212 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/sv/
2023-03-04 19:44:00 +01:00
Ignacio Buioli
b19620f8bf Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (212 of 212 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/es_AR/
2023-03-04 19:44:00 +01:00
Alexis de Lattre
dc8dd37f0e [IMP] account_payment_order: computation of sepa + remove done state + UI adjustments
- Improve computation of sepa on account.payment.order: check IBAN is in SEPA zone
  Update move line generation to get transfer account from bank journal
  Update payment mode configuration accordingly (3 fields removed)
  Several improvements in payment order tree and form view
- Remove done state (migration script provided)
- Don't set reference_type field on account.move required=True, because it
  causes a lot of problems in other modules that don't depend on this one.
  Setting it as required in the view is enough.
- add optional="hide" on payment mode in invoice tree view
- FIX crash when communication=null on payment line
- payment_mode_id readonly when state != draft
2023-03-04 19:44:00 +01:00
João Marques
c7239bbc22 [FIX] account_payment_order: Fix multi-company issues in tests
Use base `account` tests from Odoo to avoid issues with the environment.
2023-03-04 19:44:00 +01:00
Miracle Ayodele
8670398081 [FIX] account_payment_order: Bind report to model 2023-03-04 19:44:00 +01:00
AmmarOfficewalaSerpentCS
a597822f2c [IMP] account_payment_order: Add hook method for finding previous payment orders + Pass single move in a get_account_payment_domain mehtod to find move in a method. 2023-03-04 19:43:51 +01:00
manu
d49f95cb95 [IMP]account_payment_order: payment date when adding transaction line 2023-03-04 19:43:51 +01:00
João Marques
5bf4b9bda5 [FIX] account_payment_order: Change security group category + Make post move field invisible in payment modes + fix account move views
- Change security group category
  Before this change, the group was creating a new section in each user's settings called "Other" with a field called "Other Extra Rights" that could select "Accounting / Payments" as an option
  This places it in the correct location
  TT29182
- Make post move field invisible in payment modes
  When the generate_moves option is not selected, the post_move option should not be available
  TT29182
- fix account move views
  Current spec was causing weird display in account move view, both for customer invoices and vendor bills
  Changing the placement and adding back the label fixes the issue
  TT29027
2023-03-04 19:42:52 +01:00
Benoit Aimont
3c11cf2aab [13.0][IMP] account_payment_order - move date should be bank line date when offsetting_account is bank_account 2023-03-04 19:42:52 +01:00
Pedro M. Baeza
35fb316970 [FIX] account_payment_order: Remove old migration scripts 2023-03-04 19:42:52 +01:00
Bosd
1d89410811 Translated using Weblate (Dutch)
Currently translated at 70.4% (155 of 220 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/nl/
2023-03-04 19:42:52 +01:00
Nelson Ramírez Sánchez
a442a6a9fb Translated using Weblate (Spanish)
Currently translated at 100.0% (221 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/es/
2023-03-04 19:42:52 +01:00
Nelson Ramírez Sánchez
cce73c2dce Added translation using Weblate (Spanish (Chile))
Currently translated at 100.0% (221 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/es_CL/
2023-03-04 19:42:52 +01:00
Pedro M. Baeza
320be4a4c7 [FIX] account_payment_order: Computed non-stored fields needs always a value
We should assign a value for all records of the set.
2023-03-04 19:42:52 +01:00
Yves Le Doeuff
6edd62d171 Translated using Weblate (French (France))
Currently translated at 91.4% (202 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:52 +01:00
João Marques
e2401a13a3 [FIX] account_payment_order: Fix tests
After fcaa54939e, we need to specify the invoice date for vendor bills to be able to post it
2023-03-04 19:42:52 +01:00
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