Commit Graph

35 Commits

Author SHA1 Message Date
Pedro M. Baeza
e3d9930b04 [REF+IMP] account_payment_order: Use native payments
The previous approach creates manually the journal entries and does all
the hard work, plus not being 100% compatible with the bank statement
reconciliation widget (requiring a patch on OCB to see blue lines).

That decision made sense on the moment it was done (v9), where the
native payment model (account.payment) was very limited, and wasn't able
to store all the needed information for the bank transaction.

Now that the limitations are gone, we can get rid off this extra model,
and generate instead `account.payment` records, using both the native
model + methods to perform the same operations.

This serves also to workaround the problem found in #966.

All the code, views and tests of main module have been adapted to this
new approach in this commit. Later commits will adapt the rest of the
modules of the suite, and add migration scripts to transit from the
previous approach to this new one.

TT39832
2023-03-04 18:56:37 +01:00
manu
adb729a997 [IMP]account_payment_order: Add activities to account.payment.order model 2022-10-27 11:14:03 +02:00
Miquel Raïch
bc46ef19e6 [IMP] account_payment_order: don't requiere reference_type anymore 2022-03-10 12:01:36 +01:00
Alexis de Lattre
907024dec0 account_payment_order: communication required in form view 2022-03-10 09:34:36 +01:00
Marçal Isern
169ee94b17 [MIG] account_payment_order: Migration to 15.0 2022-03-10 00:03:41 +01:00
Alexis de Lattre
6b5859b8bc account_payment_order: 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.
2022-03-09 17:58:47 +01:00
Alexis de Lattre
74dd1adc3e 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
2022-03-09 17:58:47 +01:00
João Marques
92a62104b0 [FIX] account_payment_order: 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
2022-03-09 17:58:47 +01:00
João Marques
37fcc102ee [FIX] account_payment_order: 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
2022-03-09 17:58:47 +01:00
Carlos Roca
a5b1cdbe50 [MIG] account_payment_order: Migration to v14 2022-03-09 17:58:47 +01:00
Jesús Alan Ramos Rodríguez
6d486d8b93 [MIG] account_payment_order: Migration to 14.0 2022-03-09 17:58:47 +01:00
Luc De Meyer
d09294761e move Debit Order after Payments in Customer menu 2022-03-09 17:58:47 +01:00
Luc De Meyer
6654bddd2a [13.0][IMP]move payment order menus 2022-03-09 17:58:47 +01:00
Alexis de Lattre
848d50fc08 Fix state condition on invoice view 2022-03-09 17:58:47 +01:00
Valentin Vinagre Urteaga
621b92c0dc [FIX] account_payment_order: 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.
This fix makes the .xml file downloadable from the .xml file name as it was in older versions
2022-03-09 17:58:47 +01:00
Valentin Vinagre Urteaga
a4803323a4 [FIX] account_payment_order: 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.
- Remove binding_views="form": by default are "tree & form".
With this fix, users can add payment/debit orders from the invoice tree view
2022-03-09 17:58:47 +01:00
Stefan Rijnhart
e9be65da1f [FIX] Set priority on alternate view 2022-03-09 17:58:47 +01:00
Raf Ven
10a529c859 [MIG] account_payment_order: Migration to 13.0 2022-03-09 17:58:47 +01:00
Raf Ven
4f076b21f4 [IMP] account_payment_order: black, isort 2022-03-09 17:58:47 +01:00
Pedro M. Baeza
45f8be854c [FIX] account_payment_order: Restore colors in payment order tree view 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
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
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
Enric Tobella
6bab583c01 [FIX] default_partner_id added on partner_bank if it is created. 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
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
01ffe7e665 [ADD] description field for 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
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
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
Alexis de Lattre
1c15633dbf 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
2022-03-09 17:58:47 +01:00