Browse Source

Fix bug in domain computation.

pull/313/head
Jairo Llopis 9 years ago
parent
commit
d1b340b933
  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( custom_info_ids = fields.One2many(
comodel_name='custom.info.value', comodel_name='custom.info.value',
inverse_name='res_id', 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, auto_join=True,
string='Custom Properties') string='Custom Properties')

Loading…
Cancel
Save