2385 lines
195 KiB
XML
2385 lines
195 KiB
XML
<odoo>
|
|
<data>
|
|
<record id="grant_google_map" model="ir.ui.view">
|
|
<field name="name">view.grant.benefit.google_map</field>
|
|
<field name="model">grant.benefit</field>
|
|
<field name="arch" type="xml">
|
|
<google_map string="Maps" lat="lat" lng="lon" color="color">
|
|
<field name="lat"/>
|
|
<field name="lon"/>
|
|
<field name="partner_id"/>
|
|
<field name="user_id"/>
|
|
<progressbar field="activity_state"
|
|
colors='{"planned": "success", "today": "warning", "overdue": "danger"}'/>
|
|
<templates>
|
|
<t t-name="kanban-box">
|
|
<div t-attf-class="oe_kanban_content">
|
|
<div>
|
|
<strong class="o_kanban_record_title">
|
|
<span>
|
|
<field name="name"/>
|
|
</span>
|
|
</strong>
|
|
</div>
|
|
<div>
|
|
<span class="o_kanban_record_subtitle">
|
|
<field name="partner_id"/>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
</google_map>
|
|
</field>
|
|
</record>
|
|
<record id="grant_map" model="ir.actions.act_window">
|
|
<field name="name">Google Map</field>
|
|
<field name="res_model">grant.benefit</field>
|
|
<field name="view_mode">google_map</field>
|
|
<field name="view_id" ref="odex_benefit.grant_google_map"/>
|
|
<field name="domain">[('id', '=', active_id)]</field>
|
|
</record>
|
|
<record id="grant_benefit_kanban" model="ir.ui.view">
|
|
<field name="name">grant.benefit.kanban</field>
|
|
<field name="model">grant.benefit</field>
|
|
<field name="arch" type="xml">
|
|
<kanban create="0" class="o_kanban_benefit_families">
|
|
<field name="name"/>
|
|
<field name="action_type"/>
|
|
<field name="state"/>
|
|
<field name="code"/>
|
|
<field name="benefit_category_id"/>
|
|
<field name="father_name"/>
|
|
<field name="father_family_name"/>
|
|
<field name="mother_name"/>
|
|
<field name="mother_family_name"/>
|
|
<field name="benefit_member_count"/>
|
|
<field name="member_income"/>
|
|
<field name="researcher_id"/>
|
|
<field name="branch_custom_id"/>
|
|
<field name="last_visit_date"/>
|
|
<field name="currency_id"/>
|
|
<field name="property_type_id"/>
|
|
<field name="total_service_requests"/>
|
|
<field name="city_id"/>
|
|
<field name="non_member_count"/>
|
|
<field name="create_date"/>
|
|
<field name="district_id"/>
|
|
<field name="mobile"/>
|
|
|
|
<templates>
|
|
<t t-name="kanban-box">
|
|
<div t-attf-class="oe_kanban_global_click #{record.benefit_category_id.value == 'غير مستفيدة' ? 'inactive_family_card' : ''}"
|
|
t-attf-style="background: linear-gradient(135deg, #{record.benefit_category_id.value == 'غير مستفيدة' ? '#fff5f5' : '#ffffff'} 0%, #{record.benefit_category_id.value == 'غير مستفيدة' ? '#ffe0e0' : '#f8f9fa'} 100%); border: 1px solid #{record.benefit_category_id.value == 'غير مستفيدة' ? '#dc3545' : '#dee2e6'}; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); transition: all 0.3s ease; margin-bottom: 15px; overflow: hidden; position: relative; min-height: 380px; opacity: #{record.benefit_category_id.value == 'غير مستفيدة' ? '0.85' : '1'};">
|
|
<div style="background: linear-gradient(135deg, #05887e 0%, #036d64 100%); color: white; padding: 8px 10px 90px 10px; font-weight: 700; position: relative;">
|
|
<div style="position: absolute; top: 8px; right: 10px; background: rgba(255,255,255,0.95); color: #198754; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 800; box-shadow: 0 2px 4px rgba(0,0,0,0.1); z-index: 1;">
|
|
<field name="code"/>
|
|
</div>
|
|
|
|
<t t-if="record.benefit_category_id.raw_value">
|
|
<div style="position: absolute; top: 8px; left: 10px; background: rgba(255,255,255,0.95); padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 800; box-shadow: 0 2px 4px rgba(0,0,0,0.1); z-index: 1;">
|
|
<i t-attf-class="fa #{record.benefit_category_id.value == 'غير مستفيدة' ? 'fa-times-circle' : 'fa-check-circle'}"
|
|
t-attf-style="color: #{record.benefit_category_id.value == 'غير مستفيدة' ? '#dc3545' : '#198754'}; margin-left: 4px; font-size: 13px;"/>
|
|
<span t-attf-style="color: #{record.benefit_category_id.value == 'غير مستفيدة' ? '#dc3545' : '#198754'};">
|
|
<field name="benefit_category_id"/>
|
|
</span>
|
|
</div>
|
|
</t>
|
|
|
|
<div style="position: absolute; top: 43px; right: 10px; left: 10px; display: flex; justify-content: space-between; align-items: center; z-index: 1;">
|
|
<div style="font-size: 10px; opacity: 0.85; text-align: right;">
|
|
<span style="display: inline-block;">الفرع:</span>
|
|
<span style="margin-right: 4px;">
|
|
<t t-if="record.branch_custom_id.raw_value">
|
|
<field name="branch_custom_id"/>
|
|
</t>
|
|
<t t-else="">
|
|
--
|
|
</t>
|
|
</span>
|
|
</div>
|
|
|
|
<div>
|
|
<field name="state" widget="badge"
|
|
decoration-success="state in ['first_approve', 'second_approve']"
|
|
decoration-muted="state in ['draft','new']"
|
|
decoration-danger="state in ['refused','suspended_second_approve','black_list']"
|
|
decoration-warning="state in ['first_refusal','waiting_approve']"
|
|
decoration-info="state in ['complete_info']"/>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="position: absolute; top: 68px; right: 10px; left: 10px; display: flex; justify-content: space-between; align-items: center; z-index: 1;">
|
|
<div style="font-size: 10px; opacity: 0.85; text-align: right;">
|
|
<span style="display: inline-block;">تاريخ التسجيل:</span>
|
|
<span style="margin-right: 4px;">
|
|
<field name="create_date" widget="date"/>
|
|
</span>
|
|
</div>
|
|
|
|
<div>
|
|
<field name="action_type" widget="badge"
|
|
decoration-muted="action_type in ['new']"
|
|
decoration-info="action_type in ['edit_info']"
|
|
decoration-success="action_type in ['approved']"
|
|
decoration-danger="action_type in ['suspended']"
|
|
decoration-warning="action_type in ['exception']"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="padding: 10px; background: white;">
|
|
|
|
<div style="margin-bottom: 14px;">
|
|
<div style="display: flex; margin-bottom: 8px;">
|
|
<div style="flex: 1; margin-left: 8px;">
|
|
<div style="display: flex; align-items: center; margin-bottom: 4px;">
|
|
<i class="fa fa-male"
|
|
style="color: #198754; margin-left: 4px; font-size: 14px;"/>
|
|
<span style="color: #495057; font-size: 12px; font-weight: 700;">
|
|
الأب:
|
|
</span>
|
|
</div>
|
|
<div style="font-weight: 600; font-size: 13px; color: #212529; line-height: 1.2; max-height: 30px; overflow: hidden;">
|
|
<t t-if="record.father_name.raw_value">
|
|
<t t-if="record.father_name.raw_value.length > 15">
|
|
<span t-esc="record.father_name.raw_value.substring(0, 15) + '...'"
|
|
style="display: block;"/>
|
|
</t>
|
|
<t t-else="">
|
|
<field name="father_name"/>
|
|
</t>
|
|
<span style="font-size: 12px; color: #6c757d;">
|
|
<t t-if="record.father_family_name.raw_value">
|
|
<field name="father_family_name"/>
|
|
</t>
|
|
</span>
|
|
</t>
|
|
<t t-else="">
|
|
<span style="color: #6c757d; font-size: 13px;">--</span>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
<div style="flex: 1;">
|
|
<div style="display: flex; align-items: center; margin-bottom: 4px;">
|
|
<i class="fa fa-female"
|
|
style="color: #e91e63; margin-left: 4px; font-size: 14px;"/>
|
|
<span style="color: #495057; font-size: 12px; font-weight: 700;">
|
|
الأم:
|
|
</span>
|
|
</div>
|
|
<div style="font-weight: 600; font-size: 13px; color: #212529; line-height: 1.2; max-height: 30px; overflow: hidden;">
|
|
<t t-if="record.mother_name.raw_value">
|
|
<t t-if="record.mother_name.raw_value.length > 15">
|
|
<span t-esc="record.mother_name.raw_value.substring(0, 15) + '...'"
|
|
style="display: block;"/>
|
|
</t>
|
|
<t t-else="">
|
|
<field name="mother_name"/>
|
|
</t>
|
|
<span style="font-size: 12px; color: #6c757d;">
|
|
<t t-if="record.mother_family_name.raw_value">
|
|
<field name="mother_family_name"/>
|
|
</t>
|
|
</span>
|
|
</t>
|
|
<t t-else="">
|
|
<span style="color: #6c757d; font-size: 13px;">--</span>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="display: flex; margin-bottom: 10px; gap: 8px;">
|
|
<a name="action_view_benefit_members" type="object"
|
|
style="flex: 1; text-align: center; padding: 5px 6px; background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%); border-radius: 8px; border: 2px solid #689f38; display: block; text-decoration: none; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(104,159,56,0.2);"
|
|
onmouseover="this.style.transform='translateY(-2px)'; this.style.boxShadow='0 4px 8px rgba(245,124,0,0.3)'; this.style.background='linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%)'"
|
|
onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 2px 4px rgba(104,159,56,0.2)'; this.style.background='linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%)'">
|
|
<i class="fa fa-users"
|
|
style="color: #198754; font-size: 16px; margin-bottom: 6px; display: block;"/>
|
|
<div style="font-size: 11px; color: #198754; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; line-height: 1.1;">
|
|
<div>أفراد</div>
|
|
<div>مستفيدة</div>
|
|
</div>
|
|
<div style="font-weight: 800; font-size: 14px; color: #198754;">
|
|
<t t-if="(record.benefit_member_count.raw_value || 0) > 0 or (record.non_member_count.raw_value || 0) > 0">
|
|
<span style="color: #198754; font-weight: 900; text-decoration: underline;">
|
|
<t t-esc="(record.benefit_member_count.raw_value || 0)"/>
|
|
</span>
|
|
من
|
|
<t t-esc="(record.benefit_member_count.raw_value || 0) + (record.non_member_count.raw_value || 0)"/>
|
|
</t>
|
|
<t t-else="">
|
|
--
|
|
</t>
|
|
</div>
|
|
</a>
|
|
|
|
<a name="action_open_visit_location" type="object"
|
|
style="flex: 1; text-align: center; padding: 5px 6px; background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%); border-radius: 8px; border: 2px solid #455A64; display: block; text-decoration: none; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(69,90,100,0.2);"
|
|
onmouseover="this.style.transform='translateY(-2px)'; this.style.boxShadow='0 4px 8px rgba(69,90,100,0.3)'; this.style.background='linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%)'"
|
|
onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 2px 4px rgba(69,90,100,0.2)'; this.style.background='linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%)'">
|
|
<i class="fa fa-home"
|
|
style="color: #455A64; font-size: 16px; margin-bottom: 6px; display: block;"/>
|
|
<div style="font-size: 11px; color: #455A64; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; line-height: 1.1;">
|
|
<div>عدد</div>
|
|
<div>الزيارات</div>
|
|
</div>
|
|
<div style="font-weight: 800; font-size: 14px; color: #455A64;">
|
|
<t t-if="record.visit_location_count.raw_value and record.visit_location_count.raw_value > 0">
|
|
<field name="visit_location_count"/>
|
|
</t>
|
|
<t t-else="">
|
|
--
|
|
</t>
|
|
</div>
|
|
</a>
|
|
|
|
<a name="action_open_related_service_requests" type="object"
|
|
style="flex: 1; text-align: center; padding: 5px 6px; background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); border-radius: 8px; border: 2px solid #6b7280; display: block; text-decoration: none; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(245,124,0,0.2);"
|
|
onmouseover="this.style.transform='translateY(-2px)'; this.style.boxShadow='0 4px 8px rgba(245,124,0,0.3)'; this.style.background='linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%)'"
|
|
onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 2px 4px rgba(245,124,0,0.2)'; this.style.background='linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%)'">
|
|
<i class="fa fa-file-text"
|
|
style="color: #f57c00; font-size: 16px; margin-bottom: 6px; display: block;"/>
|
|
<div style="font-size: 11px; color: #f57c00; font-weight: 700; text-transform: uppercase; margin-bottom: 4px; line-height: 1.1;">
|
|
<div>طلبات</div>
|
|
<div>الخدمة</div>
|
|
</div>
|
|
<div style="font-weight: 800; font-size: 14px; color: #f57c00;">
|
|
<t t-if="record.total_service_requests.raw_value and record.total_service_requests.raw_value > 0">
|
|
<field name="total_service_requests"/>
|
|
</t>
|
|
<t t-else="">
|
|
--
|
|
</t>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
|
|
<div style="margin-bottom: 4px;">
|
|
<div style="display: flex; justify-content: space-between; margin-bottom: 6px;">
|
|
<div style="display: flex; align-items: center; font-size: 12px;">
|
|
<i class="fa fa-map-marker"
|
|
style="color: #dc3545; margin-left: 4px; font-size: 12px;"/>
|
|
<span style="font-weight: 600; color: #495057;">المدينة:</span>
|
|
<span style="color: #212529; margin-right: 6px; font-weight: 500;">
|
|
<t t-if="record.city_id.raw_value">
|
|
<field name="city_id"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span style="color: #6c757d;">--</span>
|
|
</t>
|
|
</span>
|
|
</div>
|
|
<div style="display: flex; align-items: center; font-size: 12px;">
|
|
<i class="fa fa-location-arrow"
|
|
style="color: #6f42c1; margin-left: 4px; font-size: 12px;"/>
|
|
<span style="font-weight: 600; color: #495057;">الحي:</span>
|
|
<span style="color: #212529; margin-right: 6px; font-weight: 500;">
|
|
<t t-if="record.district_id.raw_value">
|
|
<field name="district_id"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span style="color: #6c757d;">--</span>
|
|
</t>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="display: flex; justify-content: space-between; margin-bottom: 6px;">
|
|
<div style="display: flex; align-items: center; font-size: 12px;">
|
|
<i class="fa fa-phone"
|
|
style="color: #17a2b8; margin-left: 4px; font-size: 12px;"/>
|
|
<span style="font-weight: 600; color: #495057;">جوال:</span>
|
|
<span style="color: #212529; margin-right: 6px; font-weight: 500;">
|
|
<t t-if="record.mobile.raw_value and record.mobile.raw_value.substr(0,3) === '966'">
|
|
0
|
|
<t t-esc="record.mobile.raw_value.substr(3)"/>
|
|
</t>
|
|
<t t-elif="record.mobile.raw_value">
|
|
<field name="mobile"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span style="color: #6c757d;">--</span>
|
|
</t>
|
|
</span>
|
|
</div>
|
|
<div style="display: flex; align-items: center; font-size: 12px;">
|
|
<i class="fa fa-money"
|
|
style="color: #388e3c; margin-left: 4px; font-size: 12px;"/>
|
|
<span style="font-weight: 600; color: #495057;">الدخل:</span>
|
|
<span style="color: #212529; margin-right: 6px; font-weight: 500;">
|
|
<t t-if="record.member_income.raw_value and record.member_income.raw_value > 0">
|
|
<field name="member_income" widget="monetary"
|
|
options="{'currency_field': 'currency_id', 'field_digits': [16,0]}"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span style="color: #6c757d;">--</span>
|
|
</t>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="display: flex; align-items: center; font-size: 12px;">
|
|
<i class="fa fa-user-circle"
|
|
style="color: #198754; margin-left: 4px; font-size: 12px;"/>
|
|
<span style="font-weight: 600; color: #495057;">الأخصائى:</span>
|
|
<span style="color: #212529; margin-right: 6px; font-weight: 500;">
|
|
<t t-if="record.researcher_id.raw_value">
|
|
<field name="researcher_id"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span style="color: #6c757d;">--</span>
|
|
</t>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div style="background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); padding: 10px 15px; border-top: 2px solid #198754; text-align: right;">
|
|
<div style="display: inline-flex; align-items: center; font-size: 11px;">
|
|
<i class="fa fa-calendar" style="color: #6c757d; margin-left: 4px;"/>
|
|
<span style="font-weight: 600; color: #495057; margin-left: 4px;">آخر زيارة:
|
|
</span>
|
|
<span style="color: #212529; font-weight: 500;">
|
|
<t t-if="record.last_visit_date.raw_value">
|
|
<field name="last_visit_date"/>
|
|
</t>
|
|
<t t-else="">
|
|
<span style="color: #6c757d;">--</span>
|
|
</t>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
</kanban>
|
|
</field>
|
|
</record>
|
|
<record id="grant_benefit_form" model="ir.ui.view">
|
|
<field name="name">grant.benefit.form</field>
|
|
<field name="model">grant.benefit</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Benefit" create="1">
|
|
<header>
|
|
<button name="action_first_accepted" type="object"
|
|
string="First Accept" class="oe_highlight"
|
|
confirm="Are you sure you want to accept ?"
|
|
groups="odex_benefit.group_benefit_woman_commitee,odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"
|
|
attrs="{'invisible': ['|',('action_type','not in',['new','edit_info']),('state','not in',['waiting_approve'])]}"/>
|
|
<button name="action_second_accepted" type="object"
|
|
string="Second Accept" class="oe_highlight"
|
|
confirm="Are you sure you want to accept ?"
|
|
groups="odex_benefit.group_benefit_branch_manager,odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"
|
|
attrs="{'invisible': ['|',('action_type','not in',['new','edit_info']),('state','not in',['first_approve'])]}"/>
|
|
<button name="action_refuse" type="object"
|
|
string="Final Refuse" class="oe_highlight"
|
|
confirm="Are you sure you want to final refuse ?"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager,odex_benefit.group_benefit_branch_manager,odex_benefit.group_benefit_woman_commitee"
|
|
states="first_refusal"
|
|
/>
|
|
<button name="complete_data" type="object"
|
|
string="Researcher Assignment" class="oe_highlight"
|
|
confirm="Are you sure you want to Researcher assignment ?"
|
|
states="new"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager,odex_benefit.group_benefit_branch_manager,odex_benefit.group_benefit_woman_commitee"/>
|
|
<button name="finish_complete_data" type="object"
|
|
string="Finish Complete" class="oe_highlight"
|
|
confirm="Are you sure you want to Finish Complete data ?"
|
|
states="complete_info"/>
|
|
<button name="action_first_refusal" type="object"
|
|
string="First Refuse" class="btn btn-danger"
|
|
confirm="Are you sure you want to refuse ?"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager,odex_benefit.group_benefit_branch_manager,odex_benefit.group_benefit_woman_commitee,odex_benefit.group_benefit_researcher"
|
|
attrs="{'invisible': ['|',('action_type','!=','new'),('state','not in',['waiting_approve','complete_info'])]}"
|
|
/>
|
|
<button name="action_set_to_new" type="object"
|
|
string="Set To for Researcher" class="btn btn-warning"
|
|
confirm="Are you sure you want to set the state to Waiting for Researcher?"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager,odex_benefit.group_benefit_branch_manager,odex_benefit.group_benefit_woman_commitee"
|
|
attrs="{'invisible': ['|',('action_type','not in',['new','edit_info']),('state','not in',['waiting_approve','first_approve','refused','first_refusal'])]}"
|
|
/>
|
|
<button name="action_black_list" type="object"
|
|
string="Black List" class="btn btn-dark-grey"
|
|
attrs="{'invisible': ['|',('action_type','not in',['new','edit_info']),('state','not in',['waiting_approve','refused'])]}"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager,odex_benefit.group_benefit_branch_manager,odex_benefit.group_benefit_woman_commitee"
|
|
confirm="Are you sure you want to move to black list ?"/>
|
|
<button name="action_suspend" type="object"
|
|
string="Temporarily Suspended" class="btn btn-danger"
|
|
attrs="{
|
|
'invisible': [
|
|
'|',
|
|
('state', 'not in', ('second_approve', 'complete_info')),
|
|
'&',
|
|
('state', '=', 'complete_info'),
|
|
('action_type', '!=', 'edit_info')
|
|
]
|
|
}"
|
|
confirm="Are you sure you want to move to Temporarily Suspended ?"/>
|
|
<button name="action_suspend_first_accept" type="object"
|
|
string="First Approve" class="oe_highlight"
|
|
attrs="{'invisible': ['|',('action_type','!=','suspended'),('state', 'not in', ['waiting_approve'])]}"
|
|
groups="odex_benefit.group_benefit_woman_commitee,odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"
|
|
/>
|
|
<button name="action_suspend_second_accept" type="object"
|
|
string="Second Approve" class="oe_highlight"
|
|
groups="odex_benefit.group_benefit_branch_manager,odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"
|
|
attrs="{'invisible': ['|',('action_type','!=','suspended'),('state', 'not in', ['first_approve'])]}"/>
|
|
<button name="action_suspend_third_accept" type="object"
|
|
string="Third Approve" class="oe_highlight"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"
|
|
attrs="{'invisible': ['|',('action_type','!=','suspended'),('state', 'not in', ['family_services_manager'])]}"/>
|
|
<!-- Resume from suspension -->
|
|
<button name="action_resume_first_accept" type="object"
|
|
string="Resume Approval by Operations Head" class="oe_highlight"
|
|
attrs="{'invisible': ['|',('action_type','not in',['resume_from_final','resume_from_temporary']),('state', 'not in', ['waiting_approve'])]}"
|
|
groups="odex_benefit.group_benefit_woman_commitee"
|
|
/>
|
|
<button name="action_reject_resume" type="object"
|
|
string="Reject Resume" class="btn btn-danger"
|
|
groups="odex_benefit.group_benefit_woman_commitee"
|
|
attrs="{'invisible': ['|',('action_type','not in',['resume_from_final','resume_from_temporary']),('state', '!=', 'waiting_approve')]}"
|
|
/>
|
|
<button name="action_resume_second_accept" type="object"
|
|
string="Resume Approval by Branch Manager" class="oe_highlight"
|
|
groups="odex_benefit.group_benefit_branch_manager"
|
|
attrs="{'invisible': ['|',('action_type','not in',['resume_from_final','resume_from_temporary']),('state', 'not in', ['first_approve'])]}"/>
|
|
<button name="action_reject_resume" type="object"
|
|
string="Reject Resume" class="btn btn-danger"
|
|
groups="odex_benefit.group_benefit_branch_manager"
|
|
attrs="{'invisible': ['|',('action_type','not in',['resume_from_final','resume_from_temporary']),('state', '!=', 'first_approve')]}"
|
|
/>
|
|
<button name="action_resume_third_accept" type="object"
|
|
string="Resume Approval by Family Services Manager" class="oe_highlight"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"
|
|
attrs="{'invisible': ['|',('action_type','not in',['resume_from_final','resume_from_temporary']),('state', 'not in', ['family_services_manager'])]}"/>
|
|
<button name="action_reject_resume" type="object"
|
|
string="Reject Resume" class="btn btn-danger"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"
|
|
attrs="{'invisible': ['|',('action_type','not in',['resume_from_final','resume_from_temporary']),('state', '!=', 'family_services_manager')]}"
|
|
/>
|
|
<button name="action_resume_family" string="Resume Family Service"
|
|
type="object" class="btn btn-success"
|
|
attrs="{'invisible': [('state', 'not in', ['temporary_suspended', 'suspended_second_approve'])]}"
|
|
groups="odex_benefit.group_benefit_researcher"/>
|
|
<button name="action_final_suspend" type="object"
|
|
string="Final Suspension" class="btn btn-danger"
|
|
attrs="{'invisible': [('state', '!=', 'temporary_suspended')]}"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"/>
|
|
<button name="action_suspend_refuse" type="object"
|
|
string="Suspend Refuse" class="oe_highlight"
|
|
attrs="{'invisible': ['|',('action_type','!=','suspended'),('state', 'not in', ['waiting_approve','first_approve','family_services_manager','suspended_second_approve'])]}"
|
|
/>
|
|
<!-- Exception -->
|
|
<button name="action_exception" type="object"
|
|
string="Exception from suspension" class="oe_highlight"
|
|
states="suspended_second_approve"
|
|
confirm="Are you sure you want to move to Temporarily Exception ?"/>
|
|
<button name="action_exception_first_accept" type="object"
|
|
string="Exception First Approve" class="oe_highlight"
|
|
groups="odex_benefit.group_benefit_woman_commitee,odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"
|
|
attrs="{'invisible': ['|',('action_type','!=','exception'),('state', 'not in', ['waiting_approve'])]}"/>
|
|
<button name="action_exception_second_accept" type="object"
|
|
string="Exception Second Approve" class="oe_highlight"
|
|
attrs="{'invisible': ['|',('action_type','!=','exception'),('state', 'not in', ['first_approve'])]}"
|
|
groups="odex_benefit.group_benefit_branch_manager,odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"/>
|
|
<button name="action_exception_final_accept" type="object"
|
|
string="Exception Final Approve" class="oe_highlight"
|
|
states="exception_second_approve"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"/>
|
|
<button name="action_exception_refuse" type="object"
|
|
string="Exception Refuse" class="oe_highlight"
|
|
attrs="{'invisible': ['|',('action_type','!=','exception'),('state', 'not in', ['waiting_approve','first_approve','exception_second_approve'])]}"
|
|
/>
|
|
<button name="action_edit_info" type="object"
|
|
string="Open Edit Info" class="btn btn-info"
|
|
groups="odex_benefit.group_benefit_researcher,odex_benefit.group_family_services_manager"
|
|
states="second_approve"
|
|
confirm="Are you sure you want to open info edition !"
|
|
/>
|
|
<!-- <button name="create_manual_visit" type="object"
|
|
string="Create Periodic visit" class="oe_highlight"
|
|
states="second_approve"
|
|
/> -->
|
|
<button name="action_set_to_draft" type="object"
|
|
string="Set to Draft" class="btn btn-warning"
|
|
groups="odex_benefit.group_benefit_back_to_draft"
|
|
attrs="{'invisible':['|',('action_type','!=','new'),('state','not in',['complete_info'])]}"/>
|
|
<button name="edit_password" type="object"
|
|
string="Send Reset Password" states="second_approve"
|
|
confirm="Are you sure you want to send link to reset password !"/>
|
|
<field name="state" widget="statusbar"
|
|
statusbar_visible="draft,new,complete_info,waiting_approve,first_approve,second_approve"/>
|
|
</header>
|
|
<!-- <div class="alert alert-danger" role="alert" style="margin-bottom:0px;"-->
|
|
<!-- attrs="{'invisible':['|',('status', 'not in', ('close')),('close_reason', '=', False)]}">-->
|
|
<!-- <field name="close_reason" attrs="{'readonly': True}"/>-->
|
|
<!-- </div>-->
|
|
<sheet>
|
|
<div class="oe_button_box" name="button_box"
|
|
attrs="{'invisible':[('state','in',['draft','new'])]}">
|
|
<button class="oe_stat_button" name="view_attachments" type="object" icon="fa-file-text-o">
|
|
<field string="Documents" name="doc_count" widget="statinfo"/>
|
|
</button>
|
|
<button name="action_view_benefit_members" type="object" icon="fa-users">
|
|
<field string="Benefit Members" name="benefit_member_count" force_save="1"
|
|
widget="statinfo"/>
|
|
</button>
|
|
|
|
<button name="action_view_non_benefit_members" type="object" icon="fa-users">
|
|
<field string="Non Benefit Members" name="non_member_count" force_save="1"
|
|
class="custom_stat_value"
|
|
widget="statinfo"/>
|
|
</button>
|
|
<button icon="fa-list-ul" name="action_open_related_move_line_records" type="object">
|
|
<div class="o_field_widget o_stat_info">
|
|
<div class="oe_inline">
|
|
<span class="o_stat_value">
|
|
<field name="total_move_lines" nolabel="1" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
</span>
|
|
</div>
|
|
<span class="o_stat_text">Monthly expense</span>
|
|
</div>
|
|
</button>
|
|
<button type="object" name="action_open_visit_location" icon="fa-calendar">
|
|
<field name="visit_location_count" widget="statinfo" string="Visit location"/>
|
|
</button>
|
|
<!-- <button icon="fa-usd" name="action_open_related_invoice_records" type="object">-->
|
|
<!-- <field name="invoices_count" string="Invoices" widget="statinfo"/>-->
|
|
<!-- </button>-->
|
|
<button icon="fa-file" name="action_open_related_service_requests" type="object">
|
|
<field name="total_service_requests" string="Service Requests" widget="statinfo"/>
|
|
</button>
|
|
<button icon="fa-file" name="action_open_related_seasonal_service_requests" type="object">
|
|
<field name="total_seasonal_service_requests" string="Seasonal Service Requests"
|
|
widget="statinfo"/>
|
|
</button>
|
|
<button icon="fa-map-marker" name="get_location_on_map" string="open in Map Directly"
|
|
type="object"
|
|
attrs="{'invisible': ['|',('lat', '=', 0.0), ('lon', '=', 0.0)]}"/>
|
|
<!-- <button icon="fa-usd" name="action_open_related_invoice_records" type="object">-->
|
|
<!-- <field name="invoices_count" string="Invoices" widget="statinfo"/>-->
|
|
<!-- </button>-->
|
|
|
|
<!-- <button name="open_expenses"-->
|
|
<!-- type="object" class="oe_stat_button" icon="fa-money">-->
|
|
<!-- <field string="Expenses" name="expenses_total" widget="statinfo"/>-->
|
|
<!-- </button>-->
|
|
</div>
|
|
<widget name="web_ribbon" title="New" bg_color="bg-primary"
|
|
attrs="{'invisible': [('action_type', '!=', 'new')]}"/>
|
|
<widget name="web_ribbon" title="Edit Information" bg_color="bg-info"
|
|
attrs="{'invisible': [('action_type', '!=', 'edit_info')]}"/>
|
|
<widget name="web_ribbon" title="Approved" bg_color="bg-success"
|
|
attrs="{'invisible': [('action_type', '!=', 'approved')]}"/>
|
|
<widget name="web_ribbon" title="Suspended" bg_color="bg-warning"
|
|
attrs="{'invisible': [('action_type', '!=', 'suspended')]}"/>
|
|
<widget name="web_ribbon" title="Exception" bg_color="bg-secondary"
|
|
attrs="{'invisible': [('action_type', '!=', 'exception')]}"/>
|
|
<widget name="web_ribbon" title="Resume from Temporary Suspension" bg_color="bg-warning"
|
|
attrs="{'invisible': [('action_type', '!=', 'resume_from_temporary')]}"/>
|
|
<widget name="web_ribbon" title="Resume from Final Suspension" bg_color="bg-warning"
|
|
attrs="{'invisible': [('action_type', '!=', 'resume_from_final')]}"/>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field name="code" readonly="1" class="oe_inline"/>
|
|
-
|
|
<field placeholder="Name" name="name" class="oe_inline" readonly="1"
|
|
force_save="1"/>
|
|
</h1>
|
|
<group>
|
|
<group attrs="{'invisible':[('state','in',['draft','new'])]}">
|
|
<field name="qr_code" invisible="1" widget='image' class="oe_avatar"/>
|
|
<field name="action_type" invisible="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="profile_step_count" invisible="1"/>
|
|
<field name="family_edit" invisible="1"/>
|
|
<field name="benefit_partner_name" invisible="1"/>
|
|
</group>
|
|
</group>
|
|
</div>
|
|
<group>
|
|
<group string="Basic Information">
|
|
<field name="meal_card" readonly="1" invisible="1"/>
|
|
<field name="researcher_id"
|
|
attrs="{'required':[('state','not in',['draft','new'])]}" readonly="1"
|
|
force_save="1"/>
|
|
<field name="assigned_researcher_id" readonly="1"
|
|
force_save="1"/>
|
|
<field name="last_visit_date" readonly="1"/>
|
|
<field name="city_id"
|
|
invisible="1"
|
|
string="City" options="{'no_create': True, 'no_create_edit': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="branch_family_id"
|
|
readonly="1"
|
|
options="{'no_create': True, 'no_create_edit': True}"/>
|
|
<field name="branch_custom_id"
|
|
readonly="1"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="branch_has_employees" invisible="1"/>
|
|
<field name="district_id"
|
|
attrs="{'readonly':[('state', 'not in', ['draft', 'new', 'complete_info'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<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="approve_date" readonly="1"/>
|
|
<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"/>
|
|
<field name="replacement_mother_family_member_id" invisible="1" readonly="1"/>
|
|
<field string="Expenses" name="expenses_total" invisible="1"/>
|
|
</group>
|
|
<group string="Contact Information">
|
|
<field name="sms_phone" attrs="{'readonly':[('state','not in',['complete_info'])]}"/>
|
|
<field name="phone" string="Phone"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="phone2"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="relative_phone"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
invisible="1"/>
|
|
<field name="relative_relation"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
invisible="1"/>
|
|
<field name="email"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="contact_type"/>
|
|
<field name="request_producer_relation" readonly="1" force_save="1"/>
|
|
<field name="applicant_name"/>
|
|
<field name="partner_id" string="Partner" invisible="1" readonly="1"/>
|
|
<field name="request_producer" readonly="1" force_save="1" invisible="1"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<button name="%(odex_benefit.grant_map)d" string="Map" type="action"
|
|
context="{'search_default_name': name}" icon="fa-map-marker"
|
|
class="oe_highlight" invisible="1"/>
|
|
</group>
|
|
<group/>
|
|
</group>
|
|
<notebook>
|
|
<page string="Father Information">
|
|
<group>
|
|
<group>
|
|
<label for="father_name" string="Father Name"/>
|
|
<div class="o_row">
|
|
<field name="father_name" placeholder="First Name"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1" nolabel="1"/>
|
|
<field name="father_second_name" placeholder="Second Name"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1" nolabel="1"/>
|
|
<field name="father_third_name" placeholder="Third Name"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1" nolabel="1"/>
|
|
<field name="father_family_name" placeholder="Family Name"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1" nolabel="1"/>
|
|
</div>
|
|
</group>
|
|
<group>
|
|
<button class="btn btn-outline-success" icon="fa-users"
|
|
name="action_open_related_father_families"
|
|
type="object"
|
|
attrs="{'invisible': [('total_father_families', '=', 0)]}">
|
|
<field name="total_father_families" string="Father Families"
|
|
widget="statinfo"/>
|
|
</button>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="father_dead_reason_id_not_defined" invisible="1"/>
|
|
<field name="father_dead_reason_id" attrs="{
|
|
'required':[('state','=','complete_info')],
|
|
'readonly':[('state','not in',['draft','new','complete_info'])]}
|
|
"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="father_dead_reason" attrs="{
|
|
'required':[('state','=','complete_info'), ('father_dead_reason_id_not_defined', '=', True)],
|
|
'invisible':[('father_dead_reason_id_not_defined', '=', False)],
|
|
'readonly':[('state','not in',['draft','new','complete_info'])]}
|
|
"/>
|
|
<field name="father_dead_date" required="0"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="father_dead_country_id" required="1"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="father_dead_city_id" invisible="1"/>
|
|
<field name="father_dead_res_city_id"
|
|
attrs="{'invisible': [('father_dead_country_id_code', '!=', 'SA')]}"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="father_dead_country_id_code" invisible="1"/>
|
|
<field name="father_dead_city"
|
|
attrs="{'invisible': [('father_dead_country_id_code', '=', 'SA')]}"/>
|
|
<field name="father_dead_certificate"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
widget="many2many_attachment_preview"/>
|
|
</group>
|
|
<group>
|
|
<field name="father_job_id_not_defined" invisible="1"/>
|
|
<field name="father_job_id"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="father_job" attrs="{
|
|
'readonly': [('state', 'not in', ['draft', 'new', 'complete_info'])],
|
|
'invisible': [('father_job_id_not_defined', '=', False)]
|
|
}"/>
|
|
<field name="father_id_number"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1"/>
|
|
<field name="father_id_number_type"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1"/>
|
|
<field name="father_birth_date"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="father_country_id"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page string="Mother">
|
|
<widget invisible="1" name="web_ribbon" title="Non Benefit Mother" bg_color="bg-danger"
|
|
attrs="{'invisible': [('mother_status', '!=', 'non_benefit')]}"/>
|
|
<widget invisible="1" name="web_ribbon" title="Benefit Mother" bg_color="bg-success"
|
|
attrs="{'invisible': [('mother_status', '!=', 'benefit')]}"/>
|
|
<group>
|
|
<group>
|
|
<label for="mother_name" string="Mother Name"/>
|
|
<div class="o_row">
|
|
<field name="mother_name" nolabel="1" placeholder="First Name" required="1"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="mother_second_name" nolabel="1" placeholder="Second Name"
|
|
required="1"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="mother_third_name" nolabel="1" placeholder="Third Name"
|
|
required="1"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="mother_family_name" nolabel="1" placeholder="Family Name"
|
|
required="1"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
</div>
|
|
</group>
|
|
<group>
|
|
<button class="btn btn-outline-success" icon="fa-users"
|
|
name="action_open_related_mother_families"
|
|
type="object"
|
|
attrs="{'invisible': [('total_mother_families', '=', 0)]}">
|
|
<field name="total_mother_families" string="Mother Families"
|
|
widget="statinfo"/>
|
|
</button>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="add_replacement_mother"
|
|
attrs="{'invisible': [('mother_status', '!=', 'non_benefit')]}"/>
|
|
<field name="mother_relation" class="oe_inline" invisible="1"/>
|
|
<field name="mother_relationn" class="oe_inline"
|
|
options='{"no_open": True,"no_create_edit": True}' invisible="1"/>
|
|
<field name="mother_id_number"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1"/>
|
|
<field name="mother_id_number_type"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1"/>
|
|
<field name="mother_birth_date" required="1"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="mother_country_id"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
groups="!odex_benefit.group_benefit_manager"
|
|
required="1"/>
|
|
<field name="mother_status" invisible="1" readonly="1" widget="badge"
|
|
force_save="1"
|
|
decoration-success="mother_status == 'benefit'"
|
|
decoration-danger="mother_status == 'non_benefit'"/>
|
|
</group>
|
|
<group>
|
|
<field name="mother_marital_conf"
|
|
attrs="{'required':[('state','not in',['draft','new'])],'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="mother_is_dead" invisible="1"/>
|
|
<field name="mother_dead_reason_id_not_defined" invisible="1"/>
|
|
<field name="mother_dead_reason_id" attrs="{
|
|
'invisible': [('mother_is_dead', '=', False)],
|
|
'readonly': [('state', 'not in', ['draft', 'new', 'complete_info'])]}"/>
|
|
<field name="mother_dead_reason" attrs="{
|
|
'invisible': ['|', ('mother_dead_reason_id_not_defined', '=', False), ('mother_is_dead', '=', False)],
|
|
'readonly': [('state', 'not in', ['draft', 'new', 'complete_info'])]
|
|
}"/>
|
|
<!-- <field name="mother_dead_reason" attrs="{
|
|
'invisible': [('mother_dead_reason_id_not_defined', '=', False)],
|
|
'readonly': [('state', 'not in', ['draft', 'new', 'complete_info'])]
|
|
}" /> -->
|
|
<field name="mother_dead_country_id"
|
|
attrs="{'invisible':[('mother_is_dead','=',False)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="mother_dead_country_id_code" invisible="1"/>
|
|
<field name="mother_dead_res_city_id" attrs="{
|
|
'invisible':['|', ('mother_is_dead', '=', False), ('mother_dead_country_id_code', '!=', 'SA')],
|
|
'required':[('mother_dead_country_id_code', '=', 'SA'), ('mother_is_dead','=',True)],
|
|
'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="mother_dead_city" attrs="{
|
|
'invisible': ['|',('mother_is_dead', '=', False),('mother_dead_country_id_code', '=', 'SA')],
|
|
'readonly':[('state','not in',['draft','new','complete_info'])]
|
|
}"/>
|
|
<field name="mother_dead_date"
|
|
attrs="{'invisible':[('mother_is_dead','=',False)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="mother_dead_certificate"
|
|
attrs="{'invisible':[('mother_is_dead','=',False)],'required':[('mother_is_dead','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
widget="many2many_attachment_preview"/>
|
|
<field name="mother_location"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
invisible="1"/>
|
|
<field name="mother_location_conf"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'required':[('state','not in',['draft','new'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="mother_age"
|
|
attrs="{'required':[('state','not in',['draft','new'])]}"
|
|
readonly="1"/>
|
|
<field name="is_mother_work"
|
|
attrs="{'required':[('state','not in',['draft','new'])],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="mother_has_disabilities" invisible="1"/>
|
|
<field name="mother_net_income" widget="monetary" force_save="1"
|
|
options="{'currency_field': 'currency_id', 'field_digits': False}"
|
|
digits="[16,0]"
|
|
/>
|
|
<field name="mother_salary_certificate"
|
|
widget="many2many_attachment_preview"
|
|
invisible="1"/>
|
|
<field name="education_status"/>
|
|
<!-- <field name="is_mother_benefit"/>-->
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Education Status"
|
|
attrs="{'invisible': [('education_status', '!=', 'educated')]}">
|
|
<field name="mother_education_status_ids" mode="tree,form"/>
|
|
</page>
|
|
<page string="Diseases">
|
|
<field name="mother_diseases_attachment_ids" widget="one2many_list">
|
|
<tree editable="bottom">
|
|
<field name="diseases_id" required="1"/>
|
|
<field name="diseases_child_id" required="1"/>
|
|
<field name="name" string="Description"/>
|
|
<field name="datas" widget="binary" string="File content"
|
|
filename="attachment_file_name"/>
|
|
<button name="action_preview_attachment" type="object"
|
|
icon="fa-search-plus"
|
|
attrs="{'invisible': [('file_size', '=', 0)]}"/>
|
|
<field name="start_date"/>
|
|
<field name="supporter_id"/>
|
|
<field name="support_amount"/>
|
|
<field name="mother_grant_benefit_id" invisible="1"/>
|
|
<field name="member_id" invisible="1"/>
|
|
<field name="file_size" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Disabilities">
|
|
<field name="mother_disabilities_attachment_ids" widget="one2many_list">
|
|
<tree editable="bottom">
|
|
<field name="disabilities_id" required="1"/>
|
|
<field name="disabilities_child_id" required="1"/>
|
|
<field name="name" string="Description"/>
|
|
<field name="datas" widget="binary" string="File content"
|
|
filename="attachment_file_name"/>
|
|
<button name="action_preview_attachment"
|
|
type="object" icon="fa-search-plus"
|
|
attrs="{'invisible': [('file_size', '=', 0)]}"/>
|
|
<field name="start_date"/>
|
|
<field name="supporter_id"/>
|
|
<field name="support_amount"/>
|
|
<field name="mother_grant_benefit_id" invisible="1"/>
|
|
<field name="member_id" invisible="1"/>
|
|
<field name="file_size" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Mother Expenses">
|
|
<field name="mother_expenses_ids" context="{'default_state': 'accepted'}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
|
<tree editable="top">
|
|
<field name="mother_benefit_id" invisible="1"/>
|
|
<field name="expenses_type" invisible="1"/>
|
|
<field name="expenses_type_custom"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" sum="amount"/>
|
|
<field name="expense_attachments"
|
|
widget="many2many_attachment_preview"/>
|
|
<field name="note"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
<field name="state" invisible="1"/>
|
|
<field name="deduct_from_family_income"
|
|
string="Deduct from Mother Income" widget="boolean_toggle"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Mother Income">
|
|
<field name="mother_salary_ids"
|
|
context="{'default_state': 'accepted','default_is_mother_salary': True}"
|
|
mode="tree"
|
|
options="{'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
|
<tree editable="bottom" delete="0">
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="mother_benefit_id" invisible="1"/>
|
|
<field name="income_type"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="is_mother_salary" invisible="1"/>
|
|
<field name="salary_amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" sum="Total Income"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
<field name="salary_attach" widget="many2many_attachment_preview"/>
|
|
<field name="attach_start_date"/>
|
|
<field name="attach_end_date"/>
|
|
<field name="note"/>
|
|
<field name="is_required" invisible="1"/>
|
|
<field name="is_default" invisible="1"/>
|
|
<field name="state" invisible="1"/>
|
|
<field name="approved" widget="boolean_toggle"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Mother Debts">
|
|
<field name="mother_debits_ids" context="{'default_state': 'accepted'}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
|
<form>
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="loan_giver"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="loan_amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="number_of_installments"/>
|
|
<field name="loan_total_paid" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="loan_remaining" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="monthly_installment" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="loan_attach"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="last_paid_amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="last_paid_amount_date"/>
|
|
<field name="loan_reason"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="description"/>
|
|
<field name="mother_benefit_id" invisible="1"/>
|
|
<field name="loan_start_date"/>
|
|
<field name="loan_end_date"/>
|
|
<field name="deduct_from_family_income"
|
|
string="Deduct from Mother Income"
|
|
widget="boolean_toggle"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
<tree>
|
|
<field name="loan_giver"/>
|
|
<field name="monthly_installment" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" sum="Total"/>
|
|
<field name="loan_amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" sum="Total"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
<field name="state" invisible="1"/>
|
|
<field name="loan_attach" widget="binary"/>
|
|
<field name="deduct_from_family_income"
|
|
string="Deduct from Mother Income" widget="boolean_toggle"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</page>
|
|
<page string="Replacement Mother"
|
|
attrs="{'invisible':[('add_replacement_mother','=',False)]}">
|
|
<widget invisible="1" name="web_ribbon" title="Non Benefit Replacement Mother"
|
|
bg_color="bg-danger"
|
|
attrs="{'invisible': [('replacement_mother_status', '!=', 'non_benefit')]}"/>
|
|
<widget invisible="1" name="web_ribbon" title="Benefit Replacement Mother"
|
|
bg_color="bg-success"
|
|
attrs="{'invisible': [('replacement_mother_status', '!=', 'benefit')]}"/>
|
|
<group>
|
|
<group>
|
|
<label for="replacement_mother_name" string="Replacement Mother Name"/>
|
|
<div class="o_row">
|
|
<field name="replacement_mother_name" nolabel="1" placeholder="First Name"
|
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_second_name" nolabel="1"
|
|
placeholder="Second Name"
|
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_third_name" nolabel="1"
|
|
placeholder="Third Name"
|
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_family_name" nolabel="1"
|
|
placeholder="Family Name"
|
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
</div>
|
|
</group>
|
|
<group>
|
|
<button class="btn btn-outline-success" icon="fa-users"
|
|
name="action_open_related_replacement_mother_families"
|
|
type="object"
|
|
attrs="{'invisible': [('total_replacement_mother_families', '=', 0)]}">
|
|
<field name="total_replacement_mother_families"
|
|
string="Replacement Mother Families"
|
|
widget="statinfo"/>
|
|
</button>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="replacement_mother_relation" class="oe_inline"
|
|
options='{"no_open": True,"no_create_edit": True}'
|
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_id_number"
|
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_id_number_type"
|
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_birth_date"
|
|
attrs="{'required':[('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_country_id"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'required':[('add_replacement_mother','=',True)]}"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="replacement_mother_status" invisible="1" readonly="1"
|
|
widget="badge"
|
|
decoration-success="replacement_mother_status == 'benefit'"
|
|
decoration-danger="replacement_mother_status == 'non_benefit'"/>
|
|
</group>
|
|
<group>
|
|
<field name="replacement_mother_marital_conf"
|
|
attrs="{'required':[('state','not in',['draft','new']),('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="replacement_mother_is_dead" invisible="1"/>
|
|
<field name="replacement_dead_reason_id_not_defined" invisible="1"/>
|
|
<field name="replacement_dead_reason_id"
|
|
attrs="{'invisible': [('replacement_mother_is_dead', '=', False)]}"/>
|
|
<field name="replacement_dead_reason" attrs="{
|
|
'invisible': ['|', ('replacement_dead_reason_id_not_defined', '=', False), ('replacement_mother_is_dead', '=', False)],
|
|
'readonly': [('state', 'not in', ['draft', 'new', 'complete_info'])]
|
|
}"/>
|
|
<!-- <field name="replacement_dead_reason" attrs="{
|
|
'invisible': [('replacement_dead_reason_id_not_defined', '=', False)],
|
|
'readonly': [('state', 'not in', ['draft', 'new', 'complete_info'])]
|
|
}" /> -->
|
|
<field name="replacement_mother_dead_country_id"
|
|
attrs="{'invisible':[('replacement_mother_is_dead','=',False)],'required':[('replacement_mother_is_dead','=',True),('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="replacement_dead_country_id_code" invisible="1"/>
|
|
<field name="replacement_mother_dead_city_id" attrs="{
|
|
'invisible':['|', ('replacement_mother_is_dead','=',False), ('replacement_dead_country_id_code', '!=', 'SA')],
|
|
'required':[('replacement_dead_country_id_code', '=', 'SA'), ('replacement_mother_is_dead','=',True),('add_replacement_mother','=',True)],
|
|
'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<!-- <field name="replacement_mother_dead_city_id" attrs="{
|
|
'invisible':[('replacement_mother_is_dead','=',False)],
|
|
'required':[('replacement_mother_is_dead','=',True),('add_replacement_mother','=',True)],
|
|
'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/> -->
|
|
<field name="replacement_dead_city" attrs="{
|
|
'invisible':['|',('replacement_mother_is_dead', '=', False),('replacement_dead_country_id_code', '=', 'SA')],
|
|
'required':[('replacement_mother_is_dead','=',True),('add_replacement_mother','=',True)],
|
|
'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_dead_date"
|
|
attrs="{'invisible':[('replacement_mother_is_dead','=',False)],'required':[('replacement_mother_is_dead','=',True),('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_dead_certificate"
|
|
attrs="{'invisible':[('replacement_mother_is_dead','=',False)],'required':[('replacement_mother_is_dead','=',True),('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
widget="many2many_attachment_preview"/>
|
|
<field name="replacement_mother_location"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
invisible="1"/>
|
|
<field name="replacement_mother_location_conf"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'required':[('state','not in',['draft','new']),('add_replacement_mother','=',True)]}"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="replacement_mother_age"
|
|
attrs="{'required':[('state','not in',['draft','new']),('add_replacement_mother','=',True)]}"
|
|
readonly="1"/>
|
|
<field name="replacement_is_mother_work"
|
|
attrs="{'required':[('state','not in',['draft','new']),('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_has_disabilities"
|
|
attrs="{'required':[('state','not in',['draft','new']),('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_income"
|
|
attrs="{'invisible':[('replacement_is_mother_work','=',False)],'required':[('replacement_is_mother_work','=',True),('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="replacement_mother_salary_certificate"
|
|
widget="many2many_attachment_preview"
|
|
attrs="{'invisible':[('replacement_is_mother_work','=',False)]}"/>
|
|
<field name="replacement_education_status"/>
|
|
<!-- <field name="is_mother_benefit"/>-->
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Education Status"
|
|
attrs="{'invisible': [('replacement_education_status', '!=', 'educated')]}">
|
|
<field name="replacement_education_status_ids" mode="tree,form"/>
|
|
</page>
|
|
<page string="Diseases">
|
|
<field name="replacement_mother_diseases_attachment_ids" widget="one2many_list">
|
|
<tree editable="bottom">
|
|
<field name="diseases_id" required="1"/>
|
|
<field name="diseases_child_id" required="1"/>
|
|
<field name="name" string="Description"/>
|
|
<field name="datas" widget="binary" string="File content"
|
|
filename="attachment_file_name"/>
|
|
<button name="action_preview_attachment" type="object"
|
|
icon="fa-search-plus"
|
|
attrs="{'invisible': [('file_size', '=', 0)]}"/>
|
|
<field name="start_date"/>
|
|
<field name="supporter_id"/>
|
|
<field name="support_amount"/>
|
|
<field name="replacement_mother_grant_benefit_id" invisible="1"/>
|
|
<field name="member_id" invisible="1"/>
|
|
<field name="file_size" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Disabilities">
|
|
<field name="replacement_mother_disabilities_attachment_ids"
|
|
widget="one2many_list">
|
|
<tree editable="bottom">
|
|
<field name="disabilities_id" required="1"/>
|
|
<field name="disabilities_child_id" required="1"/>
|
|
<field name="name" string="Description"/>
|
|
<field name="datas" widget="binary" string="File content"
|
|
filename="attachment_file_name"/>
|
|
<button name="action_preview_attachment"
|
|
type="object" icon="fa-search-plus"
|
|
attrs="{'invisible': [('file_size', '=', 0)]}"/>
|
|
<field name="start_date"/>
|
|
<field name="supporter_id"/>
|
|
<field name="support_amount"/>
|
|
<field name="replacement_mother_grant_benefit_id" invisible="1"/>
|
|
<field name="member_id" invisible="1"/>
|
|
<field name="file_size" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
</notebook>
|
|
</page>
|
|
<page string="Members">
|
|
<field name="member_ids" widget="one2many_list"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
|
<form string="Family Member">
|
|
<div class="alert alert-danger" role="alert"
|
|
style="margin-bottom:0px;text-align:center;"
|
|
attrs="{'invisible':[('member_status', '=', 'benefit')]}">
|
|
<field name="non_benefit_reason" attrs="{'readonly': True}"/>
|
|
</div>
|
|
<sheet>
|
|
<widget name="web_ribbon" title="Non Benefit Member" bg_color="bg-danger"
|
|
attrs="{'invisible': [('member_status', '!=', 'non_benefit')]}"/>
|
|
<widget name="web_ribbon" title="Benefit Member" bg_color="bg-success"
|
|
attrs="{'invisible': [('member_status', '!=', 'benefit')]}"/>
|
|
<group>
|
|
<field name="relationn_type" invisible="1"/>
|
|
<label for="relationn" string="Relation"/>
|
|
|
|
<div>
|
|
<field name="relationn" class="oe_inline" nolabel="1"
|
|
attrs="{'readonly':[('parent.state','not in',['draft','new','complete_info'])]}"
|
|
options='{"no_open": True,"no_create_edit": True}'
|
|
required="1"/>
|
|
<field name="relation" class="oe_inline" nolabel="1" invisible="1"/>
|
|
</div>
|
|
</group>
|
|
<group attrs="{'invisible':[('relationn_type','in',['mother','replacement_mother'])]}">
|
|
<group>
|
|
<label for="member_first_name" string="Member Name"/>
|
|
<div class="o_row">
|
|
<field name="member_first_name" force_save="1" nolabel="1"
|
|
placeholder="First Name"
|
|
attrs="{'required':[('is_mother','=',False)]}"/>
|
|
<field name="member_second_name" force_save="1" nolabel="1"
|
|
placeholder="Second Name"
|
|
attrs="{'required':[('is_mother','=',False)]}"/>
|
|
<field name="member_third_name" force_save="1" nolabel="1"
|
|
placeholder="Third Name"
|
|
attrs="{'required':[('is_mother','=',False)]}"/>
|
|
<field name="member_family_name" force_save="1" nolabel="1"
|
|
placeholder="Famil yname"
|
|
attrs="{'required':[('is_mother','=',False)]}"/>
|
|
</div>
|
|
</group>
|
|
<group/>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field placeholder="Name" name="name" class="oe_inline" readonly="1"
|
|
force_save="1" invisible="1"/>
|
|
<field name="is_mother" invisible="1"/>
|
|
<field name="mother_first_name" force_save="1"
|
|
attrs="{'invisible':[('is_mother','=',False)],'required':[('is_mother','=',True)]}"/>
|
|
<field name="mother_third_name" force_save="1"
|
|
attrs="{'invisible':[('is_mother','=',False)],'required':[('is_mother','=',True)]}"/>
|
|
<field name="birth_date" required="1"/>
|
|
<field name="member_phone"
|
|
attrs="{'invisible':[('is_mother','=',True)]}"/>
|
|
<field name="member_location" force_save="1" invisible="1"/>
|
|
<field name="member_location_conf" required="1"
|
|
domain="[('location_type', '=', relationn_type in ['mother','replacement_mother'] and 'mother_location' or 'member')]"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
/>
|
|
</group>
|
|
<group>
|
|
<field name="mother_second_name" force_save="1"
|
|
attrs="{'invisible':[('is_mother','=',False)],'required':[('is_mother','=',True)]}"/>
|
|
<field name="mother_family_name" force_save="1"
|
|
attrs="{'invisible':[('is_mother','=',False)],'required':[('is_mother','=',True)]}"/>
|
|
<field name="age" required="1"/>
|
|
<field name="age_status"
|
|
attrs="{'invisible':[('relationn_type','not in',('son','daughter'))]}"/>
|
|
<field name="member_id_number" required="1"/>
|
|
<field name="is_excluded_suspension" readonly="1" force_save="1"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="is_dead"/>
|
|
<field name="death_certificate"
|
|
widget="many2many_attachment_preview"
|
|
attrs="{'invisible':[('is_dead','=',False)]}"/>
|
|
<field name="minor_siblings"
|
|
attrs="{'invisible':[('relationn_type','not in',('son','daughter'))]}"
|
|
readonly="1" force_save="1"/>
|
|
<field name="is_married"
|
|
attrs="{'invisible':[('is_mother','=',True)]}"/>
|
|
<field name="marriage_date"
|
|
attrs="{
|
|
'invisible': ['|',('is_mother','=',True),('is_married','=',False)],
|
|
'required': [('is_married','=',True)]
|
|
}"
|
|
/>
|
|
<field name="marriage_certificate"
|
|
widget="many2many_attachment_preview"
|
|
attrs="{'invisible':['|',('is_mother','=',True),('is_married','=',False)]}"/>
|
|
<field name="mother_marital_conf"
|
|
attrs="{'invisible':[('relationn_type','not in',('mother','replacement_mother'))]}"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
groups="!odex_benefit.group_benefit_manager"/>
|
|
<field name="mother_location" invisible="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="is_work"/>
|
|
<field name="member_income"
|
|
attrs="{'invisible':[('is_work','=',False)], 'required':[('is_work','=',True)]}"/>
|
|
<field name="salary_certificate"
|
|
widget="many2many_attachment_preview"
|
|
attrs="{'invisible':[('is_work','=',False)]}"/>
|
|
<field name="education_status"/>
|
|
<field name="last_education_levels"
|
|
attrs="{'invisible':[('education_status','!=','educated')]}"/>
|
|
<field name="case_study"
|
|
attrs="{'invisible':[('education_status','!=','educated')]}"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="sponsor_id" invisible="1"/>
|
|
<field name="is_excluded_suspension" invisible="1" readonly="1"
|
|
force_save="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="member_status" invisible="1" readonly="1"
|
|
widget="badge"
|
|
decoration-success="member_status == 'benefit'"
|
|
decoration-danger="member_status == 'non_benefit'"/>
|
|
</group>
|
|
</group>
|
|
<notebook>
|
|
<page string="Hobbies">
|
|
<field name="hobbies_attachment_ids" widget="one2many_list">
|
|
<tree editable="bottom">
|
|
<field name="hobbies_id" required="1"/>
|
|
<field name="name"/>
|
|
<field name="datas" widget="binary" string="File content"
|
|
filename="attachment_file_name"/>
|
|
<button name="action_preview_attachment"
|
|
type="object" icon="fa-search-plus"
|
|
attrs="{'invisible': [('file_size', '=', 0)]}"/>
|
|
<field name="member_id" invisible="1"/>
|
|
<field name="file_size" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Diseases">
|
|
<field name="diseases_attachment_ids" widget="one2many_list">
|
|
<tree editable="bottom">
|
|
<field name="diseases_id" required="1"/>
|
|
<field name="diseases_child_id" required="1"/>
|
|
<field name="name" string="Description"/>
|
|
<field name="datas" widget="binary" string="File content"
|
|
filename="attachment_file_name"/>
|
|
<button name="action_preview_attachment"
|
|
type="object" icon="fa-search-plus"
|
|
attrs="{'invisible': [('file_size', '=', 0)]}"/>
|
|
<field name="start_date"/>
|
|
<field name="supporter_id"/>
|
|
<field name="support_amount"/>
|
|
<field name="member_id" invisible="1"/>
|
|
<field name="file_size" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Disabilities">
|
|
<field name="disabilities_attachment_ids" widget="one2many_list">
|
|
<tree editable="bottom">
|
|
<field name="disabilities_id" required="1"/>
|
|
<field name="disabilities_child_id" required="1"/>
|
|
<field name="name" string="Description"/>
|
|
<field name="datas" widget="binary" string="File content"
|
|
filename="attachment_file_name"/>
|
|
<button name="action_preview_attachment"
|
|
type="object" icon="fa-search-plus"
|
|
attrs="{'invisible': [('file_size', '=', 0)]}"/>
|
|
<field name="start_date"/>
|
|
<field name="supporter_id"/>
|
|
<field name="support_amount"/>
|
|
<field name="member_id" invisible="1"/>
|
|
<field name="file_size" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Education Status"
|
|
attrs="{'invisible': [('education_status', '!=', 'educated')]}">
|
|
<field name="member_education_status_ids" mode="tree,form"/>
|
|
</page>
|
|
<page string="Exams Degrees"
|
|
attrs="{'invisible': [('education_status', '!=', 'educated')]}">
|
|
<field name="exam_ids" mode="tree" options="{'no_open': True}"
|
|
widget="one2many_list">
|
|
<tree editable="bottom">
|
|
<field name="member_id" invisible="1"/>
|
|
<field name="exam_id"
|
|
options="{'no_create_edit': True, 'no_create': True}"/>
|
|
<field name="exam_degree"/>
|
|
<field name="exam_date"/>
|
|
<field name="exam_attachment" widget="binary"
|
|
filename="exam_attachment_file_name"/>
|
|
<field name="exam_attachment_file_name" invisible="1"/>
|
|
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Attachments">
|
|
<field name="attachment_ids" widget="one2many_list" mode="tree"
|
|
options="{'no_open': True}">
|
|
<tree editable="bottom" delete="0">
|
|
<field name="name" string="Attachment Name"
|
|
attrs="{'readonly':[('is_default','=',True)]}"
|
|
force_save="1"/>
|
|
<field name="attach_id" invisible="1"/>
|
|
<field name="datas" widget="binary" string="File content"
|
|
filename="attachment_file_name"/>
|
|
<button name="action_preview_attachment"
|
|
type="object" icon="fa-search-plus"
|
|
attrs="{'invisible': [('file_size', '=', 0)]}"/>
|
|
<field name="expiration_date"/>
|
|
<field name="attach_status"/>
|
|
<field name="allow_days"/>
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="is_required" invisible="1"/>
|
|
<field name="is_default" invisible="1"/>
|
|
<field name="file_size" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
<group>
|
|
<field name="state" invisible="1"/>
|
|
<field name="required_attach"
|
|
attrs="{'required':[('state','not in',['draft','new'])]}"/>
|
|
</group>
|
|
</page>
|
|
<!-- <page string="Attachment Configuration">-->
|
|
<!-- <group>-->
|
|
<!-- <group>-->
|
|
<!--<!– <field name="required_attach" attrs="{'required':[('parent.state','not in',['draft'])]}"/>–>-->
|
|
<!-- </group>-->
|
|
<!-- <group-->
|
|
<!-- </page>-->
|
|
</notebook>
|
|
</sheet>
|
|
</form>
|
|
<tree string="Family Members">
|
|
<field name="name" force_save="1"/>
|
|
<field name="relationn"/>
|
|
<field name="age"/>
|
|
<field name="member_location_conf"/>
|
|
<field name="education_status"/>
|
|
<field name="last_education_levels" optional="hide"/>
|
|
<field name="case_study" optional="hide"/>
|
|
<field name="member_status" widget="badge"
|
|
decoration-success="member_status == 'benefit'"
|
|
decoration-danger="member_status == 'non_benefit'"/>
|
|
<field name="is_excluded_suspension"/>
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="state"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Attachments">
|
|
<field name="attachment_ids" widget="one2many_list" mode="tree"
|
|
options="{'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
|
<tree editable="bottom" delete="0">
|
|
<field name="name" attrs="{'readonly':[('is_default','=',True)]}"
|
|
force_save="1"/>
|
|
<field name="datas" string="File content"
|
|
widget="binary" filename="attachment_file_name"/>
|
|
<button name="action_preview_attachment"
|
|
type="object" icon="fa-search-plus"
|
|
attrs="{'invisible': [('file_size', '=', 0)]}"/>
|
|
<field name="expiration_date"/>
|
|
<field name="attach_status"/>
|
|
<field name="allow_days"/>
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="is_required" invisible="1"/>
|
|
<field name="is_default" invisible="1"/>
|
|
<field name="file_size" invisible="1"/>
|
|
</tree>
|
|
</field>
|
|
<group>
|
|
<field name="required_attach" invisible="1"/>
|
|
</group>
|
|
</page>
|
|
<page string="Housing information">
|
|
<form string="Housing">
|
|
<sheet>
|
|
<group>
|
|
<group string="Property details">
|
|
<field name="housing_type"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="housing_cat"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="property_type_code" invisible="1"/>
|
|
<field name="property_type_id"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="payment_type" force_save="1"
|
|
attrs="{'invisible':[('property_type_code','!=','rent')]}"/>
|
|
<field name="rent_amount" force_save="1"
|
|
attrs="{'invisible':[('property_type_code','!=','rent')]}"/>
|
|
<field name="contract_num" force_save="1"
|
|
attrs="{'invisible':[('property_type_code','!=','rent')]}"/>
|
|
<field name="rent_start_date" force_save="1"
|
|
attrs="{'invisible':[('property_type_code','!=','rent')]}"/>
|
|
<field name="rent_end_date" force_save="1"
|
|
attrs="{'invisible':[('property_type_code','!=','rent')]}"/>
|
|
<field name="rent_attachment" force_save="1"
|
|
attrs="{'invisible':[('property_type_code','!=','rent')]}"
|
|
widget="many2many_attachment_preview"/>
|
|
<field name="property_instrument_number"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'invisible':[('property_type_code','!=','ownership')]}"/>
|
|
<field name="property_instrument_attach"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'invisible':[('property_type_code','!=','ownership')]}"
|
|
widget="many2many_attachment_preview"/>
|
|
<field name="property_instrument_date"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'invisible':[('property_type_code','!=','ownership')]}"/>
|
|
<field name="electricity_attach"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'invisible':[('property_type_code','=',False)]}"
|
|
widget="many2many_attachment_preview"/>
|
|
</group>
|
|
<group string="National address">
|
|
<!-- <field name="country_id"
|
|
attrs="{'required':[('state','not in',['draft','new'])]}"
|
|
readonly="1"/> -->
|
|
<!-- <field name="state_id"
|
|
attrs="{'required':[('state','not in',['draft','new'])]}"
|
|
readonly="1" string="Region"/> -->
|
|
<field name="city_id" readonly="1" string="City" force_save="1"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"/>
|
|
<!-- <field name="res_city_id" string="Res City"
|
|
options="{'no_create': True, 'no_create_edit': True}"/> -->
|
|
<!-- <field name="housing_city"/> -->
|
|
<field name="district_id" force_save="1"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
attrs="{'readonly':[('state', 'not in', ['draft', 'new', 'complete_info'])]}"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"/>
|
|
<field name="zip"
|
|
attrs="{'required':[('state','not in',['draft','new'])],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="short_number"/>
|
|
<field name="extra_code"/>
|
|
<field name="house_number"
|
|
attrs="{'required':[('state','not in',['draft','new'])],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="street"
|
|
attrs="{'required':[('state','not in',['draft','new'])],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="national_address_attachment"
|
|
attrs="{'required':[('state','not in',['draft','new'])],'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
widget="many2many_attachment_preview"/>
|
|
<!-- <field name="lat"-->
|
|
<!-- attrs="{'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="lon"-->
|
|
<!-- attrs="{'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="location_url"-->
|
|
<!-- attrs="{'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
</group>
|
|
<group string="Housing details" invisible="1">
|
|
<field name="floor"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="housing_number"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="block"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="nearby_mosque"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="housing_note"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="note_neighborhood"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<separator string="Rent Contracts" colspan="2"/>
|
|
<field name="current_rent_contract_id" force_save="1" invisible="1"/>
|
|
<field name="rent_contract_ids" nolabel="1"
|
|
attrs="{'readonly':['|',('state','not in',['draft','new','complete_info']),('property_type_code','!=','rent')]}"
|
|
mode="tree,form"
|
|
context="{'default_family_id': id,'default_landlord_type': 'family'}">
|
|
<tree string="Rent Contracts">
|
|
<field name="name"/>
|
|
<field name="start_date"/>
|
|
<field name="landlord_type"/>
|
|
<field name="rent_amount"/>
|
|
</tree>
|
|
</field>
|
|
<field name="rent_contract_count" invisible="1"/>
|
|
<button name="action_view_all_rent_contracts"
|
|
type="object"
|
|
string="View All Rent Contracts"
|
|
class="btn-link"
|
|
colspan="2"
|
|
attrs="{'invisible': [('rent_contract_count', '=', 0)]}"/>
|
|
</group>
|
|
<group>
|
|
<separator string="Geolocation" colspan="2"/>
|
|
<button string="Geolocalize" name="geo_localize" type="object"
|
|
icon="fa-check" colspan="2"/>
|
|
<div>
|
|
<span class="oe_inline">(</span>
|
|
<span>Lat :</span>
|
|
<field name="lat" class="oe_inline" no_label="1"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<span>: Long :</span>
|
|
<field name="lon" class="oe_inline" nolabel="1"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<span>)</span>
|
|
</div>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</page>
|
|
<page string="Expenses and Income">
|
|
<separator string="Income and salary"/>
|
|
<field name="salary_ids" context="{'default_state': 'accepted'}" mode="tree"
|
|
options="{'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
|
<tree editable="bottom" delete="0">
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="income_type"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="is_mother_salary" invisible="1"/>
|
|
<field name="salary_amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" sum="Total Income"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
<field name="salary_attach" widget="many2many_attachment_preview"/>
|
|
<field name="attach_start_date"/>
|
|
<field name="attach_end_date"/>
|
|
<field name="note"/>
|
|
<field name="is_required" invisible="1"/>
|
|
<field name="is_default" invisible="1"/>
|
|
<field name="state" invisible="1"/>
|
|
<field name="approved" widget="boolean_toggle"/>
|
|
</tree>
|
|
</field>
|
|
<group>
|
|
<field name="income_required_attach" invisible="1"/>
|
|
</group>
|
|
|
|
<separator string="Expenses"/>
|
|
<field name="expenses_ids" context="{'default_state': 'accepted'}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
|
<tree editable="top">
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="expenses_type" invisible="1"/>
|
|
<field name="expenses_type_custom"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" sum="amount"/>
|
|
<field name="expense_attachments" widget="many2many_attachment_preview"/>
|
|
<field name="note"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
<field name="state" invisible="1"/>
|
|
<field name="deduct_from_family_income" widget="boolean_toggle"/>
|
|
</tree>
|
|
</field>
|
|
|
|
<separator string="Family Loans"/>
|
|
<field name="family_debits_ids" context="{'default_state': 'accepted'}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
|
<form string="Family Loans">
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="loan_giver"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="loan_amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="number_of_installments"/>
|
|
<field name="loan_total_paid" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="loan_remaining" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="monthly_installment" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="loan_attach"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="last_paid_amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<field name="last_paid_amount_date"/>
|
|
<field name="loan_reason"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="description"/>
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="loan_start_date"/>
|
|
<field name="loan_end_date"/>
|
|
<field name="deduct_from_family_income" widget="boolean_toggle"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
<tree>
|
|
<field name="loan_giver"/>
|
|
<field name="monthly_installment" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" sum="Total"/>
|
|
<field name="loan_amount" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" sum="Total"/>
|
|
<field name="currency_id" invisible="1"/>
|
|
<field name="state" invisible="1"/>
|
|
<field name="loan_attach" widget="binary"/>
|
|
<field name="deduct_from_family_income" widget="boolean_toggle"/>
|
|
</tree>
|
|
</field>
|
|
|
|
<group class="oe_subtotal_footer oe_right">
|
|
<label for="mother_income"/>
|
|
<field name="mother_income" widget="monetary" nolabel="1" force_save="1"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<label for="total_income"/>
|
|
<field name="total_income" widget="monetary" nolabel="1" force_save="1"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<label for="total_expenses"/>
|
|
<field name="total_expenses" nolabel="1" widget="monetary" force_save="1"
|
|
options="{'currency_field': 'currency_id'}"/>
|
|
<label for="estimated_rent_amount"
|
|
attrs="{'invisible':[('property_type_code','!=','rent')]}"/>
|
|
<field name="estimated_rent_amount" nolabel="1" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" force_save="1"
|
|
attrs="{'invisible':[('property_type_code','!=','rent')]}"/>
|
|
<field name="member_income" widget="monetary"
|
|
options="{'currency_field': 'currency_id'}" force_save="1"/>
|
|
<field name="benefit_category_id" force_save="1"/>
|
|
</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"/>-->
|
|
|
|
<!-- </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'])]}"/>-->
|
|
<!-- <!–disability–>-->
|
|
<!-- <field name="is_disability" attrs="{'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="is_insurance" attrs="{'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <!–hospital–>-->
|
|
<!-- <field name="hospital_id" attrs="{'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="hospital_card" attrs="{'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- </group>-->
|
|
<!-- <!–Weight rate–>-->
|
|
<!-- <group string="Weight">-->
|
|
<!-- <field name="weight" attrs="{'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="height" attrs="{'readonly':[('state','not in',['draft','complete_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'])]}"/>-->
|
|
<!-- <field name="treatment_used"-->
|
|
<!-- attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="treatment_amount"-->
|
|
<!-- attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="is_treatment_amount_country"-->
|
|
<!-- attrs="{'invisible': [('is_diseases', '=', False)],'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="treatment_amount_country_Monthly"-->
|
|
<!-- attrs="{'invisible': [('is_treatment_amount_country', '=', False)],'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="treatment_amount_country_description"-->
|
|
<!-- attrs="{'invisible': [('is_treatment_amount_country', '=', False)],'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="treatment_amount_country_attach"-->
|
|
<!-- attrs="{'invisible': [('is_treatment_amount_country', '=', False)],'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- </group>-->
|
|
<!-- <group string="disability">-->
|
|
<!-- <field name="disability_type"-->
|
|
<!-- attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="disability_accessories"-->
|
|
<!-- attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="disability_attach"-->
|
|
<!-- attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_info'])]}"/>-->
|
|
<!-- <field name="disability_amount"-->
|
|
<!-- attrs="{'invisible': [('is_disability', '=', False)],'readonly':[('state','not in',['draft','complete_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">-->
|
|
<!-- </group>-->
|
|
<!-- </page>-->
|
|
<page string="Black List" attrs="{'invisible': [('state', 'not in', 'black_list')]}">
|
|
<field name="black_list_reason"
|
|
attrs="{'readonly': [('state', '=', 'black_list')]}"/>
|
|
<field name="black_list_message"/>
|
|
</page>
|
|
<page string="Bank Account Information">
|
|
<group>
|
|
<group>
|
|
<field name="is_family_member"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"/>
|
|
<field name="account_relation"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"
|
|
options='{"no_open": True,"no_create_edit": True}'
|
|
/>
|
|
<label for="acc_number"/>
|
|
<div class="o_row">
|
|
<field name="acc_number"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"
|
|
width="100%"/>
|
|
<field name="sa_iban"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"/>
|
|
</div>
|
|
<field name="iban_document"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"
|
|
widget="many2many_attachment_preview"/>
|
|
</group>
|
|
<group>
|
|
<field name="bank_id"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
/>
|
|
<field name="family_member_id"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"
|
|
options="{'no_create': True, 'no_create_edit': True}"
|
|
/>
|
|
<field name="acc_holder_name"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"/>
|
|
<field name="acc_holder_id_number"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"/>
|
|
<field name="owner_identity_attachment_ids"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"
|
|
widget="many2many_attachment_preview"/>
|
|
<field name="family_approval_attachment_ids"
|
|
attrs="{'readonly':[('state','not in',['complete_info','waiting_approve','first_approve'])]}"
|
|
widget="many2many_attachment_preview"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page string="First Refusal Reason"
|
|
attrs="{'invisible': [('state', 'not in', ['first_refusal'])]}">
|
|
<group>
|
|
<field name="first_refusal_reason"
|
|
attrs="{'invisible':[('state','!=','first_refusal')]}"/>
|
|
<field name="first_refuse_date"
|
|
attrs="{'invisible':[('state','!=','first_refusal')]}"/>
|
|
</group>
|
|
</page>
|
|
<page string="Suspend Reason"
|
|
attrs="{'invisible': [('action_type','not in',['suspended','exception','resume_from_temporary','resume_from_final'])]}"
|
|
>
|
|
<group string="Suspend">
|
|
<group>
|
|
<field name="suspend_reason"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="suspend_description"/>
|
|
<field name="final_suspend_date" readonly="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="suspend_attachment" widget="many2many_attachment_preview"/>
|
|
<field name="suspend_type"/>
|
|
<field name="suspend_method" readonly="1" force_save="1"/>
|
|
</group>
|
|
</group>
|
|
<group string="Resume">
|
|
<group>
|
|
<field name="resume_reason_id"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="resume_date"/>
|
|
</group>
|
|
<group>
|
|
<field name="resume_notes"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page string="Exception"
|
|
attrs="{'invisible': [('action_type', 'not in', ['exception']),('is_excluded_suspension','=',False)]}">
|
|
<group>
|
|
<group>
|
|
<field name="exception_start_date"/>
|
|
<field name="exception_description"/>
|
|
<field name="exception_type"/>
|
|
</group>
|
|
<group>
|
|
<field name="exception_end_date"/>
|
|
<field name="exception_attachment" widget="many2many_attachment_preview"/>
|
|
</group>
|
|
</group>
|
|
</page>
|
|
<page string="Family Monthly salary"
|
|
attrs="{'invisible': [('state', 'not in', ['second_approve'])]}">
|
|
<group>
|
|
<field name="family_monthly_income"/>
|
|
<field name="family_monthly_meals"/>
|
|
<field name="family_monthly_clotting"/>
|
|
<field name="total_family_expenses"/>
|
|
<field name="last_disbursement_date"/>
|
|
</group>
|
|
</page>
|
|
<page string="Family Cars">
|
|
<field name="car_ids"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}">
|
|
<tree editable="bottom">
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="is_driver_family_member" widget="boolean_toggle"/>
|
|
<field name="member_id" force_save="1"
|
|
attrs="{'readonly': [('is_driver_family_member', '=', False)], 'required': [('is_driver_family_member', '=', True)]}"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="driver_name" force_save="1"
|
|
attrs="{'readonly': [('is_driver_family_member', '=', True)], 'required': [('is_driver_family_member', '=', False)]}"/>
|
|
<field name="name" required="1"/>
|
|
<field name="car_model" required="1"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"/>
|
|
<field name="status"/>
|
|
<field name="application_form" widget="many2many_attachment_preview"/>
|
|
<field name="driving_license" widget="many2many_attachment_preview"/>
|
|
<field name="owner_identity" widget="many2many_attachment_preview"/>
|
|
<field name="purchased_by_association" widget="boolean_toggle" readonly="1"/>
|
|
</tree>
|
|
</field>
|
|
</page>
|
|
<page string="Notes">
|
|
<group>
|
|
<field name="notes" nolabel="1"/>
|
|
</group>
|
|
</page>
|
|
<page string="Configuration"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"
|
|
invisible="1">
|
|
<!-- <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="has_car" widget="boolean_toggle" invisible="1"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<field name="is_excluded_suspension" invisible="1"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager,odex_benefit.group_benefit_branch_manager,odex_benefit.group_benefit_woman_commitee"
|
|
readonly="1" force_save="1"/>
|
|
</group>
|
|
<group>
|
|
<!-- <field name="request_producer_id"/> -->
|
|
<field name="user_id" readonly="1" force_save="1"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"/>
|
|
<field name="is_from_portal"
|
|
groups="odex_benefit.group_benefit_manager,odex_benefit.group_family_services_manager"/>
|
|
<field name="password" password="True" invisible="1"/>
|
|
<field name="has_needs" invisible="1"/>
|
|
<!-- <field name="required_attach" attrs="{'required':[('state','not in',['draft'])]}"/>-->
|
|
</group>
|
|
<group>
|
|
<field name="family_return_reason"/>
|
|
</group>
|
|
</page>
|
|
</notebook>
|
|
|
|
</sheet>
|
|
<div class="oe_chatter">
|
|
<field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
|
|
<field name="activity_ids"/>
|
|
<field name="message_ids" widget="mail_thread"/>
|
|
</div>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="grant_benefit_form_for_manager" model="ir.ui.view">
|
|
<field name="name">grant.benefit.form</field>
|
|
<field name="model">grant.benefit</field>
|
|
<field name="inherit_id" ref="odex_benefit.grant_benefit_form"/>
|
|
<field name="groups_id"
|
|
eval="[(6,0,[ref('odex_benefit.group_benefit_manager'),ref('odex_benefit.group_family_services_manager')])]"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//field[@name='city_id']" position="replace">
|
|
<field name="city_id" invisible="1"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='branch_custom_id']" position="replace">
|
|
<field name="branch_custom_id" readonly="1"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='father_dead_country_id']" position="replace">
|
|
<field name="father_dead_country_id" required="1"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='father_dead_city']" position="replace">
|
|
<field name="father_dead_city" attrs="{
|
|
'readonly': [('state','not in',('draft','new','complete_info'))],
|
|
'invisible': [('father_dead_country_id_code', '=', 'SA')]
|
|
}"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='father_country_id']" position="replace">
|
|
<field name="father_country_id"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='mother_country_id']" position="replace">
|
|
<field name="mother_country_id"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])]}"
|
|
required="1"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='mother_marital_conf']" position="replace">
|
|
<field name="mother_marital_conf"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'required':[('state','not in',['draft','new'])],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
</xpath>
|
|
<xpath expr="//field[@name='mother_location_conf']" position="replace">
|
|
<field name="mother_location_conf"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'required':[('state','not in',['draft','new'])]}"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='replacement_mother_country_id']" position="replace">
|
|
<field name="replacement_mother_country_id"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'required':[('add_replacement_mother','=',True)]}"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='replacement_mother_marital_conf']" position="replace">
|
|
<field name="replacement_mother_marital_conf"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'required':[('state','not in',['draft','new']),('add_replacement_mother','=',True)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='replacement_mother_location_conf']" position="replace">
|
|
<field name="replacement_mother_location_conf"
|
|
options="{'no_create': True, 'no_create_edit': True,'no_quick_create': True, 'no_open': True}"
|
|
attrs="{'readonly':[('state','not in',['draft','new','complete_info'])],'required':[('state','not in',['draft','new']),('add_replacement_mother','=',True)]}"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='replacement_mother_dead_country_id']" position="replace">
|
|
<field name="replacement_mother_dead_country_id"
|
|
attrs="{'invisible':[('replacement_mother_is_dead','=',False)],'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
</xpath>
|
|
|
|
<xpath expr="//field[@name='replacement_mother_dead_city_id']" position="replace">
|
|
<field name="replacement_mother_dead_city_id" attrs="{
|
|
'invisible':['|', ('replacement_mother_is_dead','=',False), ('replacement_dead_country_id_code', '!=', 'SA')],
|
|
'required':[('replacement_dead_country_id_code', '=', 'SA'), ('replacement_mother_is_dead','=',True),('add_replacement_mother','=',True)],
|
|
'readonly':[('state','not in',['draft','new','complete_info'])]}"/>
|
|
<!-- <field name="replacement_mother_dead_city_id" attrs="{
|
|
'invisible':[('replacement_mother_is_dead','=',False)],
|
|
'required':[('replacement_mother_is_dead','=',True),('add_replacement_mother','=',True)],
|
|
'readonly':[('state','not in',['draft','new','complete_info'])]}"/> -->
|
|
</xpath>
|
|
|
|
|
|
</field>
|
|
</record>
|
|
<record id="grant_benefit_tree" model="ir.ui.view">
|
|
<field name="name">grant.benefit.tree</field>
|
|
<field name="model">grant.benefit</field>
|
|
<field name="arch" type="xml">
|
|
<tree string=" Benefit" create="1" decoration-danger="decoration_color == 'danger'"
|
|
decoration-success="decoration_color == 'success'"
|
|
decoration-warning="decoration_color == 'warning'"
|
|
decoration-info="decoration_color == 'info'"
|
|
decoration-primary="decoration_color == 'primary'"
|
|
decoration-muted="decoration_color == 'muted'">
|
|
<field name="decoration_color" invisible="1"/>
|
|
<field name="code" string="Family Code" decoration-bf="1"/>
|
|
<field name="benefit_partner_name"/>
|
|
<field name="benefit_category_id" decoration-bf="1"/>
|
|
<field name="create_date" optional="hide"/>
|
|
<field name="approve_date" optional="hide"/>
|
|
<field name="meal_card" optional="hide"/>
|
|
<!-- <field name="request_producer"/>-->
|
|
<field name="father_id_number" optional="hide"/>
|
|
<field name="sms_phone"/>
|
|
<field name="activity_ids" widget="list_activity"/>
|
|
<field name="benefit_member_count"/>
|
|
<field name="non_member_count" optional="hide"/>
|
|
<field name="researcher_id"/>
|
|
<field name="branch_custom_id"/>
|
|
<field name="district_id"/>
|
|
<field name="last_visit_date" optional="hide"/>
|
|
<!-- <field name="institution_id"/>-->
|
|
<field name="state" widget="badge" decoration-success="state in ['first_approve', 'second_approve']"
|
|
decoration-muted="state in ['draft','new']"
|
|
decoration-danger="state in ['refused','suspended_second_approve']"
|
|
decoration-warning="state in ['first_refusal','waiting_approve']"
|
|
decoration-info="state not in ('waiting_approve','draft','new','first_approve', 'second_approve','first_refusal','refused','suspended_second_approve')"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<!-- <record id="grant_benefit_search" model="ir.ui.view">
|
|
<field name="name">grant.benefit.filter</field>
|
|
<field name="model">grant.benefit</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search Benefit">
|
|
<field name="name"/>
|
|
<field name="code"/>
|
|
<field name="benefit_category_id"/>
|
|
<field name="state"/>
|
|
</search>
|
|
</field>
|
|
</record> -->
|
|
<record model="ir.ui.view" id="grant_benefit_search">
|
|
<field name="name">external.benefits.search</field>
|
|
<field name="model">grant.benefit</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="code" string="Family Code"/>
|
|
<field name="name"/>
|
|
<field name="id_number"/>
|
|
<field name="email"/>
|
|
<field name="sms_phone"/>
|
|
<field name="phone"/>
|
|
<field name="branch_custom_id"/>
|
|
<field name="branch_family_id"/>
|
|
<group string="Group By">
|
|
<filter string="Branch" name="branch_custom_id" context="{'group_by': 'branch_custom_id'}"/>
|
|
<filter string="District" name="district_id" context="{'group_by': 'district_id'}"/>
|
|
<filter string="Family Category" name="benefit_category_id"
|
|
context="{'group_by': 'benefit_category_id'}"/>
|
|
<filter string="State" name="state" context="{'group_by': 'state'}"/>
|
|
<filter string="Researcher" name="researcher_id" context="{'group_by': 'researcher_id'}"/>
|
|
<separator/>
|
|
<filter string="Suspend Type" name="suspend_type" context="{'group_by': 'suspend_type'}"/>
|
|
<filter string="Suspend Method" name="suspend_method" context="{'group_by': 'suspend_method'}"/>
|
|
</group>
|
|
<separator/>
|
|
<filter string="Researcher Assignment" name="new"
|
|
domain="[('state','=','new')]"/>
|
|
<filter string="Waiting for Researcher" name="complete_info"
|
|
domain="[('state','=','complete_info')]"/>
|
|
<filter string="Waiting for Operation Manager" name="waiting_approve"
|
|
domain="[('state','=','waiting_approve')]"/>
|
|
<filter string="Waiting for Branch Manager" name="first_approve"
|
|
domain="[('state','=','first_approve')]"/>
|
|
<separator/>
|
|
<filter string="Temporarily Suspended" name="temporarily_suspended"
|
|
domain="[('state','=','waiting_approve'),('action_type','=','suspended')]"/>
|
|
<filter string="Suspended First Approve" name="suspended_first_approve"
|
|
domain="[('state', '=', 'first_approve'),('action_type','=','suspended')]"/>
|
|
<filter string="Suspended Second Approve" name="suspended_second_approve"
|
|
domain="[('state', '=', 'suspended_second_approve')]"/>
|
|
<filter string="Manual Suspended" name="manual_suspend"
|
|
domain="[('suspend_method', '=', 'manual')]"/>
|
|
<filter string="Auto Suspended" name="auto_suspend" domain="[('suspend_method', '=', 'auto')]"/>
|
|
<separator/>
|
|
<searchpanel>
|
|
<field name="state" enable_counters="1"/>
|
|
<field name="benefit_category_id" enable_counters="1"/>
|
|
</searchpanel>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
<!-- add activity -->
|
|
<record id="view_grant_benefit_activity" model="ir.ui.view">
|
|
<field name="name">activity.grant.benefit</field>
|
|
<field name="model">grant.benefit</field>
|
|
<field name="arch" type="xml">
|
|
<activity string="Family Activity">
|
|
<field name="id"/>
|
|
<templates>
|
|
<div t-name="activity-box">
|
|
<img t-att-src="activity_image('grant.benefit', 'image_128', record.id.raw_value)"
|
|
role="img"
|
|
t-att-title="record.id.value" t-att-alt="record.id.value"/>
|
|
<div>
|
|
<field name="name" display="full"/>
|
|
<field name="partner_id" muted="1" display="full"/>
|
|
</div>
|
|
</div>
|
|
</templates>
|
|
</activity>
|
|
</field>
|
|
</record>
|
|
<!--External Benefits-->
|
|
<record id="external_benefit_view_tree" model="ir.ui.view">
|
|
<field name="name">external_benefit_view_tree</field>
|
|
<field name="model">external.benefits</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="External Benefit">
|
|
<field name="name"/>
|
|
<field name="gender"/>
|
|
<field name="email"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="external_benefit_view_form" model="ir.ui.view">
|
|
<field name="name">external_benefit_view_form</field>
|
|
<field name="model">external.benefits</field>
|
|
<field name="arch" type="xml">
|
|
<form string="External Benefit">
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field placeholder="Name" name="name" class="oe_inline" readonly="0"
|
|
force_save="1"/>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<group col="2">
|
|
<field name="first_name" onchange="get_partner_name"/>
|
|
<field name="second_name"/>
|
|
</group>
|
|
<group>
|
|
<field name="middle_name"/>
|
|
<field name="family_name"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="id_number"/>
|
|
<field name="id_expiry"/>
|
|
<field name="gender"/>
|
|
<field name="birth_date"/>
|
|
<field name="age" readonly="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="phone"/>
|
|
<field name="email"/>
|
|
<field name="country_id"/>
|
|
<field name="state_id"/>
|
|
<field name="city_id"/>
|
|
<field name="street"/>
|
|
<field name="location"/>
|
|
<field name="work"/>
|
|
<field name="partner_id" required="0" readonly="1"/>
|
|
</group>
|
|
</group>
|
|
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record model="ir.ui.view" id="external_benefits_search">
|
|
<field name="name">external.benefits.search</field>
|
|
<field name="model">external.benefits</field>
|
|
<field name="arch" type="xml">
|
|
<search>
|
|
<field name="name"/>
|
|
<field name="email"/>
|
|
<field name="phone"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
<!-- benefit followers -->
|
|
<record model="ir.ui.view" id="benefit_followers_tree">
|
|
<field name="name">benefit_followers.tree</field>
|
|
<field name="model">benefit.followers</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="name"/>
|
|
<field name="follower_type"/>
|
|
<field name="age"/>
|
|
<field name="is_live_with_family"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="benefit_followers_form" model="ir.ui.view">
|
|
<field name="name">benefit_followers.form</field>
|
|
<field name="model">benefit.followers</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Benefit Followers">
|
|
<sheet>
|
|
<group>
|
|
<group>
|
|
<field name="benefit_id" invisible="1"/>
|
|
<field name="name" required="True"/>
|
|
<field name="follower_type" required="True" readonly="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="gender" required="True" readonly="1"/>
|
|
<field name="birth_date" required="True" readonly="1"/>
|
|
<field name="age" required="True" readonly="1"/>
|
|
<field name="is_live_with_family" required="True"/>
|
|
</group>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<!--neighborhood Representative-->
|
|
<record id="benefits_representative_view_tree" model="ir.ui.view">
|
|
<field name="name">benefits_representative_view_tree</field>
|
|
<field name="model">benefits.representative</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Benefits Representative">
|
|
<field name="name"/>
|
|
<field name="gender"/>
|
|
<field name="email"/>
|
|
<field name="phone"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
<record id="benefits_representative_view_form" model="ir.ui.view">
|
|
<field name="name">benefits_representative_view_form</field>
|
|
<field name="model">benefits.representative</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Benefits Representative">
|
|
<sheet>
|
|
<div class="oe_title">
|
|
<h1>
|
|
<field placeholder="Name" name="name" class="oe_inline" readonly="0"
|
|
force_save="1"/>
|
|
</h1>
|
|
</div>
|
|
<group>
|
|
<group>
|
|
<field name="id_number"/>
|
|
<field name="id_expiry"/>
|
|
<field name="gender"/>
|
|
<field name="birth_date"/>
|
|
<field name="age" readonly="1"/>
|
|
</group>
|
|
<group>
|
|
<field name="phone"/>
|
|
<field name="email"/>
|
|
<field name="country_id"/>
|
|
<field name="state_id"/>
|
|
<field name="city_id"/>
|
|
<field name="street"/>
|
|
<field name="location"/>
|
|
<field name="location"/>
|
|
<field name="work"/>
|
|
<field name="partner_id" required="0" readonly="1"/>
|
|
</group>
|
|
</group>
|
|
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo> |