Skip to content

Commit

Permalink
[UPD] osi_quote_downpayment: add safety code to method
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeddies committed Jan 9, 2025
1 parent ceef956 commit 57435c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osi_quote_downpayment/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ def action_post(self):
for rec in self:
downpayment_lines[rec.id] = {}
for line in rec.invoice_line_ids:
if line and "Down payment" in line.name:
if line.name and "Down payment" in line.name:
downpayment_lines[rec.id][line.id] = line.price_unit
res = super().action_post()
for rec in self:
for line in rec.invoice_line_ids:
if line and "Down payment" in line.name:
if line.name and "Down payment" in line.name:
downpayment_lines[rec.id][line.id] = line.price_unit
return res

0 comments on commit 57435c8

Please sign in to comment.