114 lines
5.9 KiB
XML
114 lines
5.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<data>
|
|
<record model="ir.ui.view" id="Mother_tree">
|
|
<field name="name">Mother Info</field>
|
|
<field name="model">mother.mother</field>
|
|
<field name="arch" type="xml">
|
|
<list class="font_box">
|
|
<field name="Kname"/>
|
|
<field name="Ename"/>
|
|
<field name="situation"/>
|
|
<field name="Dob"/>
|
|
<field name="Pod"/>
|
|
<field name="Phone"/>
|
|
<field name="Email"/>
|
|
<field name="id_card"/>
|
|
<field name="id_unit"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.ui.view" id="situation_tree">
|
|
<field name="name">situation Info</field>
|
|
<field name="model">situation.sys</field>
|
|
<field name="arch" type="xml">
|
|
<list class="font_box">
|
|
<field name="name"/>
|
|
</list>
|
|
</field>
|
|
</record>
|
|
|
|
<record model="ir.actions.act_window" id="situation_sys">
|
|
<field name="name">situation info</field>
|
|
<field name="res_model">situation.sys</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
<record model="ir.actions.act_window" id="mother_mo">
|
|
<field name="name">ព័ត៌មានគ្រួសារ</field>
|
|
<field name="res_model">mother.mother</field>
|
|
<field name="view_mode">list,form</field>
|
|
</record>
|
|
|
|
<record id="form_mother" model="ir.ui.view">
|
|
<field name="name">Mother info</field>
|
|
<field name="model">mother.mother</field>
|
|
<field name="type">form</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Family Form" version="9.0" class="font_box">
|
|
<group>
|
|
<group>
|
|
<field name="type_postion" style="width:30%%"/>
|
|
</group>
|
|
<group>
|
|
<field name="number_child" placeholder="នាក់" invisible="type_postion not in ('h','w')"/>
|
|
<field name="num_d" placeholder="នាក់" invisible="type_postion not in ('h','w')"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="id_unit"/>
|
|
<field name="Kname"/>
|
|
<field name="Ename"/>
|
|
<field name="Gender"/>
|
|
<field name="id_card"/>
|
|
</group>
|
|
<group>
|
|
<field name="Dob"/>
|
|
<field name="situation"/>
|
|
<field name="Phone"/>
|
|
<field name="Email" widget="email"/>
|
|
</group>
|
|
</group>
|
|
<group>
|
|
<field name="Pod">
|
|
<list editable="bottom">
|
|
<field name="province_id" required="1" context="{'default_loc_code':'1'}" widget="selection"/>
|
|
<field name="district_id" invisible ="province_id == False" required="1" context="{'default_loc_code':'2','default_parent_location':province_id}" options="{'no_create_edit': True,'no_open': True}"/>
|
|
<field name="commune_id" invisible ="province_id == False" required="1" context="{'default_loc_code':'3','default_parent_location':district_id}" options="{'no_create_edit': True,'no_open': True}"/>
|
|
<field name="village_id" invisible ="province_id == False" context="{'default_loc_code':'4','default_parent_location':commune_id}" options="{'no_create_edit': True,'no_open': True}"/>
|
|
<field name="street"/>
|
|
<field name="No"/>
|
|
<field name="group"/>
|
|
</list>
|
|
</field>
|
|
</group>
|
|
<group>
|
|
<field name="Add" widget="one2many_list">
|
|
<list editable="bottom">
|
|
<field name="province_id" required="1" context="{'default_loc_code':'1'}" widget="selection"/>
|
|
<field name="district_id" invisible ="province_id == False" required="1" context="{'default_loc_code':'2','default_parent_location':province_id}" options="{'no_create_edit': True,'no_open': True}"/>
|
|
<field name="commune_id" invisible ="province_id == False" required="1" context="{'default_loc_code':'3','default_parent_location':district_id}" options="{'no_create_edit': True,'no_open': True}"/>
|
|
<field name="village_id" invisible ="province_id == False" context="{'default_loc_code':'4','default_parent_location':commune_id}" options="{'no_create_edit': True,'no_open': True}"/>
|
|
<field name="street"/>
|
|
<field name="No"/>
|
|
<field name="group"/>
|
|
</list>
|
|
</field>
|
|
</group>
|
|
<group>
|
|
<group>
|
|
<field name="acc"/>
|
|
<field name="position_id"/>
|
|
<field name="department_id"/>
|
|
</group>
|
|
<group>
|
|
<field name="organize_id"/>
|
|
<field name="instituation_id"/>
|
|
</group>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo> |