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] l10n_eu_product_adr: Migration to 18.0 #208

Open
wants to merge 22 commits into
base: 18.0
Choose a base branch
from

Conversation

chaule97
Copy link

@chaule97 chaule97 commented Oct 9, 2024

  • I removed the test case test_06_product_variant_migration because there is no more pre-migration in Odoo 16+.
  • I need to update the _compute_display_name method in AdrClass and AdrGoods because the name_search method in Odoo 18 has changed and use display_name value to return result.

@@ -19,24 +19,18 @@
name="adr"
string="Dangerous Goods"
groups="l10n_eu_product_adr.group_adr_goods_user"
attrs="{'invisible': ['|', ('type', '!=', 'product'), '&', ('is_dangerous', '=', False), ('adr_goods_on_variants', '=', False)]}"
invisible="not (is_storable and (is_dangerous or adr_goods_on_variants))"
Copy link
Member

Choose a reason for hiding this comment

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

are we sure this is the same ?
I would have written this not is_storable or (is_dangerous and adr_goods_on_variants)

Copy link
Author

Choose a reason for hiding this comment

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

no, it will be: not is_storable or (not is_dangerous and not adr_goods_on_variants)

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 change it looks better IMO

@chaule97 chaule97 force-pushed the 18.0-mig-l10n_eu_product_adr branch 2 times, most recently from 94b6550 to 8a6ce61 Compare October 18, 2024 09:14
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.

Testing on runboat I have an issue when activating the Is Dangerous flag on a product...the Dangerous Goods tab is empty.

@chaule97
Copy link
Author

Testing on runboat I have an issue when activating the Is Dangerous flag on a product...the Dangerous Goods tab is empty.

Hi @TDu ,I have checked the differences between PR 16.0 and branch 14.0. The PR 16.0 had incorrect group permissions. I have updated. thank you

@chaule97 chaule97 requested a review from TDu October 21, 2024 04:23
@chaule97 chaule97 changed the title [18.0][MIG] l10n_eu_product_adr [18.0][MIG] l10n_eu_product_adr: Migration to 18.0 Oct 21, 2024
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.

9 participants