Browse Source

Robustness in fields retrieval

pull/59/head
Andrea 8 years ago
parent
commit
08549d10f9
  1. 1
      bi_view_editor/models/ir_model.py

1
bi_view_editor/models/ir_model.py

@ -50,6 +50,7 @@ class IrModel(models.Model):
name = ir_model_field_obj.name name = ir_model_field_obj.name
model = ir_model_field_obj.model_id model = ir_model_field_obj.model_id
model_name = model.model model_name = model.model
if model_name[0:6] != 'x_bve.':
Model = self.env[model_name] Model = self.env[model_name]
if name in Model._columns: if name in Model._columns:
f = Model._columns[name] f = Model._columns[name]

Loading…
Cancel
Save