Skip to content

Commit

Permalink
Merge PR #120 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by LoisRForgeFlow
  • Loading branch information
OCA-git-bot committed May 28, 2024
2 parents c530f4c + 15e89ca commit 71bd353
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ class ProductProduct(models.Model):

def _get_direct_material_unit_cost(self):
self.ensure_one()
if not self.standard_price and self.variant_seller_ids:
return self.variant_seller_ids[0].price
return self.standard_price

0 comments on commit 71bd353

Please sign in to comment.