From d1b340b9333da599fe5f50eeb322a04df1f8ffe5 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Fri, 18 Dec 2015 16:32:01 +0100 Subject: [PATCH] Fix bug in domain computation. --- base_custom_info/models/custom_info.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/base_custom_info/models/custom_info.py b/base_custom_info/models/custom_info.py index cfb06c81d..08e133647 100644 --- a/base_custom_info/models/custom_info.py +++ b/base_custom_info/models/custom_info.py @@ -75,8 +75,9 @@ class CustomInfo(models.AbstractModel): custom_info_ids = fields.One2many( comodel_name='custom.info.value', inverse_name='res_id', - domain=lambda self: self.env["ir.model"].search( - [("model_id", "=", self._name)]).id, + domain=lambda self: [ + ("model_id", "=", + self.env["ir.model"].search([("model", "=", self._name)]).id)], auto_join=True, string='Custom Properties')