Commit Graph

963 Commits

Author SHA1 Message Date
OCA-git-bot
5c42e111aa account_banking_pain_base 15.0.2.0.0 2023-03-04 18:39:27 +00:00
OCA-git-bot
a4cd368277 account_banking_mandate 15.0.2.0.0 2023-03-04 18:39:26 +00:00
OCA-git-bot
75d65952b8 account_payment_order 15.0.2.0.0 2023-03-04 18:39:25 +00:00
OCA-git-bot
85910e4b5d account_banking_sepa_direct_debit 15.0.2.0.0 2023-03-04 18:39:24 +00:00
oca-ci
92a89588fc [UPD] Update account_payment_order.pot 2023-03-04 18:34:34 +00:00
oca-ci
b4bb6217df [UPD] Update account_banking_sepa_direct_debit.pot 2023-03-04 18:34:33 +00:00
oca-ci
34f57b2641 [UPD] Update account_banking_pain_base.pot 2023-03-04 18:34:32 +00:00
oca-ci
2064ace907 [UPD] Update account_banking_mandate.pot 2023-03-04 18:34:31 +00:00
OCA-git-bot
f2796ebac2 Merge PR #1054 into 15.0
Signed-off-by pedrobaeza
2023-03-04 18:31:03 +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
ee6b97b665 [REF] account_banking_sepa_direct_debit: Adapt module to native payment refactoring
Notable changes:

- InstrId and EndToEndId tags are now filled with the journal entry ID,
  as there's no bank payment line identifier.
2023-03-04 19:25:27 +01:00
Pedro M. Baeza
8aff0fdaf3 [REF] account_banking_mandate: Adapt module to native payment refactoring 2023-03-04 19:25:27 +01:00
Pedro M. Baeza
96c7a8aa94 [REF] account_banking_sepa_credit_transfer: Adapt module to native payment refactoring
Notables changes:

- InstrId and EndToEndId tags are now filled with the journal entry ID,
  as there's no bank payment line identifier.
2023-03-04 19:25:27 +01:00
Pedro M. Baeza
5b299ca94f [REF] account_banking_pain_base: Adapt module to native payment refactoring 2023-03-04 18:56:37 +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
d82f29d7e6 [UPD] addons table in README.md 2023-03-04 11:51:27 +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
OCA-git-bot
bed8c7d403 Merge PR #1053 into 15.0
Signed-off-by pedrobaeza
2023-03-04 11:46:50 +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
83de8a6270 [UPD] addons table in README.md 2023-02-23 08:38:45 +00:00
OCA-git-bot
695d61b446 account_payment_partner 15.0.1.3.1 2023-02-23 08:38:40 +00:00
OCA-git-bot
487f58e4be Merge PR #1046 into 15.0
Signed-off-by pedrobaeza
2023-02-23 08:33:25 +00:00
OCA-git-bot
a36accc6e2 [UPD] addons table in README.md 2023-02-23 08:28:09 +00:00
OCA-git-bot
437e817d15 account_payment_order 15.0.1.1.2 2023-02-23 08:25:46 +00:00
OCA-git-bot
abfbaf3f6e Merge PR #1047 into 15.0
Signed-off-by pedrobaeza
2023-02-23 08:17:07 +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
Danny W. Adair
94430f3fec Add pre_init_hook to add computed columns
Add columns to avoid Memory error on an existing Odoo instance
with lots of data.

The payment_mode_id fields are introduced by this module and computed only
from each other or the also newly introduced supplier_payment_mode_id and
customer_payment_mode_id on res.partner, so they can stay NULL, nothing
to compute.
2023-02-23 12:45:16 +13:00
OCA-git-bot
5b242ff13f [UPD] addons table in README.md 2023-02-16 08:47:19 +00:00
OCA-git-bot
60b92d2f65 account_banking_sepa_direct_debit 15.0.1.0.2 2023-02-16 08:47:11 +00:00
OCA-git-bot
8bb3ca2a5a account_banking_sepa_credit_transfer 15.0.1.0.3 2023-02-16 08:47:07 +00:00
OCA-git-bot
41d9402d8b Merge PR #1031 into 15.0
Signed-off-by pedrobaeza
2023-02-16 08:41:49 +00:00
Pedro M. Baeza
4a0f9eb33e [FIX] account_banking_sepa_*: Remove post-installs
From this version, Odoo already includes code on the
account.payment.method creation for adding such method to each journal:

https://github.com/odoo/odoo/blob/a93ed75cb80f16f/addons/account/models/account_payment_method.py#L24-L38

so we don't need to explicitly create them for the new payment methods
we are adding in these modules.

TT41146
2023-02-09 09:47:57 +01:00
Pedro M. Baeza
47f5a31d5c Merge pull request #1032 from Tecnativa/15.0-copier
[15.0][FIX] Update copier template
2023-02-09 09:47:31 +01:00
Pedro M. Baeza
bdd2eb0a9e [FIX] Update copier template
To avoid the isort problem (PyCQA/isort#2077)
2023-02-09 09:42:59 +01:00
Francesco Foresti
39a78aaf19 Translated using Weblate (Italian)
Currently translated at 31.5% (54 of 171 strings)

Translation: bank-payment-15.0/bank-payment-15.0-account_banking_pain_base
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_banking_pain_base/it/
2023-01-30 19:45:06 +00:00
Weblate
cc52ba62f8 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_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_payment_partner/
2023-01-25 14:26:31 +00:00
OCA-git-bot
97e625cf53 [UPD] addons table in README.md 2023-01-25 14:26:22 +00:00
OCA-git-bot
b92a964cbb account_payment_partner 15.0.1.3.0 2023-01-25 14:26:16 +00:00
oca-ci
d8e39fbcd2 [UPD] Update account_payment_partner.pot 2023-01-25 14:22:07 +00:00
OCA-git-bot
6bc4a135ee Merge PR #1023 into 15.0
Signed-off-by pedrobaeza
2023-01-25 14:18:50 +00:00
Pedro M. Baeza
9ab139fdbc [IMP] account_payment_partner: Make payment mode editable on entry
Complement of 998f8df6aa254266c015fab144ba290e1a386cf0

Extend the editability to the journal entry (account.move), taking
as criteria if there's no reconciliation made, which is the definitory
one.

It includes test for this new feature, both the mode propagation and
the editability check.

TT39850
2023-01-23 08:49:31 +01:00
Pedro M. Baeza
ab9c5ff7e8 [IMP] account_payment_partner: Make payment mode editable on journal item
This field was editable in previous version before invoice > move
refactoring, and it's logic to allow to change payment mode once the
invoice has been posted without the need of resetting it to draft.

Thus, the field has been changed to computed writable field, taking care
of the consequences at model level (compute) and view level (add the
field in views + proper attrs).

This commits adds tracking=True to the payment mode field as well to be
aware when and who the payment mode is changed in the invoice, no matter
if directly changed in draft, or through the change on the journal item.

TT39850
2023-01-23 08:45:17 +01:00
Francesco Foresti
aa3c3cb280 Translated using Weblate (Italian)
Currently translated at 100.0% (7 of 7 strings)

Translation: bank-payment-15.0/bank-payment-15.0-account_payment_sale
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_payment_sale/it/
2023-01-18 11:46:24 +00:00