Commit Graph

143 Commits

Author SHA1 Message Date
OCA-git-bot
760b9b01cc [BOT] post-merge updates 2024-04-22 10:18:13 +00:00
Luis J. Salvatierra
755e6024b0 [FIX] account_payment_partner: payment mode compute 2024-04-22 11:55:09 +02:00
OCA-git-bot
ae3bf9dcc8 [BOT] post-merge updates 2023-09-20 17:53:49 +00:00
OCA-git-bot
7c76b6149c Merge PR #1125 into 16.0
Signed-off-by pedrobaeza
2023-09-20 17:49:19 +00:00
OCA-git-bot
2fd38d4ac9 [UPD] README.rst 2023-09-03 11:49:50 +00:00
Luis J. Salvatierra
3e10ad2102 [FIX] account_payment_partner: fetchPreloadedData bug using selection widget 2023-07-26 16:44:57 +02:00
Rémi
018ae2e711 Translated using Weblate (French)
Currently translated at 100.0% (37 of 37 strings)

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_partner/fr/
2023-06-29 12:08:48 +00:00
OCA-git-bot
8146928e89 account_payment_partner 16.0.1.2.1 2023-06-13 17:05:21 +00:00
Akim Juillerat
ccf9d3bc6b account_payment_partner: Fix computation of partner_bank_id
The computation of partner_bank_id has not been migrated properly
since the move from account.invoice to account.move.

Before, we had an onchange on partner_id that did the following:
  - If no partner or no company, remove payment mode
    - If type = in_invoice, remove partner_bank_id as well
  - If partner and company,
    - If type = in_invoice, set payment mode from partner
      - if payment mode's payment method has bank account required,
        set the partner_bank_id to the commercial partner's bank
      - else set partner_bank_id to False
    - If type = out_invoice, set payment mode from partner and
      do not assign partner_bank_id

We also had an onchange on payment_mode_id that did the following:
  - If payment mode and its payment_type=outbound and its payment method
    has bank account required, set partner_bank_id to False
  - If no payment mode, set partner_bank_id to False

Now that partner_bank_id is a computed field, we shouldn't set its value
to False if the move is not a vendor bill or doesn't have a payment mode.

The computation of partner_bank_id must instead reflect the conditions we
used to have, that is:
  - If we don't have a payment_mode, set value to False
  - If we have a payment mode
    - If type=in_invoice and payment mode's payment method has not bank
      account required, set partner_bank_id to False (as setting the bank account
      from the partner is done in the call to super)
    - If type=out_invoice
      - if payment mode's payment method has bank account required
        - set partner_bank_id to the bank account linked to the fixed journal
          of payment mode if defined
        - do not set anything if that isn't the case since setting the bank account
          from the company is done in the call to super)
      - if payment mode's payment method does not have bank account required,
        set partner_bank_id to False

Closes: #1091
2023-06-06 19:52:50 +02:00
OCA-git-bot
23984c7a2d account_payment_partner 16.0.1.2.0 2023-04-21 07:40:31 +00:00
Rodrigo
6389e560c3 [FIX] account_payment_partner: bad application of attributes on the field partner_bank_id, this commit fixes showing the same field twice in customer invoices. 2023-04-13 16:35:55 +02:00
gelo joga Rodríguez
afcf5eeb53 Translated using Weblate (Spanish)
Currently translated at 100.0% (37 of 37 strings)

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_partner/es/
2023-04-12 10:07:18 +00:00
OCA-git-bot
d3accbc1ff account_payment_partner 16.0.1.1.1 2023-02-24 11:13:59 +00:00
Danny W. Adair
68a2624bed 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-24 11:10:17 +13:00
Weblate
d59de8cb71 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_partner/
2023-01-25 20:11:04 +00:00
OCA-git-bot
ab97bc9f83 account_payment_partner 16.0.1.1.0 2023-01-25 20:10:51 +00:00
oca-ci
03e98fe9a0 [UPD] Update account_payment_partner.pot 2023-01-25 20:08:04 +00:00
Pedro M. Baeza
2b4bc079c2 [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-25 18:40:40 +01:00
Pedro M. Baeza
c816feb80d [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-25 18:14:57 +01:00
Bole
f169d1d344 Translated using Weblate (Croatian)
Currently translated at 94.7% (36 of 38 strings)

Translation: bank-payment-16.0/bank-payment-16.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_partner/hr/
2023-01-04 13:44:59 +00:00
OCA-git-bot
a0e614d7eb account_payment_partner 16.0.1.0.1 2023-01-02 14:33:19 +00:00
David Ramia
48be0b195d [FIX] account_payment_partner: fix error in _reverse_moves 2023-01-02 14:19:52 +01:00
OCA-git-bot
8acbda841f [UPD] README.rst 2022-12-06 14:51:23 +00:00
oca-ci
f9ab88060b [UPD] Update account_payment_partner.pot 2022-12-06 14:48:44 +00:00
Thomas Binsfeld
00ab7d0df1 [MIG] account_payment_partner: Migration to 16.0 2022-11-29 14:51:23 +01:00
OCA-git-bot
9244d49dbb account_payment_partner 15.0.1.2.0 2022-11-29 14:15:04 +01:00
Felipe
2d69e3f8cb [FIX] company in payment_mode_id domain 2022-11-29 14:15:04 +01:00
João Marques
e16214cc8b [FIX] account_payment_partner: Fix multi-company issues
Make payment_mode fields limited to the correct company

TT28906
2022-11-29 14:15:04 +01:00
OCA-git-bot
92cd1d7e15 account_payment_partner 15.0.1.1.2 2022-11-29 14:15:04 +01:00
David Ramia
7c98ab268e [FIX] account_payment_partner: Fix tests
Add company permissions to the admin user to be able to create the demo data
2022-11-29 14:15:04 +01:00
OCA-git-bot
96c5f6bfca account_payment_partner 15.0.1.1.1 2022-11-29 14:15:04 +01:00
OCA-git-bot
093049a85f [UPD] README.rst 2022-11-29 14:15:04 +01:00
Enric Tobella
cbc67a76da [IMP] account_payment_partner: Promote to Mature 2022-11-29 14:15:04 +01:00
Noel estudillo
9260c48cdd Translated using Weblate (Catalan)
Currently translated at 100.0% (38 of 38 strings)

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/ca/
2022-11-29 14:15:04 +01:00
juliap98
a98ec78709 Translated using Weblate (Catalan)
Currently translated at 97.3% (37 of 38 strings)

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/ca/
2022-11-29 14:15:04 +01:00
OCA-git-bot
dfeaf9edb6 account_payment_partner 15.0.1.1.0 2022-11-29 14:15:04 +01:00
Miquel Raïch
e40ed0979c [FIX] account_payment_partner: only use bank_account_required in bills 2022-11-29 14:15:04 +01:00
OCA-git-bot
04573fce9a [UPD] README.rst 2022-11-29 14:15:04 +01:00
oca-ci
3c14704ea7 [UPD] Update account_payment_partner.pot 2022-11-29 14:15:04 +01:00
Marçal Isern
ec6028f8d4 [MIG] account_payment_partner: Migration to 15.0 2022-11-29 14:15:04 +01:00
Marçal Isern
8ad04276f5 [IMP] account_payment_partner: black, isort, prettier 2022-11-29 14:15:03 +01:00
Simon S
2ef534d400 Translated using Weblate (Swedish)
Currently translated at 89.4% (34 of 38 strings)

Translation: bank-payment-14.0/bank-payment-14.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_partner/sv/
2022-11-29 14:15:03 +01:00
Simon S
8d8351b524 Added translation using Weblate (Swedish) 2022-11-29 14:15:03 +01:00
Francesco Foresti
db298f3044 Translated using Weblate (Italian)
Currently translated at 2.6% (1 of 38 strings)

Translation: bank-payment-14.0/bank-payment-14.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_partner/it/
2022-11-29 14:15:03 +01:00
Francesco Foresti
7ac7085a2a Added translation using Weblate (Italian) 2022-11-29 14:15:03 +01:00
Alexis de Lattre
af6fa4508f 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-11-29 14:15:03 +01:00
Alexis de Lattre
5a55fc89a5 account_payment_partner: add optional="hide" on payment mode in invoice tree view 2022-11-29 14:15:03 +01:00
Pedro Castro Silva
4c1ecc8375 Translated using Weblate (Portuguese)
Currently translated at 100.0% (38 of 38 strings)

Translation: bank-payment-14.0/bank-payment-14.0-account_payment_partner
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_partner/pt/
2022-11-29 14:15:03 +01:00
Pedro Castro Silva
5b73ef104e Added translation using Weblate (Portuguese) 2022-11-29 14:15:03 +01:00
OCA-git-bot
095e368b59 account_payment_partner 14.0.1.3.1 2022-11-29 14:15:03 +01:00