-
-
Notifications
You must be signed in to change notification settings - Fork 868
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
Conversation
/ocabot migration base_location |
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.
LG
/ocabot merge nobump |
Hey, thanks for contributing! Proceeding to merge this for you. |
@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. |
This PR has the |
@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. |
@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 |
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.
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> |
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.
<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> |
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.
<field name="view_mode">tree,form</field> | |
<field name="view_mode">list,form</field> |
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 see this
when testing #1868 on runboat.
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.
Hi @TDu, thank for your time!!
23361db
to
5e1f1ee
Compare
… when company country is filled.
…ssues with module partner_address_street3
…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.
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
5e1f1ee
to
d964b09
Compare
@@ -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._( |
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.
AFAIK, there's no need to change this expression. Is there any reason to change it?
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.
not strictly required but it offers a minor performance improvement, see odoo/odoo#174844
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.
Thanks for the pointer. Adding this to the migration guide.
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.
/ocabot merge nobump
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 0196e10. Thanks a lot for contributing to OCA. ❤️ |
No description provided.