Merge pull request #5216 from expsa/family_member

Family member
This commit is contained in:
NossibaElhadi 2025-11-04 17:25:56 +03:00 committed by GitHub
commit 92224867f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -251,7 +251,9 @@ class FamilyMemberProfile(models.Model):
default='auto')
is_member_workflow = fields.Boolean('Is Member Workflow?')
# sponsor_id = fields.Many2one('res.partner', string='Sponsor Partner',domain="[('account_type','=','sponsor')]")
sponsor_id = fields.Many2one('res.partner', string='Sponsor Partner', domain="[('is_sponsor_portal', '=', True)]")
sponsor_related_id = fields.Many2one('res.partner', string='Sponsor')
sponsorship_id = fields.Many2one('takaful.sponsorship', string='Sponsorship')
required_attach = fields.Selection(selection=[('true', 'True'), ('false', 'False')], compute='get_required_attach',
store=True, string='Member Required Attach')
# Exception fields

View File

@ -7,6 +7,7 @@
<field name="arch" type="xml">
<xpath expr="//field[@name='invoice_origin']" position="attributes">
<attribute name="attrs">{'invisible': False}</attribute>
</xpath>