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

[FIX] restore_registry in Odoo 16 #22

Merged
merged 2 commits into from
Feb 8, 2023

Conversation

StefanRijnhart
Copy link
Member

@StefanRijnhart StefanRijnhart commented Dec 2, 2022

See odoo/odoo@cd12293

This new attribute is the source of truth for the base classes, and in setup_models (called further down in the modified code in this PR), the model's base classes are reset from it: https://github.com/odoo/odoo/blob/e1f06479a526c703ccabc441b1e194646206b966/odoo/models.py#L2728-L2730.

The test failure fixed by this PR can be inspected in https://app.travis-ci.com/github/OCA/odoo-test-helper/builds/258453331

@StefanRijnhart StefanRijnhart marked this pull request as ready for review December 3, 2022 12:35
Copy link
Sponsor Contributor

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

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

Code review

@rousseldenis
Copy link
Sponsor Contributor

I can confirm this solves problems like OCA/stock-logistics-barcode#450

@rousseldenis
Copy link
Sponsor Contributor

@OCA/core-maintainers

@rousseldenis
Copy link
Sponsor Contributor

@sebastienbeau

@simahawk simahawk merged commit b6ba42f into OCA:master Feb 8, 2023
@simahawk
Copy link
Contributor

simahawk commented Feb 8, 2023

Sorry to be late to the party. I'm sick and missed this change 😓
Released dc05cb7
Should be avail soon on pypi.

@StefanRijnhart
Copy link
Member Author

@simahawk take care!

@rousseldenis
Copy link
Sponsor Contributor

@StefanRijnhart Could you check this as it seems to fail now: https://github.com/OCA/stock-logistics-workflow/actions/runs/4132016101/jobs/7140224436#step:8:244

@rousseldenis
Copy link
Sponsor Contributor

It seems that this line is causing trouble:

image

I'm wondering how if an attribute exists in a model, the following line that tries to delete it fails on retrieving it...

@sebastienbeau @simahawk

@StefanRijnhart
Copy link
Member Author

Thanks for noting, I'll have a look.

@StefanRijnhart
Copy link
Member Author

@rousseldenis #24 should fix it, I think.

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.

5 participants