-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
[16.0][MIG] product_variant_sale_price: Migration to 16.0 #290
[16.0][MIG] product_variant_sale_price: Migration to 16.0 #290
Conversation
b11c84a
to
5a30a94
Compare
5a30a94
to
296eff6
Compare
This PR includes also the work done by RabbitJon-S73 in #281 but goes a little bit further by improving the views. |
77b700b
to
888a1ec
Compare
@ecino LGTM, ask the other reviewers to have a look and if they find it ok im closing my PR to avoid conflicts. |
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 in runboat, LGTM.
@ecino Could you rebase and solve the conflicts please? |
Warning during installation:
Could you overwrite the method using the |
9e34108
to
bfccc61
Compare
Thanks for the reviews and sorry for the delay in my answer. I corrected all reported issues. |
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.
Code review, LGTM
This PR has the |
I applied the nice suggestions from @FrankC013 and also added a new Action that can be very handy for controlling which variant will be the price reference in case the user prefers not to have the cheapest variant as the reference price (which is the default behaviour). |
c6d7ccf
to
39c984c
Compare
Is there something else preventing the merge? Can someone give the final review here? Thanks! |
Bug report: Tested and this is not working in version 16: "This module also hides sale price at product template level when has more than one variant." |
Currently translated at 83.3% (5 of 6 strings) Translation: product-variant-15.0/product-variant-15.0-product_variant_sale_price Translate-URL: https://translation.odoo-community.org/projects/product-variant-15-0/product-variant-15-0-product_variant_sale_price/fr/
Currently translated at 100.0% (6 of 6 strings) Translation: product-variant-15.0/product-variant-15.0-product_variant_sale_price Translate-URL: https://translation.odoo-community.org/projects/product-variant-15-0/product-variant-15-0-product_variant_sale_price/ca/
Apply suggested changes from FrankC013
187a929
to
c801440
Compare
PR Fixed. |
@ecino It seems that tests are failing, can you have a look? |
Apparently it causes problem with the |
@ecino Looks like module product_variant_name adds field "Name" to product.product as required but tests in product_variant_sale_price create product_products without name. |
Thanks for the hint. Can we merge now? |
This PR has the |
@OCA/product-maintainers |
…_sale_price [28209] [16.0][MIG] product_variant_sale_price: Migration to 16.0 OCA#290
/ocabot merge nobump |
Sorry @HaraldPanten you are not allowed to merge. To do so you must either have push permissions on the repository, or be a declared maintainer of all modified addons. If you wish to adopt an addon and become it's maintainer, open a pull request to add your GitHub login to the |
@etobella could you merge this one? I forgot I don't have permissions here! 😂 |
/ocabot merge nobump |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 603ac06. Thanks a lot for contributing to OCA. ❤️ |
Adapted the views and fixed a bug where the sales price on the template was updating with the previous value of a product.
This PR includes also the work done by RabbitJon-S73 in #281 but goes a little bit further by improving the views.