Skip to content
Snippets Groups Projects
Commit 58a5b5e4 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] account_asset: Typo error

parent 9d14230d
Branches
Tags
No related merge requests found
......@@ -19,7 +19,7 @@ class AccountInvoice(models.Model):
if inv.number:
asset_ids = self.env['account.asset.asset'].sudo().search([('invoice_id', '=', inv.id), ('company_id', '=', inv.company_id.id)])
if asset_ids:
asset_ids .write({'active': False})
asset_ids.write({'active': False})
inv.invoice_line_ids.asset_create()
return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment