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

[18.0][MIG] base_location: Migration to 18.0 #1867

Merged
merged 84 commits into from
Oct 31, 2024

Conversation

Kimkhoi3010
Copy link

No description provided.

@simahawk
Copy link
Contributor

/ocabot migration base_location

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone Oct 24, 2024
Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

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

LG

@simahawk
Copy link
Contributor

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 18.0-ocabot-merge-pr-1867-by-simahawk-bump-nobump, awaiting test results.

OCA-git-bot added a commit that referenced this pull request Oct 24, 2024
Signed-off-by simahawk
@OCA-git-bot
Copy link
Contributor

@simahawk your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-1867-by-simahawk-bump-nobump.

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.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot
Copy link
Contributor

@simahawk your merge command was aborted due to failed check(s), which you can inspect on this commit of 18.0-ocabot-merge-pr-1867-by-simahawk-bump-nobump.

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.

@TDu
Copy link
Member

TDu commented Oct 28, 2024

@Kimkhoi3010 could you rebase this PR and check the pre-commit something probably has changed and the merging failed https://github.com/OCA/partner-contact/actions/runs/11502758305/job/32018465824
Thank you

Copy link
Member

@TDu TDu left a comment

Choose a reason for hiding this comment

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

Some changes needed on the view types !

<record id="action_zip_tree" model="ir.actions.act_window">
<field name="name">Locations</field>
<field name="res_model">res.city.zip</field>
<field name="view_mode">tree,form</field>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>

<field name="name">Cities</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.city</field>
<field name="view_mode">tree,form</field>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>

Copy link
Member

Choose a reason for hiding this comment

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

I see this
image
when testing #1868 on runboat.

Copy link
Author

Choose a reason for hiding this comment

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

Hi @TDu, thank for your time!!

@Kimkhoi3010 Kimkhoi3010 force-pushed the 18.0-mig-base_location branch 2 times, most recently from 23361db to 5e1f1ee Compare October 29, 2024 03:08
nbessi and others added 10 commits October 29, 2024 10:11
…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.
victor-champonnois and others added 19 commits October 29, 2024 10:11
Currently translated at 100.0% (35 of 35 strings)

Translation: partner-contact-16.0/partner-contact-16.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-base_location/fr/
Currently translated at 68.5% (24 of 35 strings)

Translation: partner-contact-16.0/partner-contact-16.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-base_location/hr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: partner-contact-16.0/partner-contact-16.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-base_location/
Currently translated at 100.0% (35 of 35 strings)

Translation: partner-contact-16.0/partner-contact-16.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-base_location/pt_BR/
Currently translated at 100.0% (35 of 35 strings)

Translation: partner-contact-16.0/partner-contact-16.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-base_location/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: partner-contact-17.0/partner-contact-17.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-base_location/
Currently translated at 100.0% (35 of 35 strings)

Translation: partner-contact-17.0/partner-contact-17.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-base_location/sv/
Currently translated at 100.0% (35 of 35 strings)

Translation: partner-contact-17.0/partner-contact-17.0-base_location
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-17-0/partner-contact-17-0-base_location/ca/
… the zip_id field to _address_fields()

TT33047
@Kimkhoi3010 Kimkhoi3010 force-pushed the 18.0-mig-base_location branch from 5e1f1ee to d964b09 Compare October 29, 2024 03:12
@Kimkhoi3010 Kimkhoi3010 requested a review from TDu October 29, 2024 03:24
@@ -106,35 +106,35 @@ def _check_zip(self):
error_dict = {"partner": rec.name, "location": rec.zip_id.name}
if rec.zip_id.city_id.country_id != rec.country_id:
raise ValidationError(
_(
self.env._(
Copy link
Member

Choose a reason for hiding this comment

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

AFAIK, there's no need to change this expression. Is there any reason to change it?

Choose a reason for hiding this comment

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

not strictly required but it offers a minor performance improvement, see odoo/odoo#174844

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the pointer. Adding this to the migration guide.

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 18.0-ocabot-merge-pr-1867-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit cb326b1 into OCA:18.0 Oct 31, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

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.