Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.0][FIX] Don't store acc_type of res.partner.bank #467

Merged
merged 2 commits into from
Apr 14, 2018

Conversation

alexis-via
Copy link
Contributor

We have a problem due to the fact that account_payment_mode adds store=True on the native computed field acc_type of res.partner.bank
This is particularly visible when you add the module on a database with existing accounts or when you migrate from v8 to v10 for example: even if you have the module base_iban, acc_type = 'bank' on IBAN accounts. This seems to be linked to the fact that when Odoo computes+stores the initial value of the field, it doesn't take into account the inherits of the native compute method, so it will not take into account the inherit in base_iban.

There are maybe better ways to fix this (add a search method ?) ; this PR is a first proposal to address this important problem.

Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pedrobaeza
Copy link
Member

Cherry-pick for v9: f9d38f2
Cherry-pick for v11: a8d031b

mourad-ehm pushed a commit to akretion/banking that referenced this pull request Oct 2, 2018
sergio-teruel pushed a commit to Tecnativa/bank-payment that referenced this pull request Nov 5, 2018
antoinecln pushed a commit to antoinecln/bank-payment that referenced this pull request Nov 23, 2018
levkar pushed a commit to levkar/bank-payment that referenced this pull request Dec 6, 2018
mourad-ehm pushed a commit to akretion/banking that referenced this pull request Dec 10, 2018
pedrobaeza pushed a commit to akretion/banking that referenced this pull request Dec 13, 2018
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
sebalix pushed a commit to camptocamp/bank-payment that referenced this pull request Feb 25, 2019
sebalix pushed a commit to camptocamp/bank-payment that referenced this pull request Feb 25, 2019
lembregtse pushed a commit to lembregtse/bank-payment that referenced this pull request Oct 1, 2019
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
rven pushed a commit to lembregtse/bank-payment that referenced this pull request Nov 8, 2019
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
misern2 pushed a commit to QubiQ/bank-payment that referenced this pull request Oct 16, 2020
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
alexis-via pushed a commit to akretion/banking that referenced this pull request Oct 16, 2020
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
simahawk pushed a commit to simahawk/edi that referenced this pull request Jul 9, 2021
dnplkndll pushed a commit to Kencove/bank-payment that referenced this pull request Oct 31, 2021
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
misern2 pushed a commit to QubiQ/bank-payment that referenced this pull request Nov 24, 2021
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
jaredkipe pushed a commit to hibou-io/oca-bank-payment that referenced this pull request Dec 15, 2021
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
fredzamoabg pushed a commit to fredzamoabg/bank-payment that referenced this pull request Feb 2, 2022
ThomasBinsfeld pushed a commit to acsone/bank-payment that referenced this pull request Oct 10, 2022
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
tafaRU pushed a commit to agilebg/bank-payment that referenced this pull request Aug 31, 2023
tafaRU pushed a commit to agilebg/bank-payment that referenced this pull request Aug 31, 2023
TDu pushed a commit to camptocamp/edi that referenced this pull request Nov 22, 2023
miquelalzanillas pushed a commit to APSL/bank-payment that referenced this pull request Nov 22, 2023
…+ fix

- FIX: Don't store acc_type of res.partner.bank (OCA#467)
- when manually encoding a payment line, get company currency as default currency
- Search on payment order numbers
- Direct search on bank journal name in payment orders
- remove widget="selection" on account.payement.mode : this object is rarely modified, so widget='selection' is not a time saver, but we miss the HTML link, which can be pretty convenient to check the configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants