IMP benefit
This commit is contained in:
parent
2c603d381c
commit
bd3751a98e
|
|
@ -56,7 +56,7 @@ class GrantBenefitProfile(models.Model):
|
|||
complete_registration_step = fields.Char(string="Complete Registration Step")
|
||||
complete_registration_done = fields.Boolean('Does Complete Registration Done ?')
|
||||
partner_id = fields.Many2one('res.partner', string='partner', required=True, ondelete="cascade")
|
||||
code = fields.Char(string="Code", copy=False, readonly=True, default=lambda x: _('New'))
|
||||
code = fields.Char(string="Code", copy=False, default=lambda x: _('New'))
|
||||
benefit_type = fields.Selection([('benefit', 'benefit'), ('orphan', 'orphan'), ('widow', 'widow')
|
||||
], string='Benefit Type', tracking=True)
|
||||
mother_status = fields.Selection(string='Mother Status', related="mother_family_member_id.member_status")
|
||||
|
|
@ -103,6 +103,7 @@ class GrantBenefitProfile(models.Model):
|
|||
password = fields.Char('Password')
|
||||
# Category And Family
|
||||
benefit_category_id = fields.Many2one('benefit.category', string='Benefit Category', compute="get_benefit_category",store=True)
|
||||
benefit_category_old = fields.Many2one('benefit.category', string='Benefit Category')
|
||||
family_id = fields.Many2one('benefit.family', string='Benefit Family')
|
||||
# address
|
||||
housing_id = fields.Many2one('benefit.housing', string='Benefit Housing')
|
||||
|
|
|
|||
|
|
@ -279,7 +279,7 @@
|
|||
attrs="{'invisible': [('action_type', '!=', 'exception')]}"/>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="code" class="oe_inline"/>
|
||||
<field name="code" readonly="1" class="oe_inline"/>
|
||||
-
|
||||
<field placeholder="Name" name="name" class="oe_inline" readonly="1"
|
||||
force_save="1"/>
|
||||
|
|
@ -318,6 +318,7 @@
|
|||
<field name="member_income" widget="monetary"
|
||||
options="{'currency_field': 'currency_id'}" readonly="1" force_save="1"/>
|
||||
<field name="benefit_category_id" readonly="1" force_save="1"/>
|
||||
<field name="benefit_category_old"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field name="currency_id" groups="base.group_multi_currency"/>
|
||||
<field name="mother_family_member_id" invisible="1" readonly="1"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue