From 0c2d188b2eaecbdf28dd997dc8688ddc93b6ead6 Mon Sep 17 00:00:00 2001 From: younes Date: Tue, 2 Sep 2025 19:45:52 +0100 Subject: [PATCH] IMP benefit --- odex25_ensan/odex_benefit/i18n/ar_001.po | 3 --- odex25_ensan/odex_benefit/models/benefit_config.py | 10 +++------- odex25_ensan/odex_benefit/views/benefit_view.xml | 9 +++------ 3 files changed, 6 insertions(+), 16 deletions(-) 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..8a1d6382f 100644 --- a/odex25_ensan/odex_benefit/models/benefit_config.py +++ b/odex25_ensan/odex_benefit/models/benefit_config.py @@ -599,14 +599,10 @@ 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") + application_form = fields.Many2many('ir.attachment','cars_application_form_rel', 'cars_id','attachment_id',string="Application Form") + driving_license = fields.Many2many('ir.attachment','cars_driving_license_rel','cars_id','attachment_id',string="Driving License") + owner_identity = fields.Many2many('ir.attachment','cars_owner_identity_rel','cars_id', 'attachment_id',string="Owner Identity") - 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") 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 @@ - - - - - - + + +