Commit Graph

174 Commits

Author SHA1 Message Date
OCA-git-bot
75d65952b8 account_payment_order 15.0.2.0.0 2023-03-04 18:39:25 +00:00
oca-ci
92a89588fc [UPD] Update account_payment_order.pot 2023-03-04 18:34:34 +00:00
Pedro M. Baeza
ccad6d34a8 [FIX] account_payment_order: Do correctly the fix on tests
Previous patch by Alexis created a co-dependency between
account_payment_order and account_banking_sepa_direct_debit, which is
not correct.

This patch avoids such problem and fix properly the test, although
the utility of some of them is debatible.
2023-03-04 19:25:27 +01:00
Pedro M. Baeza
25533267f4 [OU-ADD] account_payment_order: Migration scripts to native payment ref
This adapts the old bank.payment.line records to account.payment records
according the new approach, taking into account if you come from v14
with the refactoring applied.
2023-03-04 19:25:27 +01:00
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
Weblate
fecd31a266 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-15.0/bank-payment-15.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_payment_order/
2023-03-04 11:51:42 +00:00
OCA-git-bot
a04be8e310 account_payment_order 15.0.1.2.0 2023-03-04 11:51:23 +00:00
OCA-git-bot
c409e78e8b [UPD] README.rst 2023-03-04 11:51:22 +00:00
Alexis de Lattre
676a9429f8 [IMP] account_payment_order: add link to payment order in chatter 2023-03-04 12:41:01 +01:00
Bert Driehuis
91421d3019 [FIX] account_payment_order: Fallback to payment_ref if ref is undefined 2023-03-04 12:41:01 +01:00
Denis Roussel
eedc6300b5 [IMP] account_payment_order: Better communication field management
- Add a hook method to retrieve communication type and communication
- Improve normal communication if there is a credit note
  If there is a credit note that partially cancel an invoice, the payment communication
  should be the combination of the invoice reference and the credit note one.
- Remove not needed assert as parameter is required
- Use the 'payment_reference' field if filled in
- Add existing payment references to communication
  If some movements have been reconciled with the original invoice,
  their references should be added in communication too.
  e.g.: Manual credit notes
- Don't duplicate communication reference
2023-03-04 12:41:01 +01:00
Pedro M. Baeza
784c6b9e61 [FIX] account_payment_order: Proper indentation for test + make it work
The test introduced in 7bdb286aa1 is not
valid, as its indentation made it to not be executed. Anyways, the
content and the tested things are also not correct.
2023-03-04 12:29:16 +01:00
Carlos Lopez
3bc92b0f10 [IMP] account_payment_order: outbound inheritable + SavepointCase
This commit split the tests for outbound payment in a base inheritable class that
can be reused in other dependant modules, and the test of this module.

similar to 86bd1a2525
2023-03-04 12:29:16 +01:00
OCA-git-bot
437e817d15 account_payment_order 15.0.1.1.2 2023-02-23 08:25:46 +00:00
Danny W. Adair
1a9743099a Add pre_init_hook to add computed column
Add partner_bank_id column to avoid MemoryError on an existing Odoo
instance with lots of data.

partner_bank_id on account.move.line requires payment_order_ok to be True
which it won't be as it's newly introduced - again nothing to compute.
(see AccountMoveLine._compute_partner_bank_id() in models/account_move_line.py)
2023-02-23 12:51:39 +13:00
OCA-git-bot
35547630a2 account_payment_order 15.0.1.1.1 2022-12-15 07:11:21 +00:00
Antony Herrera
f8398a527b [FIX] account_payment_order: Error in Batch Payments when deleting a Batch Content line 2022-12-14 22:59:13 -04:00
Weblate
c405d06551 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-15.0/bank-payment-15.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_payment_order/
2022-11-17 11:49:48 +00:00
OCA-git-bot
5702c7f71c account_payment_order 15.0.1.1.0 2022-11-17 11:49:35 +00:00
oca-ci
9e9cec1a8f [UPD] Update account_payment_order.pot 2022-11-17 11:46:24 +00:00
OCA-git-bot
d5ec7c2975 Merge PR #976 into 15.0
Signed-off-by pedrobaeza
2022-11-17 11:42:33 +00:00
manu
adb729a997 [IMP]account_payment_order: Add activities to account.payment.order model 2022-10-27 11:14:03 +02:00
OCA Transbot
4e0bd73d06 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-15.0/bank-payment-15.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_payment_order/
2022-09-26 14:39:19 +00:00
OCA-git-bot
f5ed65920a account_payment_order 15.0.1.0.5 2022-09-26 14:39:03 +00:00
oca-ci
f28e8d86e8 [UPD] Update account_payment_order.pot 2022-09-26 14:35:44 +00:00
Adrien Peiffer
6c5dc419ec [FIX] Restore payment order number in account move line label. 2022-09-26 16:27:47 +02:00
OCA-git-bot
0810196390 account_payment_order 15.0.1.0.4 2022-09-21 06:32:18 +00:00
Alexis de Lattre
62d7e977b6 [FIX] account_payment_order: fix action returned by create_account_payment_line()
create_account_payment_line() is supposed to returned a form view for a
single payment order and a tree view for multiple payment orders. Before
this fix, it would return a tree view if you were payment more than 1
invoices while generating a single payment order, because the list
result_payorder_ids would contain several time the same ID.
2022-09-21 08:07:00 +02:00
OCA-git-bot
36136aff75 account_payment_order 15.0.1.0.3 2022-07-07 06:50:40 +00:00
David Ramia
46ab40f75f [FIX] account_payment_order: Fix tests
Some tests need to be run on post-install
The bank_journal.inbound_payment_order_only field is true only if all inbound_payment_method_ids are payment_order_only True. For this we must include the "SEPA Direct Debit for customers" in test
2022-07-06 21:35:00 +02:00
Pedro M. Baeza
715da8fd19 [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:33:21 +02:00
OCA-git-bot
b5815a0b51 account_payment_order 15.0.1.0.1 2022-04-21 09:48:19 +00:00
OCA-git-bot
fbd6fe82fe [UPD] README.rst 2022-04-21 09:48:17 +00:00
Enric Tobella
48394823ad [IMP] account_payment_order: Promote to Mature 2022-04-21 11:36:57 +02:00
juliap98
253308f155 Translated using Weblate (Catalan)
Currently translated at 100.0% (212 of 212 strings)

Translation: bank-payment-15.0/bank-payment-15.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_payment_order/ca/
2022-03-29 10:17:13 +00:00
OCA-git-bot
09f8971e26 [UPD] README.rst 2022-03-16 16:48:01 +00:00
oca-ci
b89860d91e [UPD] Update account_payment_order.pot 2022-03-16 16:30:47 +00: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
OCA-git-bot
00dad96d50 account_payment_order 14.0.1.4.0 2022-03-09 17:58:47 +01:00
Simon S
2df3983383 Translated using Weblate (Swedish)
Currently translated at 65.0% (138 of 212 strings)

Translation: bank-payment-14.0/bank-payment-14.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_order/sv/
2022-03-09 17:58:47 +01:00
Simon S
34a1b752c4 Translated using Weblate (Swedish)
Currently translated at 63.6% (135 of 212 strings)

Translation: bank-payment-14.0/bank-payment-14.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_order/sv/
2022-03-09 17:58:47 +01:00
Simon S
ec71e63cb0 Translated using Weblate (Swedish)
Currently translated at 56.6% (120 of 212 strings)

Translation: bank-payment-14.0/bank-payment-14.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_order/sv/
2022-03-09 17:58:47 +01:00
Simon S
be77af9486 Added translation using Weblate (Swedish) 2022-03-09 17:58:47 +01:00
Ignacio Buioli
59a8110545 Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (212 of 212 strings)

Translation: bank-payment-14.0/bank-payment-14.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_order/es_AR/
2022-03-09 17:58:47 +01:00
OCA Transbot
b962aeb311 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-14.0/bank-payment-14.0-account_payment_order
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_order/
2022-03-09 17:58:47 +01:00
oca-travis
13abd83f7e [UPD] Update account_payment_order.pot 2022-03-09 17:58:47 +01:00
Alexis de Lattre
48db1b15ae Update test suite
Fix bug in account_banking_mandate when a res.partner.bank is not attached to a particular company (company_id is NOT required on res.partner.bank)
2022-03-09 17:58:47 +01:00
Alexis de Lattre
fd1ec5ab85 account_payment_order: payment_mode_id readonly when state != draft 2022-03-09 17:58:47 +01:00