-
-
Notifications
You must be signed in to change notification settings - Fork 534
[18.0][MIG] website_sale_stock_list_preview: Migration to version 18.0 #1149
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
[18.0][MIG] website_sale_stock_list_preview: Migration to version 18.0 #1149
Conversation
…en no stock available
…ble_formated to show the quantity available
…ite_sale_stock_available When website_sale_stock_available is installed, the grid view is showing different allowed quantities than when we access to the products sheet. With this changes we add compatibility with this module and if stock_available_immediately is installed we will get same value. TT38689
As the value of available_threshold was set by default if some module decrease this default, the test will fail, because the text rendered will be "In stock" instead of "5.000 Units available".
Since the changes introduced in odoo/odoo@a8c73eb we need to pass to the template of the remaining units to the function formatQuantity. So we need to pass the function. The steps to reproduce the error: 1. Edit some product, example Customizable Desk 2. Select the option Show Available Qty and set it to 999999 3. Go to /shop You will see the error
|
/ocabot migration website_sale_stock_list_preview |
pedrobaeza
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and working!
|
/ocabot merge nobump |
|
What a great day to merge this nice PR. Let's do it! |
|
Congratulations, your PR was merged at d9ce7b1. Thanks a lot for contributing to OCA. ❤️ |
@Tecnativa TT57286
@pedrobaeza @CarlosRoca13 please review