38 Commits

Author SHA1 Message Date
Víctor Martínez
7ec6508724 [FIX] account_payment_order: Prevent duplicates archived bank accounts
TT47789
2024-02-28 09:56:11 +01:00
Víctor Martínez
5c66dd0ed9 [IMP] account_payment_order: Display a message with the archived bank accounts
TT47789
2024-02-19 08:40:42 +01:00
OCA-git-bot
2e296ce88d Merge PR #1038 into 14.0
Signed-off-by pedrobaeza
2023-10-30 07:40:52 +00:00
Ethan Hildick
b7e7383d9a [FIX] account_payment_order: incorrect inbound partial reconciliations
- Also added float_compare to avoid possible rounding issues
2023-07-25 18:01:31 +02:00
Danny W. Adair
00d9e89f3d [FIX] account_payment_order: Grouped partial reconcile
When using a mode with "Group Transactions in Payment Orders"
in a payment order with multiple bills from the same supplier,
if e.g. the first bill's payment amount is reduced, the
reduction was applied to the last bill instead of the specified one.
2023-06-04 10:40:43 +12:00
Ethan Hildick
41624fa80d [IMP] account_payment_order: Allow fixed date in the past 2023-04-24 08:52:12 +02:00
Simon Gonzalez
6d8b6825ff [IMP] account_payment_order: Concatenate all UserError messages
Gather all the errors to only show one with all the problem on the current debit order. This will avoid for the users to have to make multiple time the same process.
2023-02-17 08:22:13 +01:00
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
Adrien Peiffer
c12fe2ba46 [FIX] Restore payment order number in account move line label. 2022-09-26 11:21:17 +02:00
Alexis de Lattre
e3b7c097a0 account_payment_order: payment_mode_id readonly when state != draft 2021-10-28 00:11:34 +02: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
manu
7bdb286aa1 [IMP]account_payment_order: payment date when adding transaction line 2021-06-02 15:58:42 +02:00
Benoit Aimont
1bf42d17a0 [13.0][IMP] account_payment_order - move date should be bank line date when offsetting_account is bank_account 2021-05-12 12:40:11 +02: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
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
5d79ac61a7 [FIX] account_payment_error: Avoid singleton error in allowed_journal_ids
Fixes #612
2021-01-05 14:03:52 +01:00
Thomas Binsfeld
e46f096c0d [REF] Payment Order: move all move preparation code in _prepare_move 2021-01-05 14:03:52 +01:00
Thomas Binsfeld
e6253b98ca [REF] Account Payment Order: split generate_move method 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
Thomas Binsfeld
71d60d6d1d [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)
2021-01-05 14:03:52 +01:00
ecino
af235126cd [IMP] account_payment_order: Use bank.payment.line reference in Payment Order Move Lines (#418) 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 Meyomesse (ACSONE)
6778a605e6 [ADD] report for payment order (#370) 2021-01-05 14:03:52 +01:00
gilles
43bc92d381 [ADD] description field for payment order 2021-01-05 14:03:52 +01:00
Akim Juillerat
d108422b93 [IMP] account_payment_order: Restriction + tests
* Restrict the deletion of bank payment line
* Add test_cancel_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
vrenaville
17744c381f [FIX] fill date instead off maturity date on account move line generated 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
Stéphane Bidoul (ACSONE)
9e8cf368e5 [IMP] set partner on offsetting account move line if possible
fixes #277
2021-01-05 14:03:52 +01:00
Stéphane Bidoul (ACSONE)
f61c3072bf [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
2021-01-05 14:03:52 +01:00
Alexis de Lattre
2eeb71df6d 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
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