Commit Graph

61 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
OCA-git-bot
3b32a5cb25 account_payment_order 14.0.1.11.0 2022-11-09 08:32:32 +00:00
OCA-git-bot
3f32d90756 account_payment_order 14.0.1.10.0 2022-10-25 14:17:23 +00:00
OCA-git-bot
0f2880bbe4 account_payment_order 14.0.1.9.1 2022-09-26 14:08:32 +00:00
OCA-git-bot
47a22cc86f account_payment_order 14.0.1.9.0 2022-09-20 12:18:01 +00:00
OCA-git-bot
214b362d8f account_payment_order 14.0.1.8.5 2022-09-05 00:06:06 +00:00
OCA-git-bot
e74a0a9b1e account_payment_order 14.0.1.8.4 2022-08-11 15:56:47 +00:00
OCA-git-bot
09965ce9e9 account_payment_order 14.0.1.8.3 2022-05-20 06:26:14 +00:00
OCA-git-bot
466b4e1a5f account_payment_order 14.0.1.8.2 2022-04-24 10:05:34 +00:00
Pedro M. Baeza
0c179baafd [FIX] account_payment_order: Don't fail due to tz
When the test hour is around midnight, and demo data using CET/CEST
timezones, current code fails due to some asserts not having this into
consideration. This fix avoids such problem, and irons the execution
no matter the hour.
2022-04-23 10:24:40 +02:00
OCA-git-bot
cc8f237b31 account_payment_order 14.0.1.8.0 2022-04-21 09:43:47 +00:00
Enric Tobella
ab0a5ad9a2 [IMP] account_payment_order: Promote to Mature 2022-04-21 11:34:15 +02:00
OCA-git-bot
98718d781d account_payment_order 14.0.1.7.0 2022-04-14 15:04:57 +00:00
OCA-git-bot
7bc063cc75 account_payment_order 14.0.1.6.0 2022-03-08 17:29:12 +00:00
OCA-git-bot
5bdffc8dd1 account_payment_order 14.0.1.5.0 2022-02-16 09:13:56 +00:00
OCA-git-bot
b29c1ac3e9 account_payment_order 14.0.1.4.0 2021-11-29 16:16:33 +00: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
OCA-git-bot
c70e181493 account_payment_order 14.0.1.2.4 2021-09-14 16:14:23 +00:00
OCA-git-bot
03688d8568 account_payment_order 14.0.1.2.3 2021-07-26 12:09:52 +00:00
OCA-git-bot
493e2ff836 account_payment_order 14.0.1.2.2 2021-07-13 18:07:42 +00:00
OCA-git-bot
b5670d883f account_payment_order 14.0.1.2.1 2021-07-06 14:10:16 +00:00
OCA-git-bot
9979f04db6 account_payment_order 14.0.1.2.0 2021-05-19 08:07:39 +00:00
OCA-git-bot
8be1d7883a account_payment_order 14.0.1.1.0 2021-05-17 11:42:10 +00:00
OCA-git-bot
b3bc0097b7 account_payment_order 14.0.1.0.5 2021-05-13 06:16:30 +00:00
Pedro M. Baeza
5ce95f4a84 [FIX] account_payment_order: Computed non-stored fields needs always a value
We should assign a value for all records of the set.
2021-04-15 20:43:30 +02:00
OCA-git-bot
f4f8b72781 account_payment_order 14.0.1.0.3 2021-04-14 18:00:29 +00:00
OCA-git-bot
ddc352ae67 account_payment_order 14.0.1.0.2 2021-03-31 10:59:52 +00:00
OCA-git-bot
3136875449 account_payment_order 14.0.1.0.1 2021-03-02 17:45:54 +00: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
Luc De Meyer
72a526dfdf move Debit Order after Payments in Customer menu 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
Pedro M. Baeza
836fd9985a [IMP] account_payment_order: Print payment order in user lang if not generated
When you haven't still generated the file, `generated_user_id` is not filled, and
so, you can't control the language in which the payment order is going to be printed.

Adding a condition for using the user language in that case makes this more
comfortable.
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
Ernesto Tejeda
e45f6615ea [IMP] account_payment_order: change 'bill reference' column value in reports 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
Pedro M. Baeza
03cc091f40 [FIX] account_payment_order: Sequences must be noupdate=1 2021-01-05 14:03:52 +01:00
Sergio Teruel
1e77d4ff6d [FIX] account_payment_order: Fix payment order report. Adapt to bootstrap4 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
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
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
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
Sergio Teruel
e1964064a8 [12.0][mig] account_payment_order: Migrate to v12.0 2021-01-05 14:03:52 +01:00
Alexis de Lattre
372743f5bb [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
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
Enric Tobella
c58175bd6d [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
2021-01-05 14:03:52 +01:00
Carlos Dauden
197e8a21e0 [FIX] account_payment_order: Add bank payment line multi-company rule 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