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] product_sale_manufactured_for: Migration to 18.0 #1801

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

Conversation

LucasTran380381
Copy link

@LucasTran380381 LucasTran380381 commented Dec 5, 2024

Carlos Serra-Toro and others added 11 commits December 3, 2024 12:11
The functionality that was before embedded into the module
shopinvader_customer_special_product has been extracted into
its own new module.

Jira Card: BSCOS-2089
Before this change, customers that were archived couldn't be deleted from manufactured for partners.
Currently translated at 100.0% (5 of 5 strings)

Translation: product-attribute-14.0/product-attribute-14.0-product_sale_manufactured_for
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_sale_manufactured_for/it/
Currently translated at 100.0% (5 of 5 strings)

Translation: product-attribute-14.0/product-attribute-14.0-product_sale_manufactured_for
Translate-URL: https://translation.odoo-community.org/projects/product-attribute-14-0/product-attribute-14-0-product_sale_manufactured_for/es/
@rousseldenis
Copy link
Contributor

/ocabot migration product_sale_manufactured_for

Copy link
Contributor

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

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

LGTM

>
<!-- The domain is string, so we copy all of it, and add the new condition. -->
<attribute name="domain">
[('sale_ok', '=', True),
Copy link
Contributor

Choose a reason for hiding this comment

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

IMHO, this is the weakness of the implementation as it could break inheritance

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a second field like 'product_manufactured_for_id` that will change product_id ?

Copy link
Author

Choose a reason for hiding this comment

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

did you recommend some change improve this

Copy link
Contributor

Choose a reason for hiding this comment

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

Nope, because there is no alternative for now.

But, careful, base domain has changed in v18. There is no more company criteria.

See https://github.com/odoo/odoo/blob/18.0/addons/sale/views/sale_order_views.xml#L419

Copy link
Author

Choose a reason for hiding this comment

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

So now we still accept this implementation

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.

6 participants