Skip to content

Commit 62f205b

Browse files
committed
[IMP] _rep_cost: less depends, better performance
Dejamos depends igual que como tenemos en 18+ ver acá 499693f closes #834 Signed-off-by: Juan José Scarafía <jjs@adhoc.com.ar>
1 parent a2442ca commit 62f205b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

product_replenishment_cost/models/product_template.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,13 +188,11 @@ def _compute_replenishment_cost_last_update(self):
188188
# rule
189189
# 'replenishment_base_cost_currency_id',
190190
# # because of being stored
191-
'replenishment_base_cost_currency_id.rate_ids.rate',
191+
'replenishment_base_cost_currency_id',
192192
# # and this if we change de date (name field)
193193
# 'replenishment_base_cost_currency_id.rate_ids.name',
194194
# rule items
195-
'replenishment_cost_rule_id.item_ids.sequence',
196-
'replenishment_cost_rule_id.item_ids.percentage_amount',
197-
'replenishment_cost_rule_id.item_ids.fixed_amount',
195+
'replenishment_cost_rule_id',
198196
)
199197
@api.depends_context('company')
200198
def _compute_replenishment_cost(self):

0 commit comments

Comments
 (0)