Merge pull request #4541 from expsa/kchetyounes_dev_odex25_ensan

IMP benefit
This commit is contained in:
kchyounes19 2025-09-02 19:48:16 +01:00 committed by GitHub
commit 546fa08f04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 16 deletions

View File

@ -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 "هوية المالك"

View File

@ -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):

View File

@ -1232,12 +1232,9 @@
<field name="name"/>
<field name="car_model" options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
<field name="status"/>
<field name="application_form" widget="binary" filename="application_form_filename"/>
<field name="application_form_filename" invisible="1"/>
<field name="driving_license" widget="binary" filename="driving_license_filename"/>
<field name="driving_license_filename" invisible="1"/>
<field name="owner_identity" widget="binary" filename="owner_identity_filename"/>
<field name="owner_identity_filename" invisible="1"/>
<field name="application_form" widget="many2many_attachment_preview"/>
<field name="driving_license" widget="many2many_attachment_preview"/>
<field name="owner_identity" widget="many2many_attachment_preview"/>
</tree>
</field>
</page>