Commit Graph

181 Commits

Author SHA1 Message Date
Enric Tobella
e6093981f4 [IMP] account_payment_order: Remove dependancies on demo data on tests 2025-01-07 15:55:47 +00:00
OCA-git-bot
061c286b0d [BOT] post-merge updates 2024-12-05 10:13:33 +00:00
Pedro M. Baeza
e3559288b2 [IMP] account_payment_order: Shorten the vertical used space
Having 2 lines for the reference (one for the type and the other for
the reference itself) steals vertical space to the really important
things in the invoice: the lines, so we compact them into one line
for better ergonomics.
2024-12-05 08:19:27 +01:00
OCA-git-bot
3cac380d8d [BOT] post-merge updates 2024-11-28 10:15:39 +00:00
SilvioC2C
9963b795e8 [FIX] account_payment_order: fix `TypeError`
Method ``_get_reconciled_invoices_partials()`` returns 2 lists:
- the first one contains triplets defined as (account.partial.reconcile record, amount, account.move.line record)
- the second one contains account.move IDs

Merging the 2 lists and cycling over them with
```
for (_x, _y, payment_move_line) in list1 + list2:
    ...
```
resulted in ``TypeError: cannot unpack non-iterable int object``.

This commit fixes this bug.
2024-11-27 13:21:35 +01:00
OCA-git-bot
8db0718708 [BOT] post-merge updates 2024-11-22 11:28:53 +00:00
micheledic
f3cc0197d3 [FIX] account_payment_order: add missing currency field on payment line 2024-11-20 16:51:17 +01:00
mymage
38ceaa9609 Translated using Weblate (Italian)
Currently translated at 100.0% (213 of 213 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-10-22 10:06:39 +00:00
mymage
29e1f611ff Translated using Weblate (Italian)
Currently translated at 100.0% (213 of 213 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-10-03 09:06:58 +00:00
Weblate
83687b3433 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/
2024-10-01 13:29:19 +00:00
OCA-git-bot
23fb918018 [BOT] post-merge updates 2024-10-01 13:29:11 +00:00
oca-ci
65cd57988e [UPD] Update account_payment_order.pot 2024-10-01 13:25:18 +00:00
Stéphane Bidoul
b6fd8615c7 [MIG] account_payment_order: migration of view button 2024-10-01 11:44:40 +02:00
Stéphane Bidoul
47738846c6 account_payment_order: add button to view business document
Quick access to business document on payment lines.
2024-10-01 11:39:27 +02:00
OCA-git-bot
dba499b0df [BOT] post-merge updates 2024-09-20 06:47:56 +00:00
josep-tecnativa
a0bde7a5c1 [IMP] account_payment_order: test performance improvement
- Create setUpClass method
- Switch to setUpClass (if needed) for avoiding repeat the same setup for each test.
- Include context keys for avoiding mail operations overhead.
2024-09-19 10:46:05 +02:00
josep-tecnativa
dce0c0e532 [IMP] account_banking_mandate: test performance improvement
- Include context keys for avoiding mail operations overhead.
2024-09-19 10:29:13 +02:00
OCA-git-bot
260d47b47d [BOT] post-merge updates 2024-09-17 06:27:09 +00:00
Pedro M. Baeza
ecee08a10b [FIX] account_payment_order: Assure partner bank account in payments
On certain v16 instances, although the partner bank account that is
being pre-set in the account.payment creation values dictionary:

https://github.com/OCA/bank-payment/blob/fc7783669f40d85/account_payment_order/models/account_payment_line.py#L206

it's being marked as dirty (it's a computed writable field), and thus,
being recomputed before being saved, getting an invalid value (on
direct debits, the company's bank account).

The triggers that lead to this situation are unknown due to the low
level where it's happening and the tons of interactions being taken in
place, so the best way to deal with this is to override the compute
method that computes this value, so even if the field is recomputed, it
gets the correct value.

Let's be pragmatic...

TT50804
2024-09-16 19:31:55 +02:00
mymage
1ba71770a6 Translated using Weblate (Italian)
Currently translated at 100.0% (212 of 212 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-08-16 09:58:37 +00:00
Weblate
17b7aeb750 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/
2024-08-14 20:17:17 +00:00
OCA-git-bot
f228e96514 [BOT] post-merge updates 2024-08-14 20:17:10 +00:00
oca-ci
c541a527ee [UPD] Update account_payment_order.pot 2024-08-14 20:13:25 +00:00
OCA-git-bot
7b01250bde Merge PR #1318 into 17.0
Signed-off-by pedrobaeza
2024-08-14 20:09:59 +00:00
mymage
a1d3ff0023 Translated using Weblate (Italian)
Currently translated at 100.0% (211 of 211 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-08-12 08:58:42 +00:00
Weblate
dbbd495dbd Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/
2024-08-09 16:26:02 +00:00
OCA-git-bot
3a86df98d3 [BOT] post-merge updates 2024-08-09 16:25:52 +00:00
oca-ci
f353eb4345 [UPD] Update account_payment_order.pot 2024-08-09 16:22:14 +00:00
OCA-git-bot
aa243259b6 Merge PR #1319 into 17.0
Signed-off-by pedrobaeza
2024-08-09 16:18:56 +00:00
Weblate
d01750f170 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/
2024-07-16 12:02:06 +00:00
oca-ci
156c6624c5 [UPD] Update account_payment_order.pot 2024-07-16 12:01:50 +00:00
Víctor Martínez
8029f4f9f6 [IMP] account_payment_order*: Define the correct date in the files that are generated.
Compatibility with https://github.com/OCA/bank-payment/pull/1306

The payment (account.payment) and the account entry (account.move) are defined with today's date,
but the "important" date is the date of the line, therefore the payment_line_date field is created.

The modules account_banking_sepa_sepa_direct_debit + account_banking_sepa_credit_transfer
to use the payment_line_date field.

TT49988
2024-07-16 12:20:13 +02:00
sbejaoui
47e8f01627 [FIX] account_payment_order: add missing option "structured" to payment line ref type
The payment line reference type takes its value from the invoice reference
type, and both fields must have the same options.
The missing option "structured" causes a bug during payment creation.

the test is modified to be able to reproduce the problem.
2024-07-15 09:24:36 +02:00
OCA-git-bot
be6a4567e1 [BOT] post-merge updates 2024-07-03 20:54:09 +00:00
Víctor Martínez
a542bb068e [IMP] account_payment_order: Apply readonly=True to Payment Date field of transactions
Transactions (payment_line_ids) are readonly=True when the payment order is confirmed
2024-07-02 09:53:16 +02:00
Víctor Martínez
e765ad16b9 [IMP] account_payment_order: Add Transfer moves dates
In v13 the existing behavior was defined with today's date the Transfer Move, therefore, we define
that behavior by default without configuration since it is the expected behavior.

https://github.com/OCA/bank-payment/pull/805/files

TT49582
2024-07-02 09:53:16 +02:00
OCA-git-bot
a8ee105ca8 [BOT] post-merge updates 2024-07-01 17:48:10 +00:00
OCA-git-bot
8de9042f19 Merge PR #1285 into 17.0
Signed-off-by pedrobaeza
2024-07-01 17:44:34 +00:00
mymage
4252894d3b Translated using Weblate (Italian)
Currently translated at 100.0% (211 of 211 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-06-12 21:40:21 +00:00
Weblate
2ea35fefdd Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/
2024-06-10 09:00:55 +00:00
OCA-git-bot
0739bb5cee [BOT] post-merge updates 2024-06-10 08:19:13 +00:00
oca-ci
78fcdda373 [UPD] Update account_payment_order.pot 2024-06-10 08:12:30 +00:00
Luc De Meyer
8faf8edf05 [IMP] account_payment_order: update payment reference on open payment order
This commits adds the possibility to update the payment reference on a
payment transaction before generating XML file.
2024-06-09 22:10:17 +02:00
Pedro M. Baeza
15bc63416a [IMP] account_payment_order: Mark invoices in a payment order as in payment
Odoo core already includes a mechanism, only activated in enterprise,
to mark invoices reconciled against a payment as "In payment", not as
"Paid", and then when the bank reconciliation is done, passed to "Paid".

As we already refactored the payment order transfer entries generation
to be done by payments, the only missing bits is to override the method
that returns the payment state to put.

We have limited this new payment state though to those invoices that
are part of a payment order, not all including those which were paid
pressing the button "Register payment", as that's out of the scope
of this module.

TT49386
2024-06-07 10:36:41 +02:00
jakobkrabbe
31aba68bd8 Translated using Weblate (Swedish)
Currently translated at 100.0% (209 of 209 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/sv/
2024-06-05 11:37:40 +00:00
Ivorra78
dbf767f53c Translated using Weblate (Spanish)
Currently translated at 100.0% (209 of 209 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/es/
2024-04-23 10:37:31 +00:00
mymage
452242aec2 Translated using Weblate (Italian)
Currently translated at 100.0% (209 of 209 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-04-16 16:43:14 +00:00
mymage
381472b040 Translated using Weblate (Italian)
Currently translated at 100.0% (209 of 209 strings)

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/it/
2024-04-11 11:36:17 +00:00
Weblate
bb303d9b0c Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-17.0/bank-payment-17.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-17-0/bank-payment-17-0-account_payment_order/
2024-04-10 22:36:10 +00:00
OCA-git-bot
2a535091ac [BOT] post-merge updates 2024-04-10 22:34:14 +00:00