-
-
Notifications
You must be signed in to change notification settings - Fork 675
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
[MIG] hr_employee_firstname: Migrated to 10.0 #276
[MIG] hr_employee_firstname: Migrated to 10.0 #276
Conversation
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.
There is a superflous indentation level in the xml file left after the removal of the <data>
tag, but ok for me.
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.
- Module code look good
- Module install correctly on 10 database and do the job.
super(HrEmployee, self)._auto_init(cr, context=context) | ||
self._update_employee_names(cr, SUPERUSER_ID, context=context) | ||
@api.model_cr_context | ||
def _auto_init(self): |
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.
This should be done in a post_init_hook
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.
I totally agree.
I didn't move this functionality into a post_init_hook because in the previous versions of this module _auto_init is still used. As this is just a PR for migration I thought better to keep the continuity with the previous versions. I think that changing this should be rather done in a separate pool request.
What's your opinion about this?
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.
I think this should be done right here. Migration means sometimes a refactorization, and something that is not correct at all (this is not multi-DB aware) should be cut from the beginning.
@@ -1,23 +1 @@ | |||
# -*- coding: utf-8 -*- |
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.
Don't remove encoding
@@ -4,7 +4,7 @@ | |||
# |
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.
Remove this file, as it's not needed and confuses when outdated.
@@ -1 +1,22 @@ | |||
# -*- coding: utf-8 -*- | |||
############################################################################## |
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.
@pedrobaeza is there a way to commit on the same merge request ? or @espo-tony should accept me in espo-tony:10_porting_hr_employee_firstname ? |
You can do a PR against the branch of this PR in @espo-tony's repo, when he merges it this PR will automatically update |
@pedrobaeza |
Yeah, runbot is failing due to the change in the infrastructure to Docker. It seems there's still something to fine-tune, @moylop260 and @gurneyalex... |
No idea... I just triggered a rebuild to see |
It's also happening on l10n-spain: runbot.odoo-community.org/runbot/build/3274108 |
could be related to OCA/runbot-addons#111 |
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.
One dependencie change & a question about the version
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
from openerp import SUPERUSER_ID | ||
from openerp.api import Environment |
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.
s/openerp/odoo/
<attribute name="invisible">1</attribute> | ||
<attribute name="no_label">1</attribute> | ||
<attribute name="required">0</attribute> | ||
</xpath> |
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.
IMHO I find this way to do to be more readable . Just a question, is there any reason to have taken V8 of the module instead of the V9 ?
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.
It's better to not make replace for avoiding losing other attributes (for example, a custom context), so I prefer this one.
replace imports s/openerp/odoo
@pedrobaeza Post init_hook have been updated. Is it possible to have a review? Thank you. |
Please shorten headers as stated and I'll merge. |
@leemannd Thank you very much for your contribution. |
[BSSFL-385] Fix routes config
No description provided.