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

[16.0][MIG] sale_order_line_description #3523

Open
wants to merge 43 commits into
base: 16.0
Choose a base branch
from

Conversation

tafaRU
Copy link
Member

@tafaRU tafaRU commented Jan 7, 2025

Superseeds #3070

tafaRU and others added 30 commits January 7, 2025 17:08
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-11.0/sale-workflow-11.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-11-0/sale-workflow-11-0-sale_order_line_description/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_order_line_description/
Currently translated at 100.0% (7 of 7 strings)

Translation: sale-workflow-12.0/sale-workflow-12.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-12-0/sale-workflow-12-0-sale_order_line_description/zh_CN/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_line_description/
Currently translated at 100.0% (7 of 7 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_line_description/de/
Yvesldff and others added 12 commits January 7, 2025 17:08
Currently translated at 85.7% (6 of 7 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_line_description/fr/
Currently translated at 60.0% (6 of 10 strings)

Translation: sale-workflow-14.0/sale-workflow-14.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-14-0/sale-workflow-14-0-sale_order_line_description/fr_FR/
Currently translated at 14.2% (1 of 7 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_order_line_description/it/
Currently translated at 100.0% (7 of 7 strings)

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_order_line_description/es/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: sale-workflow-15.0/sale-workflow-15.0-sale_order_line_description
Translate-URL: https://translation.odoo-community.org/projects/sale-workflow-15-0/sale-workflow-15-0-sale_order_line_description/
@rousseldenis
Copy link
Contributor

/ocabot migration sale_order_line_description

@api.onchange("product_id")
def product_id_change(self):
res = super(SaleOrderLine, self).product_id_change()
@api.depends("product_id")
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove the depends as already defined in sale module.

Copy link
Member Author

Choose a reason for hiding this comment

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

done, thanks!

res = super(SaleOrderLine, self).product_id_change()
@api.depends("product_id")
def _compute_name(self):
res = super()._compute_name()
if not self.product_id: # pragma: no cover
Copy link
Contributor

Choose a reason for hiding this comment

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

You should change the function implementation to support multi recordset.

Copy link
Member Author

Choose a reason for hiding this comment

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

done, thanks!

@tafaRU tafaRU force-pushed the 16.0-mig-sale_order_line_description branch from 814f80d to e8abad9 Compare January 8, 2025 10:26
Copy link
Contributor

@Jaimermaccione Jaimermaccione left a comment

Choose a reason for hiding this comment

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

Initially, everything seems to be working correctly. However, as mentioned above, if you add the product using the 'Add Multiple Products' function, it does not work as expected.

@tafaRU
Copy link
Member Author

tafaRU commented Jan 9, 2025

@Jaimermaccione thanks a lot for your review!

Concerning the following:

if you add the product using the 'Add Multiple Products' function, it does not work as expected.
it's due to in runboat in also installed https://github.com/OCA/sale-workflow/tree/16.0/sale_product_multi_add.

I suppose you have the the same behavior in previous versions (i.e 15.0).

I prefer not to add sale_product_multi_add as depends. The ideal solution to get two modules compatible should be to a create a module bridge. I'd now just add a ROADMAP section where to highlight the behavior.

@tafaRU
Copy link
Member Author

tafaRU commented Jan 10, 2025

@rousseldenis @Jaimermaccione could you please update your review?

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.