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

[9.0] [MIG] base_location_geonames_import #253

Merged
merged 4 commits into from
Apr 28, 2016

Conversation

pedrobaeza
Copy link
Member

  • Make module installable
  • Short headers
  • Update README.rst
  • Improve test efficiency

@bealdav
Copy link
Member

bealdav commented Mar 12, 2016

FYI, yml will be deprecated

https://www.odoo.com/fr_FR/groups/community-59/community-14056914

@pedrobaeza
Copy link
Member Author

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
Copy link
Sponsor Contributor

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'?

Copy link
Member Author

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

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

Copy link
Member Author

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

@lmignon
Copy link
Sponsor Contributor

lmignon commented Mar 12, 2016

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
@pedrobaeza
Copy link
Member Author

@bealdav, with the advices from @alexis-via in #254, I have converted tests to Python, and improve a bit more the efficiency.

@simahawk
Copy link
Contributor

👍

@pedrobaeza
Copy link
Member Author

We can merge this one.

@pedrobaeza pedrobaeza merged commit e11e310 into OCA:9.0 Apr 28, 2016
@pedrobaeza pedrobaeza deleted the 9.0-base_location_geonames_import branch April 28, 2016 11:40
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.

None yet

4 participants