Skip to content

Conversation

@pablo-cort-s73
Copy link

@pablo-cort-s73 pablo-cort-s73 commented Oct 23, 2025

Migration to 18.0

This commit migrates the website_sale_product_minimal_price module to Odoo version 18.0.

Main changes:

  • Bumped the module version in __manifest__.py from 17.0.1.0.0 to 18.0.1.0.0.
  • Refactored the _get_sales_prices method in product_template.py to match the new Odoo API, now receiving website instead of pricelist and fiscal_position.
  • Updated test files to use the new odoo.fields.Command API for creating and linking records, replacing the old tuple-based syntax.
  • Improved tour test selectors for better reliability and compatibility with Odoo 18.0.
  • Updated QWeb templates to use new variable names and sorting logic for product attribute values, ensuring correct display and order by minimal price.

sergio-teruel and others added 24 commits October 23, 2025 08:06
* [11.0][NEW] website_sale_product_minimal_price: New module

* [11.0][IMP] website_sale_product_minimal_price: Order by minimal variant price (from pricelists or extra variant price)

[UPD] Update website_sale_product_minimal_price.pot

Update translation files

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

Translation: e-commerce-11.0/e-commerce-11.0-website_sale_product_minimal_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-11-0/e-commerce-11-0-website_sale_product_minimal_price/

[UPD] README.rst
Currently translated at 100.0% (2 of 2 strings)

Translation: e-commerce-13.0/e-commerce-13.0-website_sale_product_minimal_price
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-13-0/e-commerce-13-0-website_sale_product_minimal_price/es/
Ensure we use a consistant currency

TT28906
…s of 12.0

Forward port adapting the minimal price computing to the new way added on version 13.0.

With the changes added the price takes care on the website selected pricelist and it's added the grid of price scale for each product.variant.

TT24175
…list item

When the product has a sales price = 0, his variants has no extra price and a pricelist depends on other pricelists to compute the prices, the algorithm takes a random variant.

Doing this changes we take care all pricelists that depends on the main to compute the prices asociated to the product.

This changes are forward ported and addapted to 13.0 version from this commit OCA@fe99a35#diff-d3f954ac4904966e21fd42f7b88212a43b229ad5c025afc848408a4127215ebe
@pablo-cort-s73 pablo-cort-s73 force-pushed the 18.0-mig-website_sale_product_minimal_price branch 6 times, most recently from 624434f to a7f5cc0 Compare October 23, 2025 11:57
@pablo-cort-s73 pablo-cort-s73 force-pushed the 18.0-mig-website_sale_product_minimal_price branch 4 times, most recently from 8d95a06 to 61f16cf Compare October 24, 2025 09:02
Copy link

@Reyes4711-S73 Reyes4711-S73 left a comment

Choose a reason for hiding this comment

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

LGTM

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@Reyes4711-S73
Copy link

@OCA/e-commerce-maintainers Please, can you merge this PR?

@pablo-cort-s73 pablo-cort-s73 force-pushed the 18.0-mig-website_sale_product_minimal_price branch from 61f16cf to 126ef6f Compare November 14, 2025 11:37
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.