Skip to content
Snippets Groups Projects
Commit fddd7481 authored by Martin Geubelle's avatar Martin Geubelle Committed by qdp-odoo
Browse files

[FIX] account_asset: allow deferred revenue on one month

One could want to use deferred revenue for revenues invoiced in February
but the services are provided in June (e.g.)
parent 7fe89d08
Branches
Tags
No related merge requests found
......@@ -51,7 +51,7 @@ class AccountInvoiceLine(models.Model):
@api.one
def asset_create(self):
if self.asset_category_id and self.asset_category_id.method_number > 1:
if self.asset_category_id:
vals = {
'name': self.name,
'code': self.invoice_id.number or False,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment