benefit customization
This commit is contained in:
parent
1f354f24ef
commit
bca56e7a04
|
|
@ -1555,6 +1555,8 @@ class GrantBenefitProfile(models.Model):
|
|||
#Update data automatically daily
|
||||
def update_data_automatically(self):
|
||||
obj = self.env["grant.benefit"].search([])
|
||||
for family in obj:
|
||||
family.get_benefit_category()
|
||||
for member in obj.member_ids:
|
||||
member._compute_get_age_date()
|
||||
member.check_member_status()
|
||||
|
|
|
|||
|
|
@ -689,119 +689,119 @@
|
|||
<!-- <field name="commercial_record_amount"/>-->
|
||||
<!-- </group>-->
|
||||
</page>
|
||||
<page string="Craft Skills" attrs="{'invisible': [('is_craft', '=', False)]}">
|
||||
<group>
|
||||
<field name="craft_skill_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="benefit_id" invisible="1"/>
|
||||
<field name="name"/>
|
||||
<field name="is_invested"/>
|
||||
<field name="skill_rating"/>
|
||||
<field name="is_development"/>
|
||||
<field name="is_capital"/>
|
||||
<field name="is_work_place"/>
|
||||
<field name="work_history"/>
|
||||
<field name="achievements"/>
|
||||
<field name="certificates"/>
|
||||
</tree>
|
||||
</field>
|
||||
<field name="training_inclinations_ids">
|
||||
<tree editable="bottom">
|
||||
<field name="benefit_id" invisible="1"/>
|
||||
<field name="name"/>
|
||||
<!-- <field name="training_type"/>-->
|
||||
<field name="is_invested"/>
|
||||
<field name="training_rating"/>
|
||||
<field name="is_development"/>
|
||||
<field name="is_capital"/>
|
||||
<field name="training_history"/>
|
||||
<field name="book_history"/>
|
||||
<field name="steps"/>
|
||||
<field name="training_future"/>
|
||||
<field name="training_site"/>
|
||||
<field name="training_records"/>
|
||||
<field name="achievements"/>
|
||||
<field name="certificates"/>
|
||||
<!-- <page string="Craft Skills" attrs="{'invisible': [('is_craft', '=', False)]}">-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="craft_skill_ids">-->
|
||||
<!-- <tree editable="bottom">-->
|
||||
<!-- <field name="benefit_id" invisible="1"/>-->
|
||||
<!-- <field name="name"/>-->
|
||||
<!-- <field name="is_invested"/>-->
|
||||
<!-- <field name="skill_rating"/>-->
|
||||
<!-- <field name="is_development"/>-->
|
||||
<!-- <field name="is_capital"/>-->
|
||||
<!-- <field name="is_work_place"/>-->
|
||||
<!-- <field name="work_history"/>-->
|
||||
<!-- <field name="achievements"/>-->
|
||||
<!-- <field name="certificates"/>-->
|
||||
<!-- </tree>-->
|
||||
<!-- </field>-->
|
||||
<!-- <field name="training_inclinations_ids">-->
|
||||
<!-- <tree editable="bottom">-->
|
||||
<!-- <field name="benefit_id" invisible="1"/>-->
|
||||
<!-- <field name="name"/>-->
|
||||
<!-- <!– <field name="training_type"/>–>-->
|
||||
<!-- <field name="is_invested"/>-->
|
||||
<!-- <field name="training_rating"/>-->
|
||||
<!-- <field name="is_development"/>-->
|
||||
<!-- <field name="is_capital"/>-->
|
||||
<!-- <field name="training_history"/>-->
|
||||
<!-- <field name="book_history"/>-->
|
||||
<!-- <field name="steps"/>-->
|
||||
<!-- <field name="training_future"/>-->
|
||||
<!-- <field name="training_site"/>-->
|
||||
<!-- <field name="training_records"/>-->
|
||||
<!-- <field name="achievements"/>-->
|
||||
<!-- <field name="certificates"/>-->
|
||||
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="health information" attrs="{'invisible': [('state','=','draft')]}">
|
||||
<group>
|
||||
<group>
|
||||
<field name="health_status" invisible="1"/>
|
||||
<!-- <field name="hospital_id"/>-->
|
||||
<!-- <field name="hospital_attach"/>-->
|
||||
<!-- <field name="is_smoke" widget="boolean_toggle"/>-->
|
||||
<field name="is_diseases" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<!--disability-->
|
||||
<field name="is_disability" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="is_insurance" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<!--hospital-->
|
||||
<field name="hospital_id" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="hospital_card" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
</group>
|
||||
<!--Weight rate-->
|
||||
<group string="Weight">
|
||||
<field name="weight" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="height" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="p_weight" force_save="1"/>
|
||||
</group>
|
||||
<group string="Diseases">
|
||||
<!-- !--diseases–>-->
|
||||
<field name="diseases_type"
|
||||
attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="treatment_used"
|
||||
attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="treatment_amount"
|
||||
attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="is_treatment_amount_country"
|
||||
attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="treatment_amount_country_Monthly"
|
||||
attrs="{'invisible': [('is_treatment_amount_country', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="treatment_amount_country_description"
|
||||
attrs="{'invisible': [('is_treatment_amount_country', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="treatment_amount_country_attach"
|
||||
attrs="{'invisible': [('is_treatment_amount_country', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
</group>
|
||||
<group string="disability">
|
||||
<field name="disability_type"
|
||||
attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="disability_accessories"
|
||||
attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="disability_attach"
|
||||
attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
<field name="disability_amount"
|
||||
attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Medical Insurance" attrs="{'invisible': [('is_insurance', '=', False)]}">
|
||||
<group>
|
||||
<field name="insurance_type" attrs="{'invisible': [('is_insurance', '=', False)]}"/>
|
||||
<field name="insurance_company"
|
||||
attrs="{'invisible': [('is_insurance', '=', False)]}"/>
|
||||
<field name="insurance_amount"
|
||||
attrs="{'invisible': [('is_insurance', '=', False)]}"/>
|
||||
<field name="insurance_attach"
|
||||
attrs="{'invisible': [('is_insurance', '=', False)]}"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Sports" attrs="{'invisible': [('is_sport', '=', False)]}">
|
||||
<group>
|
||||
<field name="sport_ids" attrs="{'invisible': [('is_sport', '=', False)]}">
|
||||
<tree editable="top">
|
||||
<field name="benefit_id" invisible="1"/>
|
||||
<field name="sport_type"/>
|
||||
<field name="sport_time"/>
|
||||
<field name="sport_club"/>
|
||||
<field name="sport_amount"/>
|
||||
<field name="sport_clothing"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<!-- </tree>-->
|
||||
<!-- </field>-->
|
||||
<!-- </group>-->
|
||||
<!-- </page>-->
|
||||
<!-- <page string="health information" attrs="{'invisible': [('state','=','draft')]}">-->
|
||||
<!-- <group>-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="health_status" invisible="1"/>-->
|
||||
<!-- <!– <field name="hospital_id"/>–>-->
|
||||
<!-- <!– <field name="hospital_attach"/>–>-->
|
||||
<!-- <!– <field name="is_smoke" widget="boolean_toggle"/>–>-->
|
||||
<!-- <field name="is_diseases" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <!–disability–>-->
|
||||
<!-- <field name="is_disability" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="is_insurance" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <!–hospital–>-->
|
||||
<!-- <field name="hospital_id" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="hospital_card" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- <!–Weight rate–>-->
|
||||
<!-- <group string="Weight">-->
|
||||
<!-- <field name="weight" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="height" attrs="{'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="p_weight" force_save="1"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- <group string="Diseases">-->
|
||||
<!-- <!– !--diseases–>–>-->
|
||||
<!-- <field name="diseases_type"-->
|
||||
<!-- attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="treatment_used"-->
|
||||
<!-- attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="treatment_amount"-->
|
||||
<!-- attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="is_treatment_amount_country"-->
|
||||
<!-- attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="treatment_amount_country_Monthly"-->
|
||||
<!-- attrs="{'invisible': [('is_treatment_amount_country', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="treatment_amount_country_description"-->
|
||||
<!-- attrs="{'invisible': [('is_treatment_amount_country', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="treatment_amount_country_attach"-->
|
||||
<!-- attrs="{'invisible': [('is_treatment_amount_country', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- <group string="disability">-->
|
||||
<!-- <field name="disability_type"-->
|
||||
<!-- attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="disability_accessories"-->
|
||||
<!-- attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="disability_attach"-->
|
||||
<!-- attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- <field name="disability_amount"-->
|
||||
<!-- attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info','edit_info'])]}"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- </group>-->
|
||||
<!-- </page>-->
|
||||
<!-- <page string="Medical Insurance" attrs="{'invisible': [('is_insurance', '=', False)]}">-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="insurance_type" attrs="{'invisible': [('is_insurance', '=', False)]}"/>-->
|
||||
<!-- <field name="insurance_company"-->
|
||||
<!-- attrs="{'invisible': [('is_insurance', '=', False)]}"/>-->
|
||||
<!-- <field name="insurance_amount"-->
|
||||
<!-- attrs="{'invisible': [('is_insurance', '=', False)]}"/>-->
|
||||
<!-- <field name="insurance_attach"-->
|
||||
<!-- attrs="{'invisible': [('is_insurance', '=', False)]}"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- </page>-->
|
||||
<!-- <page string="Sports" attrs="{'invisible': [('is_sport', '=', False)]}">-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="sport_ids" attrs="{'invisible': [('is_sport', '=', False)]}">-->
|
||||
<!-- <tree editable="top">-->
|
||||
<!-- <field name="benefit_id" invisible="1"/>-->
|
||||
<!-- <field name="sport_type"/>-->
|
||||
<!-- <field name="sport_time"/>-->
|
||||
<!-- <field name="sport_club"/>-->
|
||||
<!-- <field name="sport_amount"/>-->
|
||||
<!-- <field name="sport_clothing"/>-->
|
||||
<!-- </tree>-->
|
||||
<!-- </field>-->
|
||||
<!-- </group>-->
|
||||
<!-- </page>-->
|
||||
<!-- <page string="other" attrs="{'invisible': [('state','=','draft')]}">-->
|
||||
<!-- <group string="alhaju , amra and zakat fitr">-->
|
||||
<!-- <field name="is_alhaju"/>-->
|
||||
|
|
@ -841,27 +841,27 @@
|
|||
</group>
|
||||
</page>
|
||||
<page string="Configuration">
|
||||
<group col="4">
|
||||
<field name="is_life" attrs="{'invisible':[('is_life','!=',False)]}"/>
|
||||
<field name="is_sport" widget="boolean_toggle"/>
|
||||
<field name="is_craft" widget="boolean_toggle"/>
|
||||
<field name="is_food_surplus" widget="boolean_toggle"/>
|
||||
<field name="is_loans" widget="boolean_toggle"/>
|
||||
<field name="is_al_al_bayt" widget="boolean_toggle"/>
|
||||
<field name="is_other_associations" widget="boolean_toggle"/>
|
||||
<!-- <field name="family_name"/>-->
|
||||
<field name="food_surplus_type" options="{'color_field': 'color'}"
|
||||
attrs="{'invisible':[('is_food_surplus','=',False)]}"
|
||||
widget="many2many_tags"/>
|
||||
</group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="is_widows" widget="boolean_toggle"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="is_divorcee" widget="boolean_toggle"/>
|
||||
</group>
|
||||
</group>
|
||||
<!-- <group col="4">-->
|
||||
<!-- <field name="is_life" attrs="{'invisible':[('is_life','!=',False)]}"/>-->
|
||||
<!-- <field name="is_sport" widget="boolean_toggle"/>-->
|
||||
<!-- <field name="is_craft" widget="boolean_toggle"/>-->
|
||||
<!-- <field name="is_food_surplus" widget="boolean_toggle"/>-->
|
||||
<!-- <field name="is_loans" widget="boolean_toggle"/>-->
|
||||
<!-- <field name="is_al_al_bayt" widget="boolean_toggle"/>-->
|
||||
<!-- <field name="is_other_associations" widget="boolean_toggle"/>-->
|
||||
<!-- <!– <field name="family_name"/>–>-->
|
||||
<!-- <field name="food_surplus_type" options="{'color_field': 'color'}"-->
|
||||
<!-- attrs="{'invisible':[('is_food_surplus','=',False)]}"-->
|
||||
<!-- widget="many2many_tags"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- <group>-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="is_widows" widget="boolean_toggle"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="is_divorcee" widget="boolean_toggle"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- </group>-->
|
||||
<group>
|
||||
<field name="partner_id" readonly="1" required="0" force_save="1" string="Partner"/>
|
||||
<field name="user_id" readonly="1" force_save="1"/>
|
||||
|
|
@ -903,6 +903,7 @@
|
|||
<tree string=" Benefit">
|
||||
<field name="name"/>
|
||||
<field name="code"/>
|
||||
<field name="benefit_category_id"/>
|
||||
<field name="meal_card"/>
|
||||
<field name="request_producer"/>
|
||||
<field name="father_id_number"/>
|
||||
|
|
|
|||
|
|
@ -13,45 +13,45 @@
|
|||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<record id="takaful_grant_benefit_form" model="ir.ui.view">
|
||||
<field name="name">takaful.grant.benefit.form</field>
|
||||
<field name="model">grant.benefit</field>
|
||||
<field name="inherit_id" ref="odex_benefit.grant_benefit_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="/form/sheet/notebook/page[9]" position="before">
|
||||
<page string="Sponsorships">
|
||||
<group name="sponsorship_needs_info">
|
||||
<field name="is_active_sponsorship" />
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="benefit_needs_value" />
|
||||
<field name="benefit_needs_percent" />
|
||||
<field name="benefit_arrears_value" />
|
||||
</group>
|
||||
<group>
|
||||
<field name="has_kafala_delay" />
|
||||
<field name="overdue_kafalat_amount" />
|
||||
<field name="sponsorship_ids" />
|
||||
</group>
|
||||
<!-- <page string="Sponsorships" name="sponsorships_info_page">-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="sponsorship_payment_ids">-->
|
||||
<!-- <tree editable="bottom">-->
|
||||
<!-- <field name="benefit_id" invisible="1"/>-->
|
||||
<!-- <field name="partner_id"/>-->
|
||||
<!-- <field name="operation_code"/>-->
|
||||
<!-- <field name="due_date"/>-->
|
||||
<!-- <field name="amount"/>-->
|
||||
<!-- <field name="status"/>-->
|
||||
<!-- <field name="recieve_date"/>-->
|
||||
<!-- </tree>-->
|
||||
<!-- </field>-->
|
||||
<!-- </group>-->
|
||||
<!-- </page>-->
|
||||
</page>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
<!-- <record id="takaful_grant_benefit_form" model="ir.ui.view">-->
|
||||
<!-- <field name="name">takaful.grant.benefit.form</field>-->
|
||||
<!-- <field name="model">grant.benefit</field>-->
|
||||
<!-- <field name="inherit_id" ref="odex_benefit.grant_benefit_form" />-->
|
||||
<!-- <field name="arch" type="xml">-->
|
||||
<!-- <xpath expr="/form/sheet/notebook/page[9]" position="before">-->
|
||||
<!-- <page string="Sponsorships">-->
|
||||
<!-- <group name="sponsorship_needs_info">-->
|
||||
<!-- <field name="is_active_sponsorship" />-->
|
||||
<!-- </group>-->
|
||||
<!-- <group col="4">-->
|
||||
<!-- <field name="benefit_needs_value" />-->
|
||||
<!-- <field name="benefit_needs_percent" />-->
|
||||
<!-- <field name="benefit_arrears_value" />-->
|
||||
<!-- </group>-->
|
||||
<!-- <group>-->
|
||||
<!-- <field name="has_kafala_delay" />-->
|
||||
<!-- <field name="overdue_kafalat_amount" />-->
|
||||
<!-- <field name="sponsorship_ids" />-->
|
||||
<!-- </group>-->
|
||||
<!-- <!– <page string="Sponsorships" name="sponsorships_info_page">–>-->
|
||||
<!-- <!– <group>–>-->
|
||||
<!-- <!– <field name="sponsorship_payment_ids">–>-->
|
||||
<!-- <!– <tree editable="bottom">–>-->
|
||||
<!-- <!– <field name="benefit_id" invisible="1"/>–>-->
|
||||
<!-- <!– <field name="partner_id"/>–>-->
|
||||
<!-- <!– <field name="operation_code"/>–>-->
|
||||
<!-- <!– <field name="due_date"/>–>-->
|
||||
<!-- <!– <field name="amount"/>–>-->
|
||||
<!-- <!– <field name="status"/>–>-->
|
||||
<!-- <!– <field name="recieve_date"/>–>-->
|
||||
<!-- <!– </tree>–>-->
|
||||
<!-- <!– </field>–>-->
|
||||
<!-- <!– </group>–>-->
|
||||
<!-- <!– </page>–>-->
|
||||
<!-- </page>-->
|
||||
<!-- </xpath>-->
|
||||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<!-- New Added -->
|
||||
<!-- Beneficiaries Invoice Form View -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue