Browse Source

Fix bug in domain computation.

pull/435/head
Jairo Llopis 9 years ago
parent
commit
b6af7855ff
  1. 5
      base_custom_info/models/custom_info.py

5
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')

Loading…
Cancel
Save