Skip to content

Conversation

@hsal-odoo
Copy link

This commit fixes the upgrade-util tests that failed due to the removal of res.bank model. The model res.bank was replaced with res.partner.

task-5145618

@robodoo
Copy link
Contributor

robodoo commented Nov 28, 2025

Pull request status dashboard

@hsal-odoo hsal-odoo force-pushed the master-bank_ux-hsal branch 5 times, most recently from 02ca3fc to a8057a7 Compare December 9, 2025 04:19
@hsal-odoo hsal-odoo requested review from a team and Pirols December 9, 2025 21:20
@aj-fuentes
Copy link
Contributor

upgradeci retry with base in all versions

util.flush(p1)
with self.assertRaises(AssertionError), self.assertUpdated("res_bank", ids=[]):
self.env["res.bank"].create({"name": "Annie Leonhart"})
with self.assertRaises(AssertionError), self.assertUpdated("res_partner", ids=[]):
Copy link
Contributor

Choose a reason for hiding this comment

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

@jjmaksoud could you have a quick look if this part is fine? It looks OK to me.

@aj-fuentes
Copy link
Contributor

upgradeci retry with base in all versions

@aj-fuentes
Copy link
Contributor

@robodoo r+

@robodoo
Copy link
Contributor

robodoo commented Dec 22, 2025

@hsal-odoo @aj-fuentes linked pull request(s) odoo/enterprise#99418, odoo/odoo#234974 not ready. Linked PRs are not staged until all of them are ready.

This commit fixes the upgrade-util tests that failed due to the
removal of res.bank model. The model res.bank was replaced with
res.partner.

task-5145618
@aj-fuentes
Copy link
Contributor

@robodoo r+

Copy link
Contributor

@jjmaksoud jjmaksoud left a comment

Choose a reason for hiding this comment

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

The failure in saas~12.3 when the assert uses create and id=[] is due to how the orm back then created a record then updated its computed fields in separate queries. It was working by chance simply because re.bank did not have any stored computed fields. I will do a followup pr to address this limitation

robodoo pushed a commit to odoo/odoo that referenced this pull request Dec 22, 2025
This commit improves the UX of bank accounts by:
1. removing res.bank model
2. removes localizations redundancy
3. some fields in localizations should be available to all companies
4. most countries had missing fields

task-5145618

closes #234974

Related: odoo/enterprise#99418
Related: odoo/upgrade#8958
Related: odoo/upgrade-util#358
Signed-off-by: Fabien Pinckaers (fp) <fp@odoo.com>
robodoo pushed a commit that referenced this pull request Dec 22, 2025
This commit fixes the upgrade-util tests that failed due to the
removal of res.bank model. The model res.bank was replaced with
res.partner.

task-5145618

closes #358

Related: odoo/odoo#234974
Related: odoo/enterprise#99418
Related: odoo/upgrade#8958
Signed-off-by: Alvaro Fuentes Suarez (afu) <afu@odoo.com>
robodoo pushed a commit to odoo/odoo that referenced this pull request Dec 22, 2025
This commit improves the UX of bank accounts by:
1. removing res.bank model
2. removes localizations redundancy
3. some fields in localizations should be available to all companies
4. most countries had missing fields

task-5145618

closes #234974

Related: odoo/enterprise#99418
Related: odoo/upgrade#8958
Related: odoo/upgrade-util#358
Signed-off-by: Fabien Pinckaers (fp) <fp@odoo.com>
robodoo pushed a commit that referenced this pull request Dec 22, 2025
This commit fixes the upgrade-util tests that failed due to the
removal of res.bank model. The model res.bank was replaced with
res.partner.

task-5145618

closes #358

Related: odoo/odoo#234974
Related: odoo/enterprise#99418
Related: odoo/upgrade#8958
Signed-off-by: Alvaro Fuentes Suarez (afu) <afu@odoo.com>
robodoo pushed a commit to odoo/odoo that referenced this pull request Dec 22, 2025
This commit improves the UX of bank accounts by:
1. removing res.bank model
2. removes localizations redundancy
3. some fields in localizations should be available to all companies
4. most countries had missing fields

task-5145618

closes #234974

Related: odoo/enterprise#99418
Related: odoo/upgrade#8958
Related: odoo/upgrade-util#358
Signed-off-by: Fabien Pinckaers (fp) <fp@odoo.com>
robodoo pushed a commit that referenced this pull request Dec 22, 2025
This commit fixes the upgrade-util tests that failed due to the
removal of res.bank model. The model res.bank was replaced with
res.partner.

task-5145618

closes #358

Related: odoo/odoo#234974
Related: odoo/enterprise#99418
Related: odoo/upgrade#8958
Signed-off-by: Alvaro Fuentes Suarez (afu) <afu@odoo.com>
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.

4 participants