Browse Source

Make inverse method be called at view time.

pull/317/head
Jairo Llopis 9 years ago
parent
commit
ecb9a6cfe7
  1. 1
      base_export_manager/models/ir_exports.py

1
base_export_manager/models/ir_exports.py

@ -31,6 +31,7 @@ class IrExports(models.Model):
s.model_id = self._get_model_id(s.resource) s.model_id = self._get_model_id(s.resource)
@api.multi @api.multi
@api.onchange("model_id")
def _inverse_model_id(self): def _inverse_model_id(self):
"""Get the resource from the model.""" """Get the resource from the model."""
for s in self: for s in self:

Loading…
Cancel
Save