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] patch tables for setup_models() #405

Merged
merged 3 commits into from
Nov 30, 2015

Conversation

coleste
Copy link

@coleste coleste commented Nov 25, 2015

Odoo does not boot unless some tables are manually updated on the migrated database. As discussed in #404 .

@pedrobaeza
Copy link
Member

Seems OK and can be run multiple times without breaking, so 👍

@hbrunn
Copy link
Member

hbrunn commented Nov 25, 2015

isn't this too late? Why not in registry.__init__? This way, it's run at https://github.com/OCA/OpenUpgrade/blob/8.0/openerp/modules/loading.py#L133

@coleste
Copy link
Author

coleste commented Nov 25, 2015

It crashes on cr.execute('select model, transient from ir_model where state=%s', ('manual',)), 3 lines below. But yes, it could be moved right after the has_unaccent bit. Should I? Done.

@hbrunn is this better?

@mmalorni
Copy link

👍

@@ -65,6 +65,9 @@ def __init__(self, db_name):
if openerp.tools.config['unaccent'] and not has_unaccent:
_logger.warning("The option --unaccent was given but no unaccent() function was found in database.")
self.has_unaccent = openerp.tools.config['unaccent'] and has_unaccent

# ir_model must be in 9.0 format before continuing
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a marker #OpenUpgrade to this change?

@StefanRijnhart
Copy link
Member

Thanks, looks good! Just a request to isolate the code into the OpenUpgrade corner as much as possible.

@StefanRijnhart
Copy link
Member

Thanks for the update. Next time, please write a comment that you followed up the comments, so that the reviewers get notified by email.
👍

StefanRijnhart added a commit that referenced this pull request Nov 30, 2015
[FIX] patch tables for setup_models()
@StefanRijnhart StefanRijnhart merged commit b26a525 into OCA:9.0 Nov 30, 2015
@StefanRijnhart
Copy link
Member

Fixed trivial flake8 issue in direct commit cbced54

@coleste
Copy link
Author

coleste commented Nov 30, 2015

I will, and thanks for the whitespace!

@coleste
Copy link
Author

coleste commented Dec 1, 2015

@StefanRijnhart , I missed something and had to resubmit as #410
I missed the commit()

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