Commit Graph

17 Commits

Author SHA1 Message Date
Carlos Roca
a7a5006ff4 [MIG] account_payment_order: Migration to v14 2021-01-05 14:17:34 +01:00
Jesús Alan Ramos Rodríguez
bd5c8b24ec [MIG] account_payment_order: Migration to 14.0 2021-01-05 14:03:52 +01:00
Andrea
5138c5ce2b [FIX] avoid cache miss in compute 2021-01-05 14:03:52 +01:00
Valentin Vinagre Urteaga
232b17b423 [FIX] account_payment_order: 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.
2021-01-05 14:03:52 +01:00
Raf Ven
369f18bbed [MIG] account_payment_order: Migration to 13.0 2021-01-05 14:03:52 +01:00
Raf Ven
001bd7e976 [IMP] account_payment_order: black, isort 2021-01-05 14:03:52 +01:00
Carlos Dauden
22390eded5 [IMP] account_payment_order: Select first partner bank 2021-01-05 14:03:52 +01:00
Guewen Baconnier
2769011d68 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.
2021-01-05 14:03:52 +01:00
Thomas Binsfeld
703cee011d [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
2021-01-05 14:03:52 +01:00
Pedro M. Baeza
04173ee973 [MIG] account_banking_sepa_direct_debit: Finish migration to 12.0
* Fixed tests
* Adjust code for Python dates handling
* Update copyrights
2021-01-05 14:03:52 +01:00
Pedro M. Baeza
e12ac64e44 [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.
2021-01-05 14:03:52 +01:00
Jordi Ballester
81152bf603 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.
2021-01-05 14:03:52 +01:00
etobella
a73310e854 [MIG] account_payment_order 2021-01-05 14:03:52 +01:00
Adrien Peiffer (ACSONE)
4ad724855b [IMP] account_payment_order: select partner bank account automatically. 2021-01-05 14:03:52 +01:00
Alexis de Lattre
337fc2ccf0 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)
2021-01-05 14:03:52 +01:00
Alexis de Lattre
6f4b1f48fd [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
2021-01-05 14:03:52 +01:00
Alexis de Lattre
d052cc7274 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
2021-01-05 14:03:52 +01:00