Skip to content

[19.0][MIG] website_sale_b2x_alt_price: Migration to version 19.0 - #1281

Open
carlos-lopez-tecnativa wants to merge 28 commits into
OCA:19.0from
Tecnativa:19.0-mig-website_sale_b2x_alt_price
Open

[19.0][MIG] website_sale_b2x_alt_price: Migration to version 19.0#1281
carlos-lopez-tecnativa wants to merge 28 commits into
OCA:19.0from
Tecnativa:19.0-mig-website_sale_b2x_alt_price

Conversation

@carlos-lopez-tecnativa

Copy link
Copy Markdown
Contributor

@OCA-git-bot OCA-git-bot added series:19.0 mod:website_sale_b2x_alt_price Module website_sale_b2x_alt_price labels Aug 7, 2026
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration website_sale_b2x_alt_price

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Aug 7, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 7, 2026
29 tasks
@pedrobaeza

Copy link
Copy Markdown
Member

You can rebase after #1282

Jairo Llopis and others added 24 commits August 7, 2026 11:10
- If your website is B2B, display a smaller B2C price next to the main one. And viceversa.
- Toggle feature independently in list and product templates.
- Toggle feature per website.
- Supports live price recomputing.

@Tecnativa TT24410
When testing on an integration environment which had a different l10n package enabled, the tours failed due to currency rate conversion.

Create instead a test-specific pricelist and reset currency conversions before testing, to avoid false negative tests. That's not the feature being tested here.

@Tecnativa TT24410
…ion in the portal

When a customer accesses a quotation the first price they see is
tax included. This can be commercially negative and therefore
the option to display the price both with and without taxes is added.
Highlighting one price or the other depending on the b2b or b2c options.

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

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

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

Translation: e-commerce-18.0/e-commerce-18.0-website_sale_b2x_alt_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_b2x_alt_price/
Currently translated at 0.0% (0 of 5 strings)

Translation: e-commerce-18.0/e-commerce-18.0-website_sale_b2x_alt_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_b2x_alt_price/pt_BR/
Currently translated at 80.0% (4 of 5 strings)

Translation: e-commerce-18.0/e-commerce-18.0-website_sale_b2x_alt_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_b2x_alt_price/es/
Currently translated at 40.0% (2 of 5 strings)

Translation: e-commerce-18.0/e-commerce-18.0-website_sale_b2x_alt_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_b2x_alt_price/fr/
Currently translated at 40.0% (2 of 5 strings)

Translation: e-commerce-18.0/e-commerce-18.0-website_sale_b2x_alt_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_b2x_alt_price/ca/
Currently translated at 100.0% (5 of 5 strings)

Translation: e-commerce-18.0/e-commerce-18.0-website_sale_b2x_alt_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_b2x_alt_price/it/
Ed-Spain and others added 2 commits August 7, 2026 11:10
Currently translated at 100.0% (5 of 5 strings)

Translation: e-commerce-18.0/e-commerce-18.0-website_sale_b2x_alt_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-18-0/e-commerce-18-0-website_sale_b2x_alt_price/es/
@carlos-lopez-tecnativa
carlos-lopez-tecnativa force-pushed the 19.0-mig-website_sale_b2x_alt_price branch from b639c47 to afdf79c Compare August 7, 2026 16:11
@carlos-lopez-tecnativa
carlos-lopez-tecnativa force-pushed the 19.0-mig-website_sale_b2x_alt_price branch from afdf79c to b81c594 Compare August 7, 2026 16:13
This module changes the logic used to display taxes on the website based on the res.partner fields (see https://github.com/OCA/e-commerce/blob/b46e520b2f84a3d46d9f85c39e7313112bd4c122/website_sale_tax_selection/models/website.py#L25). Since these fields always have a default value, the logic always uses the values from the res.partner record.

As a result, it is incompatible with website_sale_b2x_alt_price.
@eduezerouali-tecnativa

Copy link
Copy Markdown
Contributor

The price is it not displaying correctly.
Runboat:
imagen
Runbot 19:
imagen

@carlos-lopez-tecnativa

Copy link
Copy Markdown
Contributor Author

I tested it on this Runboat instance, and it works as expected. Which Runboat instance did you test it on?

Remember that the product must have taxes configured.

http://oca-e-commerce-19-0-pr1281-e58a181f18a2.runboat.odoo-community.org/shop/serv-125890-warranty-40
image

image

@eduezerouali-tecnativa

Copy link
Copy Markdown
Contributor

I tested it on this Runboat instance, and it works as expected. Which Runboat instance did you test it on?

Remember that the product must have taxes configured.

http://oca-e-commerce-19-0-pr1281-e58a181f18a2.runboat.odoo-community.org/shop/serv-125890-warranty-40 image
image

Works fine, but it is indented and it should not be IMHO.

@carlos-lopez-tecnativa

Copy link
Copy Markdown
Contributor Author

Works fine, but it is indented and it should not be IMHO.

It is not indented. Following the Odoo style, the text is aligned to the left in the product list view and to the right in the product form view. This difference in alignment is what makes the text appear indented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:website_sale_b2x_alt_price Module website_sale_b2x_alt_price series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.