Commit Graph

351 Commits

Author SHA1 Message Date
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
Jordi Ballester
a16d23c0ee When the user looks for open payables or receivables, in the
context of payment orders, she should ocus on the amount that
is due to be paid. In this method we are forcing to display both
the amount due in company and in the invoice currency.

We then hide the fields debit and credit, because they add no value.
2023-03-04 11:17:14 +01:00
etobella
2443cf0036 [MIG] account_payment_order 2023-03-04 11:16:04 +01:00
Gilles Meyomesse (ACSONE)
0bb431baac [ADD] report for payment order (#370) 2023-03-04 11:16:04 +01:00
gilles
a66448cc2c [ADD] description field for payment order 2023-03-04 11:16:04 +01:00
Akim Juillerat
470c296b16 [10.0]Fix payment method onchange with multicompany (#374) 2023-03-04 11:16:04 +01:00
Adrien Peiffer (ACSONE)
2e32e672d1 [IMP] account_payment_order: select partner bank account automatically. 2023-03-04 11:16:04 +01:00
Pedro M. Baeza
d8e55d0ca2 [FIX] account_payment_order: Adapt test to v10 2023-03-04 11:16:04 +01:00
Akim Juillerat
ed069a89fa [IMP] account_payment_order: Restriction + tests
* Restrict the deletion of bank payment line
* Add test_cancel_payment_order
2023-03-04 11:16:04 +01:00
mdietrichc2c
8826481a25 [IMP] account_payment_order: Don't allow deletion of an uploaded payment order + allow to cancel an uploaded payment order 2023-03-04 11:16:04 +01:00
Alexis de Lattre
213c257b00 [FIX+IMP] account_payment_order:
* FIX: Bug #353 crash when selecting a payment mode that has a variable link to a bank account
* FIX: Add 'post_move' option on account.payment.mode with default True, to keep the previous behavior
* IMP: Explicit error when bank account is missing on bank journal
* IMP: Add field default_date_prefered on payment mode.
2023-03-04 11:16:04 +01:00
mdietrichc2c
46ca4bcf51 Fix 2 issues on form view for payment order 2023-03-04 11:16:04 +01:00
vrenaville
fd68ec161e [FIX] fill date instead off maturity date on account move line generated 2023-03-04 11:16:04 +01:00
Alexis de Lattre
93c37696d6 Creation/Modification of bank info only for Account Payment group 2023-03-04 11:16:04 +01:00
Jose Maria Alzaga
f3633ea4bf Remove internal_type=other restriction for transfer account (#311) 2023-03-04 11:16:03 +01:00
Adrien Peiffer (ACSONE)
99c21a5ed0 [FIX] account_payment_order: Use 'index' instead of 'select' 2023-03-04 11:16:03 +01:00
Alexis de Lattre
7e43ef753c 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)
2023-03-04 11:16:03 +01:00
Yannick Vaucher
28c6364c84 Reactivate company rules in account_payment_order 2023-03-04 11:09:40 +01:00
Stéphane Bidoul (ACSONE)
c7b62075c2 [IMP] set partner on offsetting account move line if possible
fixes #277
2023-03-04 11:09:40 +01:00
Alexis de Lattre
da364295d1 [FIX] account_payment_order: 4 things:
* Fix crash when selecting a customer that has a direct debit payment mode but no mandate
* Hide many fields when payment_order_ok is False on a payment_mode
* Fix payment line communication when the move line is not linked to an invoice (problem found when porting donation_debit_debit to v9)
* For the communication field, if self.move_id.ref is False, fallback on self.move_id.name
2023-03-04 11:09:40 +01:00
Stéphane Bidoul (ACSONE)
702fe99ac5 [FIX+IMP] account_payment_order: 2 more things:
* IMP: extensibility of _prepare_move

  Pass the list of bank lines to _prepare_move so it is possible to customize the move (eg it's name) based on the lines being paid.

* FIX: payment order: add missing onchange dependencies in move selection wizard
2023-03-04 11:09:40 +01:00
Yannick Vaucher
4bfbcc4584 Move the account_payment_mode ir.rule in account_payment_mode module 2023-03-04 11:09:40 +01:00
Pedro M. Baeza
32f4d05a20 [IMP] account_payment_order: Remove useless migration script 2023-03-04 11:09:40 +01:00