Browse Source

Make inverse method be called at view time.

pull/505/head
Jairo Llopis 9 years ago
committed by Pedro M. Baeza
parent
commit
837873d13f
  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