-
Notifications
You must be signed in to change notification settings - Fork 82
[IMP] tests: Fixed unit tests after res.bank removal #358
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
base: master
Are you sure you want to change the base?
Conversation
02ca3fc to
a8057a7
Compare
a8057a7 to
a2c5bd1
Compare
|
upgradeci retry with base in all versions |
a2c5bd1 to
610b827
Compare
| 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=[]): |
There was a problem hiding this comment.
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.
|
upgradeci retry with base in all versions |
|
@robodoo r+ |
|
@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
610b827 to
5a1af1d
Compare
|
@robodoo r+ |
jjmaksoud
left a comment
There was a problem hiding this 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
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>
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>
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>
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>
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>
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>

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