Skip to content

Commit

Permalink
[IMP] product_replenishment_cost: replenishment_cost_last_update adju…
Browse files Browse the repository at this point in the history
…stment
  • Loading branch information
vib-adhoc committed Jan 30, 2023
1 parent a108eb3 commit 364c431
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions product_replenishment_cost/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,14 @@ def _update_cost_from_replenishment_cost(self):
return True

@api.depends(
'replenishment_cost_type',
'replenishment_base_cost',
'replenishment_base_cost_currency_id',
'supplier_price',
'supplier_currency_id',
'replenishment_cost_rule_id.item_ids.sequence',
'replenishment_cost_rule_id.item_ids.percentage_amount',
'replenishment_cost_rule_id.item_ids.fixed_amount',
)
def _compute_replenishment_cost_last_update(self):
self.replenishment_cost_last_update = fields.Datetime.now()
Expand Down

0 comments on commit 364c431

Please sign in to comment.