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

[17.0] [MIG] partner_industry_secondary #1679

Closed

Conversation

mmrondon
Copy link

No description provided.

MiquelRForgeFlow and others added 26 commits February 28, 2024 15:55
Currently translated at 83.3% (15 of 18 strings)

Translation: partner-contact-12.0/partner-contact-12.0-partner_industry_secondary
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-partner_industry_secondary/hr/
Currently translated at 88.9% (16 of 18 strings)

Translation: partner-contact-12.0/partner-contact-12.0-partner_industry_secondary
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-12-0/partner-contact-12-0-partner_industry_secondary/es/
Currently translated at 100.0% (17 of 17 strings)

Translation: partner-contact-15.0/partner-contact-15.0-partner_industry_secondary
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-15-0/partner-contact-15-0-partner_industry_secondary/ca/
Currently translated at 100.0% (17 of 17 strings)

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

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

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

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

Translation: partner-contact-16.0/partner-contact-16.0-partner_industry_secondary
Translate-URL: https://translation.odoo-community.org/projects/partner-contact-16-0/partner-contact-16-0-partner_industry_secondary/it/
@mmrondon mmrondon changed the title 17.0 mig partner industry secondary [17.0] [MIG] partner_industry_secondary Feb 28, 2024
DucTruongKomit

This comment was marked as resolved.

Copy link

@DucTruongKomit DucTruongKomit left a comment

Choose a reason for hiding this comment

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

LGTM! All gud!

@HaraldPanten
Copy link
Contributor

@mmrondon You have too many commits for this migration. Don't you?

Could you clean the commits and leave only what we need for the migration?

THX.

[IMP] Fix pre-commit and unit tests

[IMP] partner_industry_secondary: black, isort, prettier

[IMP] partner_industry_secondary: Update unit tests

[IMP] partner_industry_secondary: black, isort, prettier
@mmrondon mmrondon force-pushed the 17.0-mig-partner_industry_secondary branch from 0a85af5 to 39a6423 Compare May 15, 2024 19:17
Copy link

@Tisho99 Tisho99 left a comment

Choose a reason for hiding this comment

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

Hi @mmrondon

I have made a functional and code review and this migration looks good.

However, i found that you haven't applied some steps of the migration guide

Can you review and apply my suggestions in your last commit?

Then this will be ready for merge

Thank you!

Comment on lines +13 to +45
<div class="row mt16 o_settings_container">
<div class="col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="group_use_partner_industry_for_person" />
</div>
<div
class="o_setting_right_pane"
id="partner_industry_secondary_show_form_settings"
>
<label
string="Enable industries for individuals"
for="group_use_partner_industry_for_person"
/>
<div class="text-muted">
Enable industries for individuals
</div>
<div class="content-group">
<div
class="mt16"
invisible="group_use_partner_industry_for_person == False"
>
<button
name="%(base.res_partner_industry_action)d"
icon="fa-arrow-right"
type="action"
string="Industries"
class="btn-link"
/>
</div>
</div>
</div>
</div>
</div>
Copy link

Choose a reason for hiding this comment

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

Suggested change
<div class="row mt16 o_settings_container">
<div class="col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="group_use_partner_industry_for_person" />
</div>
<div
class="o_setting_right_pane"
id="partner_industry_secondary_show_form_settings"
>
<label
string="Enable industries for individuals"
for="group_use_partner_industry_for_person"
/>
<div class="text-muted">
Enable industries for individuals
</div>
<div class="content-group">
<div
class="mt16"
invisible="group_use_partner_industry_for_person == False"
>
<button
name="%(base.res_partner_industry_action)d"
icon="fa-arrow-right"
type="action"
string="Industries"
class="btn-link"
/>
</div>
</div>
</div>
</div>
</div>
<block>
<setting string="Enable industries for individuals" help="Enable industries for individuals">
<field name="group_use_partner_industry_for_person" />
</setting>
</block>

name="industry_id"
invisible="is_company == False and show_partner_industry_for_person == False"
/>
<field name="show_partner_industry_for_person" invisible="1" />
Copy link

Choose a reason for hiding this comment

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

Suggested change
<field name="show_partner_industry_for_person" invisible="1" />
<field name="show_partner_industry_for_person" column_invisible="1" />

@HaraldPanten
Copy link
Contributor

Superseded by #1761

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.