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

[13.0][MIG] base_location: Migration to 13.0 #785

Merged
merged 32 commits into from
Oct 4, 2019

Conversation

pedrobaeza
Copy link
Member

cc @Tecnativa TT19707

nbessi and others added 14 commits September 30, 2019 11:50
…some views. Added two columns in respective tree views.
…ooks

* Added Icon.
* Improve module description and extracted to README.rst.
* Pass country instead of country_id for advance comparisons.
* Allow to transform city name.
* Some code style.
* Do not remove all entries of a country, but only not found.
* Include hooks for transforming some things.
* Include spanish translation.
Brussels Belgium city
…y, state and country in order to allow search using '%' from the m2o widget
@pedrobaeza pedrobaeza added this to the 13.0 milestone Sep 30, 2019
OpenCode and others added 15 commits September 30, 2019 16:10
* Headers shortened
* Move cities management to settings
* [IMP] base_location: Add lat & long to `better.zip`
* Add latitude and longitude columns to `better.zip`

* [IMP] base_location_geonames_import: Add lat/long
* Add support for latitude & longitude to genomes importer
Incredibly not included in Odoo core.
Currently translated at 66.7% (24 of 36 strings)

Translation: partner-contact-11.0/partner-contact-11.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-11-0/partner-contact-11-0-base_location/es/
Currently translated at 100,0% (36 of 36 strings)

Translation: partner-contact-11.0/partner-contact-11.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-11-0/partner-contact-11-0-base_location/de/
This module has now been refactored to be more consistent with what base_address_city offers to the location management.
Added dependency to contacts so that I could change the menu location for cities / zip management.

Now, every res.city record has a relation One2many to res.city.zip (old res.better.zip). This way, every zip has a realted city too.
Zips can be searched through city code, zip or city name (same as before).

Modified tests and deleted not needed tests.

Added sql contraints so that zips and cities are unique within it's country / state / city.
Steps:

 - Open company form
 - Set 'city completion' field

Get 'The state of the partner My Company differs from that in location X'

Disabling _check_zip while writing 'zip' fields from company, as incompatible with the sequence of write operations.

Automatic test is added too.
Currently translated at 57.6% (19 of 33 strings)

Translation: partner-contact-12.0/partner-contact-12.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-base_location/es/
Previous script required to have cities populated for working, but that's not
usual thing, as people in v11 may choose to not import them, and for older databases
they even weren't that option.

With this improve script, now we populate city table for ZIP entries without city,
so the rest of the queries are properly executed in any case.
@pedrobaeza
Copy link
Member Author

/ocabot merge

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 13.0-ocabot-merge-pr-785-by-pedrobaeza-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 1, 2019
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza your merge command was aborted due to failed check(s), which you can inspect on this commit of 13.0-ocabot-merge-pr-785-by-pedrobaeza-bump-no.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

@pedrobaeza
Copy link
Member Author

/ocabot merge

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 13.0-ocabot-merge-pr-785-by-pedrobaeza-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 3, 2019
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza The merge process could not be finalized, because command setuptools-odoo-make-default --addons-dir . --metapackage oca-partner-contact --clean --commit failed with output:

Traceback (most recent call last):
  File "/usr/local/bin/setuptools-odoo-make-default", line 11, in <module>
    sys.exit(main())
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/make_default_setup.py", line 391, in main
    args.addons_dir, args.force, args.odoo_version_override)
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/make_default_setup.py", line 152, in make_default_setup_addons_dir
    odoo_version_override)
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/make_default_setup.py", line 102, in make_default_setup_addon
    git_post_version=False)
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/core.py", line 116, in _get_version
    (odoo_version, addon_dir))
distutils.errors.DistutilsSetupError: Unsupported odoo version '13.0' in ./partner_fax

@pedrobaeza
Copy link
Member Author

@moylop260 why 13.0 is not admitted in pylint-odoo yet? I thought OCA/pylint-odoo#249 was for that.

@moylop260
Copy link

pylint is supporting 13.0

The lint travis build is green
https://travis-ci.org/OCA/partner-contact/jobs/591521616

I think it is another tool

@pedrobaeza
Copy link
Member Author

/ocabot merge

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 13.0-ocabot-merge-pr-785-by-pedrobaeza-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 4, 2019
Signed-off-by pedrobaeza
@OCA-git-bot
Copy link
Contributor

@pedrobaeza The merge process could not be finalized, because command setuptools-odoo-make-default --addons-dir . --metapackage oca-partner-contact --clean --commit failed with output:

Traceback (most recent call last):
  File "/usr/local/bin/setuptools-odoo-make-default", line 11, in <module>
    sys.exit(main())
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/make_default_setup.py", line 391, in main
    args.addons_dir, args.force, args.odoo_version_override)
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/make_default_setup.py", line 152, in make_default_setup_addons_dir
    odoo_version_override)
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/make_default_setup.py", line 102, in make_default_setup_addon
    git_post_version=False)
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/core.py", line 116, in _get_version
    (odoo_version, addon_dir))
distutils.errors.DistutilsSetupError: Unsupported odoo version '13.0' in ./partner_fax

@rousseldenis
Copy link
Contributor

@pedrobaeza @sbidoul is looking into this now

@pedrobaeza
Copy link
Member Author

Great, thanks

@sbidoul
Copy link
Member

sbidoul commented Oct 4, 2019

/ocabot merge

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 13.0-ocabot-merge-pr-785-by-sbidoul-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 4, 2019
Signed-off-by sbidoul
@pedrobaeza
Copy link
Member Author

@sbidoul I created https://odoo-community.org/web#id=847934&action=468&active_id=2&model=project.task&view_type=form&menu_id=748 for all the things to do on a new version, so if there's something for the bot, please indicate it there

@sbidoul
Copy link
Member

sbidoul commented Oct 4, 2019

@pedrobaeza thanks for the initiative. Updated.

@OCA-git-bot
Copy link
Contributor

@sbidoul The merge process could not be finalized, because command setuptools-odoo-make-default --addons-dir . --metapackage oca-partner-contact --clean --commit failed with output:

Traceback (most recent call last):
  File "/usr/local/bin/setuptools-odoo-make-default", line 11, in <module>
    sys.exit(main())
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/make_default_setup.py", line 391, in main
    args.addons_dir, args.force, args.odoo_version_override)
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/make_default_setup.py", line 152, in make_default_setup_addons_dir
    odoo_version_override)
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/make_default_setup.py", line 102, in make_default_setup_addon
    git_post_version=False)
  File "/ocamt/lib/python3.6/site-packages/setuptools_odoo/core.py", line 116, in _get_version
    (odoo_version, addon_dir))
distutils.errors.DistutilsSetupError: Unsupported odoo version '13.0' in ./partner_fax

@sbidoul
Copy link
Member

sbidoul commented Oct 4, 2019

/ocabot merge

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 13.0-ocabot-merge-pr-785-by-sbidoul-bump-no, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 4, 2019
Signed-off-by sbidoul
@OCA-git-bot OCA-git-bot merged commit 2fdc70e into OCA:13.0 Oct 4, 2019
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at e29c9a2. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 13.0-base_location branch October 4, 2019 09:50
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 4, 2019
47 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.