Commit Graph

245 Commits

Author SHA1 Message Date
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
Enric Tobella
6bab583c01 [FIX] default_partner_id added on partner_bank if it is created. 2022-03-09 17:58:47 +01:00
Enric Tobella
281ee102b0 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/
2022-03-09 17:58:47 +01:00
Pedro M. Baeza
3ccef2a611 [FIX] account_payment_order: Fix FR translation 2022-03-09 17:58:47 +01:00
Enric Tobella
7f952ecb74 [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
2022-03-09 17:58:47 +01:00
Alexis de Lattre
dde0542196 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.
2022-03-09 17:58:47 +01:00
Carlos Dauden
14739780a2 [FIX] account_payment_order: Add bank payment line multi-company rule 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
34c82d0c2d [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.
2022-03-09 17:58:47 +01:00
Andrea
f8fca49636 [11.0][FIX] account_payment_order: printing report 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
733c46db0f [FIX] account_payment_order: Correct domain definition on account.payment.line view 2022-03-09 17:58:47 +01:00
Jordi Ballester
664efc93c5 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.
2022-03-09 17:58:47 +01:00
etobella
4cc8a3aa8e [MIG] account_payment_order 2022-03-09 17:58:47 +01:00
Gilles Meyomesse (ACSONE)
75b0e49949 [ADD] report for payment order (#370) 2022-03-09 17:58:47 +01:00
gilles
01ffe7e665 [ADD] description field for payment order 2022-03-09 17:58:47 +01:00
Akim Juillerat
85bb5853a4 [10.0]Fix payment method onchange with multicompany (#374) 2022-03-09 17:58:47 +01:00
Adrien Peiffer (ACSONE)
acbf3aac29 [IMP] account_payment_order: select partner bank account automatically. 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
f447d5ce25 [FIX] account_payment_order: Adapt test to v10 2022-03-09 17:58:47 +01:00
Akim Juillerat
04df6fa875 [IMP] account_payment_order: Restriction + tests
* Restrict the deletion of bank payment line
* Add test_cancel_payment_order
2022-03-09 17:58:47 +01:00
mdietrichc2c
5767d27a78 [IMP] account_payment_order: Don't allow deletion of an uploaded payment order + allow to cancel an uploaded payment order 2022-03-09 17:58:47 +01:00
Alexis de Lattre
9d0c4a5a7d [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.
2022-03-09 17:58:47 +01:00
mdietrichc2c
5fcd96901d Fix 2 issues on form view for payment order 2022-03-09 17:58:47 +01:00
vrenaville
1a29d111df [FIX] fill date instead off maturity date on account move line generated 2022-03-09 17:58:47 +01:00
Alexis de Lattre
1b2fca84e5 Creation/Modification of bank info only for Account Payment group 2022-03-09 17:58:47 +01:00
Jose Maria Alzaga
327ea2645e Remove internal_type=other restriction for transfer account (#311) 2022-03-09 17:58:47 +01:00
Adrien Peiffer (ACSONE)
cd58b9df2e [FIX] account_payment_order: Use 'index' instead of 'select' 2022-03-09 17:58:47 +01:00
Alexis de Lattre
8c82f7af87 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)
2022-03-09 17:58:47 +01:00
Yannick Vaucher
16c76eda21 Reactivate company rules in account_payment_order 2022-03-09 17:58:47 +01:00
Stéphane Bidoul (ACSONE)
7af8870e37 [IMP] set partner on offsetting account move line if possible
fixes #277
2022-03-09 17:58:47 +01:00
Alexis de Lattre
0c1463fc17 [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
2022-03-09 17:58:47 +01:00