Skip to content

[17.0][MIG] sale_variant_configurator: Migration to 17.0 #381

Open
BhaveshHeliconia wants to merge 25 commits into
OCA:17.0from
HeliconiaIO:17.0-mig-sale_variant_configurator
Open

[17.0][MIG] sale_variant_configurator: Migration to 17.0 #381
BhaveshHeliconia wants to merge 25 commits into
OCA:17.0from
HeliconiaIO:17.0-mig-sale_variant_configurator

Conversation

@BhaveshHeliconia

Copy link
Copy Markdown
Contributor

No description provided.

@victoralmau

Copy link
Copy Markdown
Member

Please, cherry-pick #395 to commit history (before migration)

@BhaveshHeliconia BhaveshHeliconia force-pushed the 17.0-mig-sale_variant_configurator branch from cec0d65 to 4a140b5 Compare February 25, 2025 10:36
@BhaveshHeliconia

Copy link
Copy Markdown
Contributor Author

@victoralmau, Please Review!

@victoralmau

Copy link
Copy Markdown
Member

Please, cherry-pick #398 to commit history (before migration)

@BhaveshHeliconia BhaveshHeliconia force-pushed the 17.0-mig-sale_variant_configurator branch 2 times, most recently from 76e28be to 7b59806 Compare February 28, 2025 05:48
@BhaveshHeliconia

Copy link
Copy Markdown
Contributor Author

@victoralmau, Please Review.It's done.

Comment thread sale_variant_configurator/tests/test_sale_order.py Outdated
Comment thread sale_variant_configurator/tests/test_sale_order.py Outdated
Comment thread sale_variant_configurator/views/sale_view.xml Outdated
Comment thread sale_variant_configurator/views/sale_view.xml Outdated
Comment thread sale_variant_configurator/views/sale_view.xml Outdated
@BhaveshHeliconia BhaveshHeliconia force-pushed the 17.0-mig-sale_variant_configurator branch from 7b59806 to 2b424d1 Compare March 3, 2025 07:23
@BhaveshHeliconia

Copy link
Copy Markdown
Contributor Author

@victoralmau, Please Review all changes.it's done.

@victoralmau victoralmau left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Checking functionally I see that it does not work, can you check it?
ejemplo

@BhaveshHeliconia BhaveshHeliconia force-pushed the 17.0-mig-sale_variant_configurator branch from 2b424d1 to 406f6fb Compare March 17, 2025 11:13
@BhaveshHeliconia

Copy link
Copy Markdown
Contributor Author

@victoralmau, Please Review.it's Fixed.

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration sale_variant_configurator

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Mar 17, 2025

@pedrobaeza pedrobaeza left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You are destroying the previous README contents. You should transfer description, contributors, etc to the new fragment system.

@BhaveshHeliconia

Copy link
Copy Markdown
Contributor Author

@pedrobaeza,

https://github.com/OCA/product-variant/tree/16.0/sale_variant_configurator
In the previous version, the README folder was not available. If not needed, we can remove it.Waiting for your response.Thank you!

@pedrobaeza

Copy link
Copy Markdown
Member

As said, you have to transfer the contents of the previous README.rst to each fragment of the README folder.

@BhaveshHeliconia BhaveshHeliconia force-pushed the 17.0-mig-sale_variant_configurator branch from 406f6fb to 2fc2cdb Compare March 19, 2025 07:39
@BhaveshHeliconia

Copy link
Copy Markdown
Contributor Author

@pedrobaeza, Please review the updated README folder.

Comment thread sale_variant_configurator/tests/test_sale_order.py Outdated
@BhaveshHeliconia BhaveshHeliconia force-pushed the 17.0-mig-sale_variant_configurator branch from 2fc2cdb to 14fc5f4 Compare March 19, 2025 10:04
@github-actions github-actions Bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 8, 2026
pedrobaeza and others added 24 commits February 9, 2026 13:23
This comes from module sale_product_variants from odoomrp/odoomrp-wip.
- saleable products for Sale Orders.
- purchable products for Purchase Orders.
Depending on the onchange order loaded in runtime, description put in the SO line
might be the one got from the regular way. With this, we assure we get the proper
description, and also in the partner language (using the trick with the partner field).
* Use generic method for creating the variant if needed
* Create the variant when the sales is already confirmed
for some reason, after the creation of the product, the sale.order.line
was emptied (e.g. product_tmpl_id was False) -> the onchange would do nothing.

I split the test in two, and in the second test, I create the product before
creating the sale order line.
…omer language

As the model `sale.order.line` doesn't have `partner_id` field, the
description is not populated in the customer language, as the automatism
put in product_configurator makes use of this trick.

For not adding such field that can conflict with other parts, let's
overwrite the methods that populate the description and pass upstream
the customer language in the context.

TT33029
Currently translated at 100.0% (8 of 8 strings)

Translation: product-variant-16.0/product-variant-16.0-sale_variant_configurator
Translate-URL: https://translation.odoo-community.org/projects/product-variant-16-0/product-variant-16-0-sale_variant_configurator/pt_BR/
Steps to reproduce the error:
- Go to Sales > Configuration and activate 'Units of Measure'.
- Go to a quotation and add a line indicating a Product Template with several attributes (Conference Chair for example).
- You must be able to select a unit of measure + the unit of measure is set automatically.

Other versions (v13 for example) use another technique https://github.com/OCA/product-variant/blob/2922137d2de670010200fa0cb7cdf1469bffafbe/sale_variant_configurator/models/sale_order.py#L69

TT55223
@BhaveshHeliconia BhaveshHeliconia force-pushed the 17.0-mig-sale_variant_configurator branch from 75ba32a to cec4892 Compare February 9, 2026 07:53
@github-actions github-actions Bot removed the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 15, 2026
@BhaveshHeliconia BhaveshHeliconia force-pushed the 17.0-mig-sale_variant_configurator branch from cec4892 to 9fbaf39 Compare March 11, 2026 10:25
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.