diff --git a/edi_oca/models/edi_backend.py b/edi_oca/models/edi_backend.py index 9a017b95b..7c97b7960 100644 --- a/edi_oca/models/edi_backend.py +++ b/edi_oca/models/edi_backend.py @@ -52,6 +52,7 @@ class EDIBackend(models.Model): """ ) active = fields.Boolean(default=True) + company_id = fields.Many2one("res.company", string="Company") def _get_component(self, exchange_record, key): record_conf = self._get_component_conf_for_record(exchange_record, key) diff --git a/edi_oca/security/ir_model_access.xml b/edi_oca/security/ir_model_access.xml index 6d4ecd49f..0c37acca9 100644 --- a/edi_oca/security/ir_model_access.xml +++ b/edi_oca/security/ir_model_access.xml @@ -120,4 +120,11 @@ name="domain_force" >['|',('company_id','=',False),('company_id', 'in', company_ids)] + + edi_backend multi-company + + ['|',('company_id','=',False),('company_id', 'in', company_ids)] + diff --git a/edi_oca/views/edi_backend_views.xml b/edi_oca/views/edi_backend_views.xml index 9a837e7d2..d784f9995 100644 --- a/edi_oca/views/edi_backend_views.xml +++ b/edi_oca/views/edi_backend_views.xml @@ -6,6 +6,11 @@ + @@ -47,6 +52,7 @@ + diff --git a/edi_oca/views/edi_exchange_type_views.xml b/edi_oca/views/edi_exchange_type_views.xml index 7f517f03b..59b7ab69a 100644 --- a/edi_oca/views/edi_exchange_type_views.xml +++ b/edi_oca/views/edi_exchange_type_views.xml @@ -67,11 +67,7 @@ string="Model rules" groups="edi_oca.group_edi_advanced_settings_manager" > - - +