Merge pull request #4568 from expsa/test_dev_odex25_ensan

IMP benefit
This commit is contained in:
kchyounes19 2025-09-04 08:49:31 +01:00 committed by GitHub
commit 1849c8f588
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View File

@ -244,8 +244,8 @@ class GrantBenefitProfile(models.Model):
date_divorcee = fields.Date()
# Education_data
mother_education_status_ids = fields.One2many('education.status', 'mother_grant_benefit_id')
mother_diseases_attachment_ids = fields.One2many('ir.attachment', 'mother_grant_benefit_id', string='Diseases Attachments',domain=[('diseases_id', '!=', False)])
mother_disabilities_attachment_ids = fields.One2many('ir.attachment', 'mother_grant_benefit_id', string='Disabilities Attachments',domain=[('disabilities_id', '!=', False)])
mother_diseases_attachment_ids = fields.One2many('ir.attachment', 'benefit_id', string='Diseases Attachments',domain=[('diseases_id', '!=', False)])
mother_disabilities_attachment_ids = fields.One2many('ir.attachment', 'benefit_id', string='Disabilities Attachments',domain=[('disabilities_id', '!=', False)])
education_status = fields.Selection(string='Education Status',selection=[('educated', 'educated'), ('illiterate', 'illiterate'),('under_study_age','Under Study Age')])
case_study = fields.Selection(string='Case Study',
selection=[('continuous', 'continuous'), ('intermittent', 'intermittent'),

View File

@ -22,7 +22,7 @@ class BenefitAttachment(models.Model):
# fields to management required and delete records in benefit attachment
is_required = fields.Boolean(string='Is Required?')
is_default = fields.Boolean(string='Is Default?')
mother_grant_benefit_id = fields.Many2one('grant.benefit', string='Mother Grant Benefit')
# mother_grant_benefit_id = fields.Many2one('grant.benefit', string='Mother Grant Benefit')
show_in_portal = fields.Boolean(default=True)
def action_preview_attachment(self):

View File

@ -516,7 +516,7 @@
<field name="datas" string="File content"/>
<field name="expiration_date"/>
<field name="attach_status"/>
<field name="mother_grant_benefit_id" invisible="1"/>
<!-- <field name="mother_grant_benefit_id" invisible="1"/>-->
<field name="member_id" invisible="1"/>
</tree>
</field>
@ -529,7 +529,7 @@
<field name="datas" string="File content"/>
<field name="expiration_date"/>
<field name="attach_status"/>
<field name="mother_grant_benefit_id" invisible="1"/>
<!-- <field name="mother_grant_benefit_id" invisible="1"/>-->
<field name="member_id" invisible="1"/>
</tree>
</field>

View File

@ -13,7 +13,7 @@
<field name="allow_days" invisible="1"/>
<field name="is_required" invisible="1"/>
<field name="is_default" invisible="1"/>
<field name="mother_grant_benefit_id" invisible="1"/>
<!-- <field name="mother_grant_benefit_id" invisible="1"/>-->
</xpath>
</field>
</record>