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_stock_provisioning_date: Migration to 17.0 #949

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

Conversation

arantxa-s73
Copy link

@arantxa-s73 arantxa-s73 commented Jul 9, 2024

Description

This PR migrates the module website_sale_stock_provisioning_date from Odoo version 16.0 to 17.0, ensuring compatibility with the latest version of Odoo and adopting improvements introduced in the API and module structure.

Key Changes

  • The free_qty field has been added to utilize the _get_product_available_qty method within _get_combination_info. This ensures that the stock obtained accurately reflects what is actively being used on the website.
  • Existing tests have been updated to align with the recent changes.
  • A new test has been added specifically for the free_qty field to validate its functionality.

@arantxa-s73 arantxa-s73 changed the title 17.0][MIG] website_sale_stock_provisioning_date: Migration to 17.0 [17.0][MIG] website_sale_stock_provisioning_date: Migration to 17.0 Jul 9, 2024
@miguel-S73 miguel-S73 force-pushed the 17.0-mig-website_sale_stock_provisioning_date branch from a33befe to 7f9f9c2 Compare August 9, 2024 09:04
Ernesto Tejeda and others added 15 commits October 25, 2024 09:09
Show the future provisioning date closest to the current date
for a product in the eCommerce.
The provisioning date was always showing in the same format without
respecting the date format defined in the language settings.

It is added in function `_get_combination_info` instead of in function
`_get_next_provisioning_date` so that the date is still formatted even
if function `_get_next_provisioning_date` is inherited.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

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

Translation: e-commerce-16.0/e-commerce-16.0-website_sale_stock_provisioning_date
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_stock_provisioning_date/es/
Currently translated at 100.0% (5 of 5 strings)

Translation: e-commerce-16.0/e-commerce-16.0-website_sale_stock_provisioning_date
Translate-URL: https://translation.odoo-community.org/projects/e-commerce-16-0/e-commerce-16-0-website_sale_stock_provisioning_date/it/
@miguel-S73 miguel-S73 force-pushed the 17.0-mig-website_sale_stock_provisioning_date branch 4 times, most recently from c50aa39 to 0be5ece Compare October 28, 2024 11:31
@miguel-S73 miguel-S73 force-pushed the 17.0-mig-website_sale_stock_provisioning_date branch from 0be5ece to 3702320 Compare October 28, 2024 11:37
@miguel-S73
Copy link

@pedrobaeza all checks green.
Please, Can you review this changes?

@pedrobaeza
Copy link
Member

Right now we are not needing this module in 17, but I tag it and it can be reviewed by others.

/ocabot migration website_sale_stock_provisioning_date

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Oct 28, 2024
@OCA-git-bot OCA-git-bot mentioned this pull request Oct 28, 2024
27 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.

9 participants