-
Notifications
You must be signed in to change notification settings - Fork 3
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
[12.0][3697][ADD] product_standard_price_restriction #103
Conversation
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## 12.0 #103 +/- ##
==========================================
+ Coverage 72.64% 72.83% +0.18%
==========================================
Files 84 88 +4
Lines 680 703 +23
Branches 126 131 +5
==========================================
+ Hits 494 512 +18
- Misses 176 181 +5
Partials 10 10
|
@@ -0,0 +1,41 @@ | |||
|
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.
@@ -0,0 +1,7 @@ | |||
<?xml version="1.0" encoding="utf-8" ?> | |||
<odoo> | |||
<record id="group_product_manager" model="res.groups"> |
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.
@rinaldifirdaus Do you think we should add this group this time, according to the requirement discussed with the client?
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.
@rinaldifirdaus Please add the business background.
raise UserError( | ||
_( | ||
"You are about to update the cost. This field is " | ||
"auto-calculated by Odoo and is an 'Weighted Average Value' of " |
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.
It is not good to hardcode a message like this. Can we make the message more generic, or put it in a configuration field (upon adding a field perhaps in res.company)?
42381b6
to
4dc2d64
Compare
4dc2d64
to
b464a18
Compare
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.
Functional test: Working as Expected!
_inherit = "product.template" | ||
|
||
standard_price = fields.Float(track_visibility='onchange') | ||
update_cost = fields.Boolean() |
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.
Add help.
3697