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][FIX] product_variant_sale_price: edit Sales Price #363

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

gabe-grinspan
Copy link

There is an issue in 17.0 where the Sales Price field is not editable in the quick view page found by navigating to variants from a parent product page. This module makes it such that the field is separated between products and variants. It should be easy to modify this field without having to navigate to the variants list page and search.

I believe this worked in previous versions, as the code seems to indicate there was a purpose for clearing attrs but in Odoo 17, Odoo removed that attribute and replaced it with options. As it is, options has nothing to do with readonly in this case.

@gabriel-grinspan
Copy link

/ocabot merge

@OCA-git-bot
Copy link
Contributor

Hi @gabriel-grinspan. Your command failed:

Required option bumpversion_mode for command merge. Possible values : major, minor, patch, nobump.

Ocabot commands

  • ocabot merge major|minor|patch|nobump
  • ocabot rebase
  • ocabot migration {MODULE_NAME}

More information

@gabriel-grinspan
Copy link

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

Sorry @gabriel-grinspan 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 maintainers key of its manifest.

@gabriel-grinspan
Copy link

@HaraldPanten
Are you the right person to merge this? Please review.

@gabriel-grinspan
Copy link

@pedrobaeza

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

@@ -8,7 +8,7 @@
"version": "17.0.1.0.0",
"category": "Product Management",
"website": "https://github.com/OCA/product-variant",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
"author": "Tecnativa, Rooteam, " "Odoo Community Association (OCA)",
Copy link
Member

Choose a reason for hiding this comment

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

This change doesn't qualify for co-authorship, so remove it.

Choose a reason for hiding this comment

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

Do I get automatically added as a contributor, or do I have to manually update the README?

Copy link
Member

Choose a reason for hiding this comment

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

The commit attribution is already in GitHub, but for being explicitly in the README file, you have to add yourself in https://github.com/OCA/product-variant/blob/17.0/product_variant_sale_price/readme/CONTRIBUTORS.md and execute pre-commit

Copy link
Member

Choose a reason for hiding this comment

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

Do I merge as is for this time?

@gabriel-grinspan gabriel-grinspan force-pushed the 17.0 branch 2 times, most recently from 2eaed52 to 33358df Compare July 10, 2024 19:00
@gabriel-grinspan
Copy link

@pedrobaeza
This should be good now.

@gabriel-grinspan
Copy link

@pedrobaeza
I have amended my commit, updated the contributors, and run the pre-commit.

@pedrobaeza pedrobaeza changed the title [17.0] Make Sales Price not readonly on the product variant 'easy' page [17.0][FIX] product_variant_sale_price: edit Sales Price Jul 10, 2024
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

OK, let's fast-track as very clear:

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-363-by-pedrobaeza-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 595dc23 into OCA:17.0 Jul 10, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 008ef4f. Thanks a lot for contributing to OCA. ❤️

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.

4 participants