mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] Avoid singleton error
This commit is contained in:
@@ -49,7 +49,8 @@ class SaleOrder(models.Model):
|
||||
|
||||
@api.depends('order_line')
|
||||
def _compute_is_contract(self):
|
||||
self.is_contract = any(self.order_line.mapped('is_contract'))
|
||||
for rec in self:
|
||||
rec.is_contract = any(rec.order_line.mapped('is_contract'))
|
||||
|
||||
@api.multi
|
||||
def _prepare_contract_value(self, contract_template):
|
||||
|
||||
Reference in New Issue
Block a user