-
-
Notifications
You must be signed in to change notification settings - Fork 822
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
[9.0] [MIG] base_location_geonames_import #253
[9.0] [MIG] base_location_geonames_import #253
Conversation
pedrobaeza
commented
Mar 12, 2016
- Make module installable
- Short headers
- Update README.rst
- Improve test efficiency
FYI, yml will be deprecated https://www.odoo.com/fr_FR/groups/community-59/community-14056914 |
Thanks for the info, and I prefer Python files, but for this module, I take the easy path of only update existing YAML file. As in v9 is still supported, I prefer to let as is. |
|
||
from openerp import models, fields, api, _ | ||
from openerp.exceptions import Warning | ||
from openerp.exceptions import Warning as UserError |
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.
Why do you have aliased 'Warning'?
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 is a guideline because Warning is deprecated
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 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'm seeing that in v9 I should import directly UserError
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.
@lmignon, changed to use directly UserError
Thank you @pedrobaeza the code looks good to me. 👍 once Travis is green. |
… imported country Monaco country is very little and it allows to save some downloaded bytes plus making a test for entries deletion
@bealdav, with the advices from @alexis-via in #254, I have converted tests to Python, and improve a bit more the efficiency. |
👍 |
We can merge this one. |