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

[14.0][MIG] base_location: Migration to 14.0 #1003

Merged
merged 40 commits into from
Nov 30, 2020

Commits on Oct 18, 2020

  1. [MV] rename better_zip to base_location

    nbessi authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    89ac818 View commit details
    Browse the repository at this point in the history
  2. base_location: [IMP] Spanish translation and translation template.

    Pedro M. Baeza authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    1c764a8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    10d0c49 View commit details
    Browse the repository at this point in the history
  4. [FIX] base_location: Changed partner view to avoid extrange behaviour…

    … when company country is filled.
    Pedro M. Baeza authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    d514dd8 View commit details
    Browse the repository at this point in the history
  5. [FIX] Add context propagation to base_location

    Sandy Carter authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    4bf8c6b View commit details
    Browse the repository at this point in the history
  6. [Add] Add italian translation, change field class to edit-only for be…

    …tter-zip field
    Franco Tampieri authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    077e61a View commit details
    Browse the repository at this point in the history
  7. base_location: Don't position zip_id after street2, to avoid layout i…

    …ssues with module partner_address_street3
    Alexis de Lattre authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    ebb0d5d View commit details
    Browse the repository at this point in the history
  8. Danish translation

    hhgabelgaard authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    cf2c2e9 View commit details
    Browse the repository at this point in the history
  9. [IMP] base_location: Updated to v8 syntax and uses. Added filters in …

    …some views. Added two columns in respective tree views.
    Alejandro Santana authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    46427a4 View commit details
    Browse the repository at this point in the history
  10. [IMP] base_location_geonames_import: Several improvements and added h…

    …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.
    pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    8cd4925 View commit details
    Browse the repository at this point in the history
  11. Add demo data

    Brussels Belgium city
    Sandy Carter authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    73adbd0 View commit details
    Browse the repository at this point in the history
  12. IMP Create new computed stored field 'display_name' that use zip, cit…

    …y, state and country in order to allow search using '%' from the m2o widget
    jjscarafia authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    12e14a0 View commit details
    Browse the repository at this point in the history
  13. Translated to Danish

    hhgabelgaard authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    b56c8c3 View commit details
    Browse the repository at this point in the history
  14. [MIG] base_location: Migration to 9.0

    yvaucher authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    2562d80 View commit details
    Browse the repository at this point in the history
  15. [MIG] base_location: Migrated to 10.0

    * Headers shortened
    * Move cities management to settings
    OpenCode authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    626eedd View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c251817 View commit details
    Browse the repository at this point in the history
  17. [10.0][IMP] base_location(geonames): Add Lat/Long (OCA#405)

    * [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
    lasley authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    676590f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a8b45de View commit details
    Browse the repository at this point in the history
  19. [MIG] base_location

    etobella authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    e72a32b View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    6a531aa View commit details
    Browse the repository at this point in the history
  21. [IMP] base_location: Include onchange for state

    Incredibly not included in Odoo core.
    pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    2539b2f View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    58c93fb View commit details
    Browse the repository at this point in the history
  23. Translated using Weblate (Spanish)

    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/
    etobella authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    57b5fd8 View commit details
    Browse the repository at this point in the history
  24. Translated using Weblate (German)

    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/
    rschnapka authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    2e9c125 View commit details
    Browse the repository at this point in the history
  25. [MIG] base_location: Migration to 12.0

    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.
    aitorbouzas authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    67baf91 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    8b29cac View commit details
    Browse the repository at this point in the history
  27. FIX base_location blocking editing company address.

    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.
    eLBati authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    e3cec66 View commit details
    Browse the repository at this point in the history
  28. Translated using Weblate (Spanish)

    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/
    josepmy authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    99aa1f1 View commit details
    Browse the repository at this point in the history
  29. [FIX+MIG] base_location: 3 things:

    * Don't need cities for migrating
    
      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.
    
    * Cover case of res_better_zip w/o country_id
    
    * Avoid error on null zip numbers
    pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    6b0bcc0 View commit details
    Browse the repository at this point in the history
  30. [MIG] base_location: Migration to 13.0

    * Standard procedure
    * Change v13 specifics
    * Adapt tests + correct some practices
    pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    1da1248 View commit details
    Browse the repository at this point in the history
  31. pre-commit, black, isort

    OCA-git-bot authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    e07efcd View commit details
    Browse the repository at this point in the history
  32. [FIX] base_location: Don't apply domain when cities are not enforced

    And also reset city_id for avoiding incoherent information in that case.
    
    Fixes OCA#762
    pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    96b98f2 View commit details
    Browse the repository at this point in the history
  33. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (33 of 33 strings)
    
    Translation: partner-contact-13.0/partner-contact-13.0-base_location
    Translate-URL: https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-base_location/pt_BR/
    mileo authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    32462b2 View commit details
    Browse the repository at this point in the history
  34. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: partner-contact-13.0/partner-contact-13.0-base_location
    Translate-URL: https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-base_location/
    oca-transbot authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    67d932d View commit details
    Browse the repository at this point in the history
  35. Translated using Weblate (Dutch)

    Currently translated at 93.9% (31 of 33 strings)
    
    Translation: partner-contact-13.0/partner-contact-13.0-base_location
    Translate-URL: https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-base_location/nl/
    Oocademy authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    873d79e View commit details
    Browse the repository at this point in the history
  36. [FIX+IMP] base_location: Re-import process

    * Performance was very poor due to several reasons:
    
      * City name translatable.
      * Lack on indexes when deleting obsolete records.
      * Some prefetching.
    * City was not being searched also by state, having the chance of returning
      incorrect matches if same city name on different states.
    * Previous code was removing all previous records of zip entries!
    * Remove possible obsolete FK keys after migrating from v11.
    pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    4436251 View commit details
    Browse the repository at this point in the history
  37. Translated using Weblate (Portuguese (Brazil))

    Currently translated at 100.0% (34 of 34 strings)
    
    Translation: partner-contact-13.0/partner-contact-13.0-base_location
    Translate-URL: https://translation.odoo-community.org/projects/partner-contact-13-0/partner-contact-13-0-base_location/pt_BR/
    Rodrigo Macedo authored and pedrobaeza committed Oct 18, 2020
    Configuration menu
    Copy the full SHA
    a1e37ec View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    97ef1fb View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2020

  1. Configuration menu
    Copy the full SHA
    1fc0d8b View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2020

  1. [IMP] base_location: Switch to computed writable fields

    * Adapt code to this style
    * Adapt tests and use Form for mimicking UI behavior
    pedrobaeza committed Nov 28, 2020
    Configuration menu
    Copy the full SHA
    4a71fae View commit details
    Browse the repository at this point in the history