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

[17.0][MIG] website_sale_product_minimal_price: Migration to version 17.0 #1007

Open
wants to merge 21 commits into
base: 17.0
Choose a base branch
from

Conversation

carlos-lopez-tecnativa
Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa commented Jan 17, 2025

  • Render on the server whether the product requires the "From" label instead of handling it in JS to avoid flickering.
  • Reuse the RPC call to /website_sale/get_combination_info. The data is now obtained in _onChangeCombination, eliminating the need for a new request to the server. The unused controller has been removed.
  • Utilize the new functions in Odoo to retrieve the pricelist and optimize queries by using _read_group instead of search + filter.

TT52394
@Tecnativa @pedrobaeza @CarlosRoca13 @chienandalu @pilarvargas-tecnativa @sergio-teruel Could you please review this? Thanks!

sergio-teruel and others added 21 commits January 15, 2025 09:52
* [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
@pedrobaeza
Copy link
Member

/ocabot migration website_sale_product_minimal_price

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Jan 17, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 17, 2025
28 tasks
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.