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] website_sale_secondary_unit #993

Draft
wants to merge 46 commits into
base: 16.0
Choose a base branch
from

Conversation

santostelmo
Copy link

Migration of website_sale_secondary_unit from 15.0 to 16.0

sergio-teruel and others added 30 commits December 9, 2024 06:45
As the product.secondary.unit view has been isolated, we have to
inherit from that one.
Before this changes, the change in the value of the secondary unit input field
didn't launch the execution of the onchanges of the real input field.

Adding this changes, we achieve to capture the event of the new input field
to launch the onchanges of the real input field.

cc @Tecnativa TT29708
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/
For mobile users adding an extra column in the cart summary makes that
the others content won't fit very well, specially for products with long
names. As we can infer the sale line information without the secondary
units computation computation column we choose to hide it if the screen
is too small as Odoo does with the product image column.

TT37137
Currently translated at 53.3% (8 of 15 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/it/
Currently translated at 100.0% (15 of 15 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/it/
Currently translated at 100.0% (15 of 15 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/es/
Currently translated at 100.0% (15 of 15 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/it/
Currently translated at 100.0% (15 of 15 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/it/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/
pilarvargas-tecnativa and others added 15 commits December 9, 2024 06:45
…antity description and delete column in purchase summary

There were two quantity columns in the purchase summary, one with the
secondary unit quantity and one with the product quantity. A quantity
column in the purchase summary has been removed to give more clarity
to the view. When product names or units of measure have a considerable
number of characters, having two columns causes a crowding of the view
and therefore a feeling of content clutter. Instead, their content has
been moved so that both the secondary unit quantity and the quantity
of product purchased appear in the same column.

We have also added the option to hide the name of the secondary unit of
measure in the secondary unit description template in case it matches
the unit of measure of the product as depending on where it is being
called from it can be redundant.

TT45032
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/
Currently translated at 100.0% (15 of 15 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/it/
Currently translated at 100.0% (15 of 15 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/es/
- Switch to setUpClass for avoiding repeat the same setup for each test.
- Include context keys for avoiding mail operations overhead.
Currently translated at 100.0% (15 of 15 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/it/
Currently translated at 100.0% (15 of 15 strings)

Translation: e-commerce-15.0/e-commerce-15.0-website_sale_secondary_unit
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-15-0/e-commerce-15-0-website_sale_secondary_unit/it/
@santostelmo santostelmo marked this pull request as draft December 9, 2024 07:49
@StephaneMangin StephaneMangin force-pushed the 16.0-mig-website_sale_secondary_unit branch from 03a5fa8 to 8a0cf88 Compare January 10, 2025 10:53
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.