Skip to content

Commit

Permalink
fix pre-commit error
Browse files Browse the repository at this point in the history
  • Loading branch information
rinaldifirdaus committed Oct 23, 2023
1 parent 56ed68f commit 3836454
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions product_standard_price_restriction/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class ProductTemplate(models.Model):
standard_price = fields.Float(track_visibility='onchange')
update_cost = fields.Boolean()


def write(self, vals):
if "standard_price" in vals:
if not vals.get('update_cost', self.update_cost):
Expand All @@ -24,9 +23,9 @@ def write(self, vals):
"set in the 'Purchase' TAB. This value should not be "
"modified unless there are very unusual circumstances. "
"In such a situation, please set the 'Update Cost' "
"field to 'True' and save the record again. Additionally, please make sure "
"to write a detailed 'Log' below of what you are changing "
"(from what to what) and why."
"field to 'True' and save the record again. Additionally, "
"please make sure to write a detailed 'Log' below "
"of what you are changing (from what to what) and why."
)
)
vals['update_cost'] = False
Expand Down

0 comments on commit 3836454

Please sign in to comment.