diff --git a/base_export_manager/models/ir_exports.py b/base_export_manager/models/ir_exports.py index 162fa11ed..cdc917915 100644 --- a/base_export_manager/models/ir_exports.py +++ b/base_export_manager/models/ir_exports.py @@ -31,6 +31,7 @@ class IrExports(models.Model): s.model_id = self._get_model_id(s.resource) @api.multi + @api.onchange("model_id") def _inverse_model_id(self): """Get the resource from the model.""" for s in self: