Skip to content

Commit

Permalink
Merge PR #221 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Nov 6, 2024
2 parents 7b3dfba + c45b07e commit 5a07c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account_invoice_margin/models/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def _compute_purchase_price(self):
for line in self:
if line.move_id.move_type in ["out_invoice", "out_refund"]:
purchase_price = line._get_purchase_price()
if line.product_uom_id != line.product_id.uom_id:
if line.product_id and line.product_uom_id != line.product_id.uom_id:
purchase_price = line.product_id.uom_id._compute_price(
purchase_price, line.product_uom_id
)
Expand Down

0 comments on commit 5a07c53

Please sign in to comment.