Commit Graph

35 Commits

Author SHA1 Message Date
Pedro M. Baeza
b8d818967b [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
2022-12-25 12:51:03 +01:00
manu
e5bcbb4842 [IMP]account_payment_order: Add activities to account.payment.order model 2022-10-24 17:24:36 +02:00
Miquel Raïch
af433396ff [IMP] account_payment_order: don't requiere reference_type anymore 2022-03-08 15:35:00 +01:00
Alexis de Lattre
46d94511c9 account_payment_order: communication required in form view 2022-02-16 09:52:33 +01:00
Alexis de Lattre
7fa38049be 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.
2021-10-28 00:11:34 +02:00
Alexis de Lattre
cbe1eed5ac 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
2021-10-28 00:11:12 +02:00
OCA-git-bot
102ef09144 Merge PR #817 into 14.0
Signed-off-by pedrobaeza
2021-05-19 07:50:54 +00:00
João Marques
8f457e9383 [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
2021-05-17 12:19:50 +01:00
João Marques
37afc5b29b [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
2021-05-17 10:39:32 +01:00
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
Luc De Meyer
72a526dfdf move Debit Order after Payments in Customer menu 2021-01-05 14:03:52 +01:00
Luc De Meyer
25346bf218 [13.0][IMP]move payment order menus 2021-01-05 14:03:52 +01:00
Alexis de Lattre
a7cd7f60b6 Fix state condition on invoice view 2021-01-05 14:03:52 +01:00
Valentin Vinagre Urteaga
24dbb35c18 [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
2021-01-05 14:03:52 +01:00
Valentin Vinagre Urteaga
4d8e722b8d [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
2021-01-05 14:03:52 +01:00
Stefan Rijnhart
77bf10e524 [FIX] Set priority on alternate view 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
Pedro M. Baeza
5e084fd533 [FIX] account_payment_order: Restore colors in payment order tree view 2021-01-05 14:03:52 +01:00
Thomas Binsfeld
d6c1472fec [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
2021-01-05 14:03:52 +01:00
Pedro M. Baeza
a497d69ac5 [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
2021-01-05 14:03:52 +01:00
Pedro M. Baeza
f74e498e6e [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.
2021-01-05 14:03:52 +01:00
Enric Tobella
79cd725865 [FIX] default_partner_id added on partner_bank if it is created. 2021-01-05 14:03:52 +01:00
Alexis de Lattre
0896ab6227 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.
2021-01-05 14:03:52 +01:00
Pedro M. Baeza
4c5b34c835 [FIX] account_payment_order: Correct domain definition on account.payment.line view 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
gilles
43bc92d381 [ADD] description field for payment order 2021-01-05 14:03:52 +01:00
mdietrichc2c
99d8165036 [IMP] account_payment_order: Don't allow deletion of an uploaded payment order + allow to cancel an uploaded payment order 2021-01-05 14:03:52 +01:00
Alexis de Lattre
4d48889780 [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.
2021-01-05 14:03:52 +01:00
mdietrichc2c
56660987fb Fix 2 issues on form view for payment order 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