Commit Graph

369 Commits

Author SHA1 Message Date
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
Alexis de Lattre
ccaf009c82 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.
2024-02-26 22:06:41 +01:00
Carlos Dauden
471a9e5c00 [FIX] account_payment_order: Add bank payment line multi-company rule 2024-02-26 22:06:41 +01:00
Pedro M. Baeza
35901fe19a [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.
2024-02-26 22:06:41 +01:00
Andrea
c5bb502707 [11.0][FIX] account_payment_order: printing report 2024-02-26 22:06:41 +01:00
Pedro M. Baeza
9477101e7b [FIX] account_payment_order: Correct domain definition on account.payment.line view 2024-02-26 22:06:40 +01:00
Jordi Ballester
6c1eb20bbf 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.
2024-02-26 22:06:40 +01:00
etobella
47e7e895f6 [MIG] account_payment_order 2024-02-26 22:06:40 +01:00
Gilles Meyomesse (ACSONE)
8a91e9131e [ADD] report for payment order (#370) 2024-02-26 22:06:40 +01:00
gilles
d863ee9524 [ADD] description field for payment order 2024-02-26 22:06:40 +01:00
Akim Juillerat
5ffe99ad60 [10.0]Fix payment method onchange with multicompany (#374) 2024-02-26 22:06:40 +01:00
Adrien Peiffer (ACSONE)
22e5fd4ef7 [IMP] account_payment_order: select partner bank account automatically. 2024-02-26 22:06:40 +01:00
Pedro M. Baeza
d22e00068a [FIX] account_payment_order: Adapt test to v10 2024-02-26 22:06:40 +01:00
Akim Juillerat
e1352c972d [IMP] account_payment_order: Restriction + tests
* Restrict the deletion of bank payment line
* Add test_cancel_payment_order
2024-02-26 22:06:40 +01:00
mdietrichc2c
132e9916c7 [IMP] account_payment_order: Don't allow deletion of an uploaded payment order + allow to cancel an uploaded payment order 2024-02-26 22:06:40 +01:00
Alexis de Lattre
ca8343ea8a [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.
2024-02-26 22:06:40 +01:00
mdietrichc2c
e47a56615e Fix 2 issues on form view for payment order 2024-02-26 22:06:40 +01:00
vrenaville
0152044239 [FIX] fill date instead off maturity date on account move line generated 2024-02-26 22:06:40 +01:00
Alexis de Lattre
2eecdcda41 Creation/Modification of bank info only for Account Payment group 2024-02-26 22:06:40 +01:00
Jose Maria Alzaga
3b67901cc4 Remove internal_type=other restriction for transfer account (#311) 2024-02-26 22:06:40 +01:00
Adrien Peiffer (ACSONE)
0ccd35cf4b [FIX] account_payment_order: Use 'index' instead of 'select' 2024-02-26 22:06:40 +01:00
Alexis de Lattre
7444be2bd5 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)
2024-02-26 22:06:40 +01:00
Yannick Vaucher
f1238260ba Reactivate company rules in account_payment_order 2024-02-26 22:06:40 +01:00
Stéphane Bidoul (ACSONE)
c9d0a51b45 [IMP] set partner on offsetting account move line if possible
fixes #277
2024-02-26 22:06:40 +01:00
Alexis de Lattre
ec57ebd3ed [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
2024-02-26 22:06:40 +01:00
Stéphane Bidoul (ACSONE)
e042f4cb48 [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
2024-02-26 22:06:39 +01:00
Yannick Vaucher
ded9f155a4 Move the account_payment_mode ir.rule in account_payment_mode module 2024-02-26 22:06:39 +01:00
Pedro M. Baeza
fbb5e544b8 [IMP] account_payment_order: Remove useless migration script 2024-02-26 22:06:39 +01:00
Alexis de Lattre
714aa03bbf Add support for multi-currency in the generation of the account move.
Take into account all the remaining remarks of Frederic Clementi dated May 30:
- see multi-currency amounts in the wizard to add transaction lines
- add help msg on bank payment lines
2024-02-26 22:06:39 +01:00
Stéphane Bidoul
e8a1881305 [FIX+IMP] account_payment_order: 2 things:
* IMP: prevent deleting a move-line that is linked to a payment order line
* FIX: better filtering of move lines already included in open payment order
2024-02-26 22:06:39 +01:00
Alexis de Lattre
57042c58ff Start to port bank-payment to v9 (with a lot of improvements) during the Sorrento Code sprint 2016
Improvements include:
- full re-organisation of modules and big re-organisation of the code
- simplification of the code related to the fact that support for direct debit is now in t
he base module, not added by an optional module account_direct_debit (module was removed)
- new design of the wizard to select move lines to pay
- support for non-SEPA file transfer-
- support for German direct debit SEPA files (fixes bug #129)
- remove workflow of payment.order
- add wizard of selection of move lines to pay
2024-02-26 22:06:39 +01:00
mymage
8e6e563dda Translated using Weblate (Italian)
Currently translated at 100.0% (47 of 47 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode/it/
2024-02-13 09:42:26 +00:00
mymage
fbaa34548a Translated using Weblate (Italian)
Currently translated at 100.0% (37 of 37 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_partner/it/
2024-02-13 09:42:26 +00:00
mymage
0b525ee6b1 Translated using Weblate (Italian)
Currently translated at 100.0% (47 of 47 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_mode/it/
2024-02-04 20:36:12 +00:00