Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion product_replenishment_cost/models/product_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def _update_cost_from_replenishment_cost(self):
# clave hacerlo en product.product por velocidad (relativo a
# campos standard_price)
company = self.env.company
products = self.with_context(tracking_disable=True).env['product.product'].search(
products = self.env['product.product'].with_company(self.env.company).with_context(tracking_disable=True).search(
[('product_tmpl_id.id', 'in', self.ids)])
for product in products.filtered('replenishment_cost'):
replenishment_cost = product.replenishment_cost
Expand Down