mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
fix pylint
This commit is contained in:
@@ -25,7 +25,8 @@ class ProductTemplate(models.Model):
|
||||
""" Clear the relation to contract_template_id when downgrading
|
||||
product from contract
|
||||
"""
|
||||
super(ProductTemplate, self)._change_is_contract()
|
||||
res = super(ProductTemplate, self)._change_is_contract()
|
||||
if not self.is_contract:
|
||||
self.qty_type = False
|
||||
self.qty_formula_id = False
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user