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
Francesco Foresti
56d568d0e9
Translated using Weblate (Italian)
...
Currently translated at 100.0% (4 of 4 strings)
Translation: bank-payment-16.0/bank-payment-16.0-account_payment_purchase_stock
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_purchase_stock/it/
2023-06-06 16:09:58 +00:00
gelo joga Rodríguez
20c7f48c00
Translated using Weblate (Spanish)
...
Currently translated at 64.7% (110 of 170 strings)
Translation: bank-payment-16.0/bank-payment-16.0-account_banking_pain_base
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_pain_base/es/
2023-06-06 16:09:58 +00:00
Francesco Foresti
344556b590
Translated using Weblate (Italian)
...
Currently translated at 81.6% (89 of 109 strings)
Translation: bank-payment-16.0/bank-payment-16.0-account_banking_mandate
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_mandate/it/
2023-06-06 16:09:57 +00:00
mymage
2c435a0616
Translated using Weblate (Italian)
...
Currently translated at 62.5% (30 of 48 strings)
Translation: bank-payment-16.0/bank-payment-16.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_mode/it/
2023-06-05 08:09:35 +00:00
Weblate
a2a58619d2
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_banking_sepa_credit_transfer
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_banking_sepa_credit_transfer/
2023-06-03 19:10:46 +00:00
OCA-git-bot
249b120b2c
[ADD] setup.py
2023-06-03 15:24:07 +00:00
OCA-git-bot
41463f69be
[UPD] README.rst
2023-06-03 15:24:07 +00:00
OCA-git-bot
cb8685d5b6
[UPD] addons table in README.md
2023-06-03 15:24:05 +00:00
oca-ci
2b517f8ed4
[UPD] Update account_banking_sepa_credit_transfer.pot
2023-06-03 15:19:18 +00:00
OCA-git-bot
feea7e2d29
Merge PR #990 into 16.0
...
Signed-off-by pedrobaeza
2023-06-03 15:15:49 +00:00
OCA-git-bot
3ed695371a
[ADD] setup.py
2023-06-03 15:04:16 +00:00
OCA-git-bot
b24af87982
[UPD] README.rst
2023-06-03 15:04:16 +00:00
OCA-git-bot
1ce456307a
[UPD] addons table in README.md
2023-06-03 15:04:14 +00:00
oca-ci
4f8d06e2e5
[UPD] Update account_banking_sepa_direct_debit.pot
2023-06-03 14:59:22 +00:00
OCA-git-bot
95b23bff23
Merge PR #1029 into 16.0
...
Signed-off-by pedrobaeza
2023-06-03 14:56:08 +00:00
OCA-git-bot
d97ffd3917
[ADD] setup.py
2023-06-02 23:34:10 +00:00
OCA-git-bot
0b986dbaee
[UPD] README.rst
2023-06-02 23:34:09 +00:00
OCA-git-bot
f941577fb7
[UPD] addons table in README.md
2023-06-02 23:34:07 +00:00
oca-ci
6c3dda19e5
[UPD] Update account_payment_purchase_stock.pot
2023-06-02 23:30:06 +00:00
OCA-git-bot
536ab95b67
Merge PR #1063 into 16.0
...
Signed-off-by pedrobaeza
2023-06-02 23:26:13 +00:00
gelo joga Rodríguez
5d9e24eb51
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (48 of 48 strings)
Translation: bank-payment-16.0/bank-payment-16.0-account_payment_mode
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_mode/es/
2023-06-02 14:09:58 +00:00
SodexisTeam
5a899bb52f
[MIG] account_payment_purchase_stock: Migration to 16.0
2023-06-02 13:18:48 +05:30
SodexisTeam
795c83e5b9
[IMP] account_payment_purchase_stock: pre-commit stuff
2023-06-02 13:18:48 +05:30
Weblate
2441665e9a
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_purchase_stock
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-15-0/bank-payment-15-0-account_payment_purchase_stock/
2023-06-02 13:18:48 +05:30
OCA-git-bot
d075b61ecc
[UPD] README.rst
2023-06-02 13:18:48 +05:30
oca-ci
6be1720548
[UPD] Update account_payment_purchase_stock.pot
2023-06-02 13:18:48 +05:30
Koen Loodts
52154fe99e
[MIG] account_payment_purchase_stock: Migration to 15.0
2023-06-02 13:18:48 +05:30
OCA-git-bot
2c69788057
account_payment_purchase_stock 14.0.1.0.1
2023-06-02 13:18:48 +05:30
Francesco Foresti
f6d527e354
Translated using Weblate (Italian)
...
Currently translated at 100.0% (4 of 4 strings)
Translation: bank-payment-14.0/bank-payment-14.0-account_payment_purchase_stock
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_purchase_stock/it/
2023-06-02 13:18:48 +05:30
Francesco Foresti
30b027c54c
Added translation using Weblate (Italian)
2023-06-02 13:18:48 +05:30
Jordi Ballester
3fd24bce23
[account_payment_purchase][fix] Only warn for non-blank payment mode or bank PO
...
- Only issue a warning message if the PO had a non-blank payment mode or bank.
2023-06-02 13:18:48 +05:30
Yves Le Doeuff
25e71ed49e
Translated using Weblate (French (France))
...
Currently translated at 75.0% (3 of 4 strings)
Translation: bank-payment-14.0/bank-payment-14.0-account_payment_purchase_stock
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_purchase_stock/fr_FR/
2023-06-02 13:18:48 +05:30
Yves Le Doeuff
6d077db167
Added translation using Weblate (French (France))
2023-06-02 13:18:48 +05:30
Ignacio Buioli
f8f1b3c467
Translated using Weblate (Spanish (Argentina))
...
Currently translated at 100.0% (4 of 4 strings)
Translation: bank-payment-14.0/bank-payment-14.0-account_payment_purchase_stock
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-14-0/bank-payment-14-0-account_payment_purchase_stock/es_AR/
2023-06-02 13:18:48 +05:30
Ignacio Buioli
96d8a82549
Added translation using Weblate (Spanish (Argentina))
2023-06-02 13:18:48 +05:30
OCA-git-bot
23e849a851
[UPD] README.rst
2023-06-02 13:18:48 +05:30
oca-travis
d74f9f04b2
[UPD] Update account_payment_purchase_stock.pot
2023-06-02 13:18:48 +05:30
Carlos Roca
61f9933e67
[MIG] account_payment_purchase_stock: Migration to v14
2023-06-02 13:18:48 +05:30
Andrea
db621591e6
Split account_payment_purchase (add account_payment_purchase_stock)
2023-06-02 13:18:48 +05:30
gelo joga Rodríguez
5529fe7c23
Translated using Weblate (Spanish)
...
Currently translated at 100.0% (8 of 8 strings)
Translation: bank-payment-16.0/bank-payment-16.0-account_payment_purchase
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_purchase/es/
2023-06-01 18:09:50 +00:00
Weblate
f8d5cf9824
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_purchase
Translate-URL: https://translation.odoo-community.org/projects/bank-payment-16-0/bank-payment-16-0-account_payment_purchase/
2023-06-01 11:47:39 +00:00
OCA-git-bot
3a9f94aadd
[ADD] setup.py
2023-06-01 10:31:36 +00:00
OCA-git-bot
575648df61
[UPD] README.rst
2023-06-01 10:31:34 +00:00
OCA-git-bot
a977c3bc74
[UPD] addons table in README.md
2023-06-01 10:31:31 +00:00
oca-ci
df3d575363
[UPD] Update account_payment_purchase.pot
2023-06-01 10:27:21 +00:00
OCA-git-bot
2fcc74822c
Merge PR #1004 into 16.0
...
Signed-off-by pedrobaeza
2023-06-01 10:23:14 +00:00
David Ramia
3094e7e25c
[MIG] account_payment_purchase: Migration to 16.0
2023-06-01 11:26:57 +02:00
David Ramia
5235cb635d
[IMP] account_payment_purchase: pre-commit stuff
2023-06-01 11:26:57 +02:00
Vladimir Mitreski
6ab34e532b
[FIX] account_payment_purchase: Make payment method to require bank account
...
Without this fix, the partner_bank_id was being reset to False on change of 'company_id'
in the _onchange_purchase_auto_complete method in account.move in the following unit test:
def test_from_purchase_order_invoicing_bank
That's because in commit 9be9766535 we switched to
getting payment method from env.ref('account.account_payment_method_manual_out'), which has
bank_account_required == False by default, while before that we were creating payment method for
which we were explicitly setting bank_account_required as True
Also tag unit test as post_install
2023-06-01 11:26:57 +02:00