diff --git a/odex25_ensan/odex_benefit/i18n/ar_001.po b/odex25_ensan/odex_benefit/i18n/ar_001.po index 47c8d2474..0ead1e5a5 100644 --- a/odex25_ensan/odex_benefit/i18n/ar_001.po +++ b/odex25_ensan/odex_benefit/i18n/ar_001.po @@ -15181,19 +15181,16 @@ msgstr "إعدادات المركبات" #. module: odex_benefit #: model:ir.model.fields,field_description:odex_benefit.field_cars_line__application_form -#: model:ir.model.fields,field_description:odex_benefit.field_cars_line__application_form_filename msgid "Application Form" msgstr "الاستمارة" #. module: odex_benefit #: model:ir.model.fields,field_description:odex_benefit.field_cars_line__driving_license -#: model:ir.model.fields,field_description:odex_benefit.field_cars_line__driving_license_filename msgid "Driving License" msgstr "رخصة القيادة" #. module: odex_benefit #: model:ir.model.fields,field_description:odex_benefit.field_cars_line__owner_identity -#: model:ir.model.fields,field_description:odex_benefit.field_cars_line__owner_identity_filename msgid "Owner Identity" msgstr "هوية المالك" diff --git a/odex25_ensan/odex_benefit/models/benefit_config.py b/odex25_ensan/odex_benefit/models/benefit_config.py index 0d4483b5e..588122970 100644 --- a/odex25_ensan/odex_benefit/models/benefit_config.py +++ b/odex25_ensan/odex_benefit/models/benefit_config.py @@ -599,14 +599,9 @@ class Cars(models.Model): ('bad', 'bad'), ], required=False, ) # TODO - application_form = fields.Binary(string="Application Form", attachment=True) - application_form_filename = fields.Char(string="Application Form") - - driving_license = fields.Binary(string="Driving License", attachment=True) - driving_license_filename = fields.Char(string="Driving License") - - owner_identity = fields.Binary(string="Owner Identity", attachment=True) - owner_identity_filename = fields.Char(string="Owner Identity") + application_form = fields.Many2many('ir.attachment',string="Application Form") + driving_license = fields.Many2many('ir.attachment',string="Driving License") + owner_identity = fields.Many2many('ir.attachment',string="Owner Identity") class TrainingType(models.Model): diff --git a/odex25_ensan/odex_benefit/views/benefit_view.xml b/odex25_ensan/odex_benefit/views/benefit_view.xml index c7ab381e4..43cc9a123 100644 --- a/odex25_ensan/odex_benefit/views/benefit_view.xml +++ b/odex25_ensan/odex_benefit/views/benefit_view.xml @@ -1232,12 +1232,9 @@ - - - - - - + + +