Skip to content

Commit

Permalink
[13.0] [FIX] product_replenishment_cost: Not Update values using cont…
Browse files Browse the repository at this point in the history
…rains.
  • Loading branch information
nicomacr committed Jan 26, 2021
1 parent 4de8ff1 commit 16e5895
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ def _compute_description(self):
'+ expr' if x.expr else ''))))
rec.description = description

@api.constrains('item_ids')
def update_replenishment_cost_last_update(self):
self.product_ids.update_replenishment_cost_last_update()

def _get_eval_context(self, obj=None):
""" Prepare the context used when evaluating python code
:param obj: the current obj
Expand Down
1 change: 1 addition & 0 deletions product_replenishment_cost/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class ProductTemplate(models.Model):
tracking=True,
compute='_compute_replenishment_cost_last_update',
store=True,
help="Date of the last update of replenishment base cost or its currency"
)
replenishment_base_cost = fields.Float(
digits='Product Price',
Expand Down

0 comments on commit 16e5895

Please sign in to comment.