Commit Graph

402 Commits

Author SHA1 Message Date
Miquel Raïch
2011692951 [IMP] account_payment_order: don't requiere reference_type anymore 2024-02-26 22:06:44 +01:00
Alexis de Lattre
d066ad5b2b account_payment_order: communication required in form view 2024-02-26 22:06:44 +01:00
Marçal Isern
70f7c9dfed [MIG] account_payment_order: Migration to 15.0 2024-02-26 22:06:44 +01:00
Alexis de Lattre
22ab93155e [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
2024-02-26 22:06:44 +01:00
João Marques
b3f7294c95 [FIX] account_payment_order: Fix multi-company issues in tests
Use base `account` tests from Odoo to avoid issues with the environment.
2024-02-26 22:06:43 +01:00
Miracle Ayodele
aa4074ae5e [FIX] account_payment_order: Bind report to model 2024-02-26 22:06:43 +01:00
AmmarOfficewalaSerpentCS
889a87e400 [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. 2024-02-26 22:06:43 +01:00
manu
3b3c1ebb58 [IMP]account_payment_order: payment date when adding transaction line 2024-02-26 22:06:43 +01:00
João Marques
5d9b6f501e [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
2024-02-26 22:06:43 +01:00
Benoit Aimont
622edf640f [13.0][IMP] account_payment_order - move date should be bank line date when offsetting_account is bank_account 2024-02-26 22:06:43 +01:00
Pedro M. Baeza
27ff381ad6 [FIX] account_payment_order: Remove old migration scripts 2024-02-26 22:06:43 +01:00
Pedro M. Baeza
2c92f8ddae [FIX] account_payment_order: Computed non-stored fields needs always a value
We should assign a value for all records of the set.
2024-02-26 22:06:43 +01:00
João Marques
4e95a4f842 [FIX] account_payment_order: Fix tests
After fcaa54939e, we need to specify the invoice date for vendor bills to be able to post it
2024-02-26 22:06:43 +01:00
João Marques
1a195aa55d [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
2024-02-26 22:06:43 +01:00
Carlos Roca
f4de0562bc [MIG] account_payment_order: Migration to v14 2024-02-26 22:06:43 +01:00
Jesús Alan Ramos Rodríguez
0fade4d4ab [MIG] account_payment_order: Migration to 14.0 2024-02-26 22:06:43 +01:00
Andrea
61c2488a82 [FIX] avoid cache miss in compute 2024-02-26 22:06:43 +01:00
Luc De Meyer
ff7531069b [IMP] account_payment_order: move payment order menus 2024-02-26 22:06:43 +01:00
Alexis de Lattre
3e9be511f0 Fix state condition on invoice view 2024-02-26 22:06:43 +01:00
Valentin Vinagre Urteaga
68924e3bf5 [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
2024-02-26 22:06:42 +01:00
Stefan Rijnhart
ccefbe898e [FIX] Set priority on alternate view 2024-02-26 22:06:42 +01:00
Pedro M. Baeza
28a25477f0 [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.
2024-02-26 22:06:42 +01:00
Andrea
41f0f7e87f [FIX] multicompany rule 2024-02-26 22:06:42 +01:00
Raf Ven
91d53e6d08 [MIG] account_payment_order: Migration to 13.0 2024-02-26 22:06:42 +01:00
Raf Ven
c0ab186d6a [IMP] account_payment_order: black, isort 2024-02-26 22:06:42 +01:00
Ernesto Tejeda
8d979db4ad [IMP] account_payment_order: change 'bill reference' column value in reports 2024-02-26 22:06:42 +01:00
Pedro M. Baeza
17fe7e035b [FIX] account_payment_order: Restore colors in payment order tree view 2024-02-26 22:06:42 +01:00
Pedro M. Baeza
b674ce8342 [FIX] account_payment_order: Sequences must be noupdate=1 2024-02-26 22:06:42 +01:00
Sergio Teruel
6d970d9ff9 [FIX] account_payment_order: Fix payment order report. Adapt to bootstrap4 2024-02-26 22:06:42 +01:00
Carlos Dauden
cea2c57a1b [IMP] account_payment_order: Select first partner bank 2024-02-26 22:06:42 +01:00
Pedro M. Baeza
d2350550a0 [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.
2024-02-26 22:06:42 +01:00
Pedro M. Baeza
a7704a15d7 [FIX] account_payment_error: Avoid singleton error in allowed_journal_ids
Fixes #612
2024-02-26 22:06:42 +01:00
Guewen Baconnier
f3985b6e02 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.
2024-02-26 22:06:42 +01:00
Raf Ven
271a43a42a [12.0] [FIX] Failing test test_account_payment_02 2024-02-26 22:06:42 +01:00
Thomas Binsfeld
7fc14c0139 [REF] Payment Order: move all move preparation code in _prepare_move 2024-02-26 22:06:42 +01:00
Rubén Cerdà
8fb3c8435e [FIX] account_payment_order: wrong function name + report totals + report title 2024-02-26 22:06:42 +01:00
Thomas Binsfeld
f210639941 [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
2024-02-26 22:06:41 +01:00
Pedro M. Baeza
98a19d7334 [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
2024-02-26 22:06:41 +01:00
Thomas Binsfeld
447fab8fc0 [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)
2024-02-26 22:06:41 +01:00
Thomas Binsfeld
372fa9fa3d [REF] Account Payment Order: add Admin in security group 2024-02-26 22:06:41 +01:00
Pedro M. Baeza
7bb25d68f1 [MIG] account_banking_sepa_direct_debit: Finish migration to 12.0
* Fixed tests
* Adjust code for Python dates handling
* Update copyrights
2024-02-26 22:06:41 +01:00
Pedro M. Baeza
995a09e137 [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.
2024-02-26 22:06:41 +01:00
Sergio Teruel
e919f15b26 [12.0][mig] account_payment_order: Migrate to v12.0 2024-02-26 22:06:41 +01:00
Martronic SA
52f7d45b1d 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
2024-02-26 22:06:41 +01:00
ecino
c530f74fa7 [IMP] account_payment_order: Use bank.payment.line reference in Payment Order Move Lines (#418) 2024-02-26 22:06:41 +01:00
Alexis de Lattre
74c870e515 [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
2024-02-26 22:06:41 +01:00
Enric Tobella
3db09f1ae4 [FIX] default_partner_id added on partner_bank if it is created. 2024-02-26 22:06:41 +01:00
Enric Tobella
322e51e4c7 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/
2024-02-26 22:06:41 +01:00
Pedro M. Baeza
270fa65ef1 [FIX] account_payment_order: Fix FR translation 2024-02-26 22:06:41 +01:00
Enric Tobella
a7c1b57ae0 [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
2024-02-26 22:06:41 +01:00