first push message
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="dashboards_grape_cpp" model="ir.ui.view">
|
||||
<field name="name">family_cpp</field>
|
||||
<field name="model">family.cpp</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Manufacturing Analysis" type="pie">
|
||||
<field name="commune_id" type="col"/>
|
||||
<field name="Gender" type="col"/>
|
||||
<field name="status_id" type="row"/>
|
||||
</graph>
|
||||
</field>
|
||||
</record>
|
||||
<!-- <record id="filter_by_Gender" model="ir.filters">-->
|
||||
<!-- <field name="name"> Gender </field>-->
|
||||
<!-- <field name="model_id">family.cpp</field>-->
|
||||
<!-- <field name="user_id" eval="False"/>-->
|
||||
<!-- <field name="context">{'group_by':['Gender']}</field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<!-- <record id="filter_by_commune" model="ir.filters">-->
|
||||
<!-- <field name="name"> commune </field>-->
|
||||
<!-- <field name="model_id">family.cpp</field>-->
|
||||
<!-- <field name="user_id" eval="False"/>-->
|
||||
<!-- <field name="context">{'group_by':['commune_id']}</field>-->
|
||||
<!-- </record>-->
|
||||
<!-- <record id="filter_by_status" model="ir.filters">-->
|
||||
<!-- <field name="name">status</field>-->
|
||||
<!-- <field name="model_id">family.cpp</field>-->
|
||||
<!-- <field name="user_id" eval="False"/>-->
|
||||
<!-- <field name="context">{'group_by':['status_id']}</field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<record id="action_dashboards_cpp" model="ir.actions.act_window">
|
||||
<field name="name">ក្តារព័ត៌មានជាសមាជិកបក្សស្រុកទ្រាំង</field>
|
||||
<field name="res_model">family.cpp</field>
|
||||
<field name="view_mode">graph,list</field>
|
||||
<field name="view_id" ref="dashboards_grape_cpp"/>
|
||||
<field name="domain">[("status_id","=","approve"),("is_delete_id","=",1)]</field>
|
||||
</record>
|
||||
<menuitem name="ក្តារព័ត៌មានសមាជិកបក្ស" action="action_dashboards_cpp" id="action_dashboards_cpp_s" parent="youth_and_scholarship_menu_root_1" sequence="0" groups="base.user_root"/>
|
||||
|
||||
</data>
|
||||
|
||||
</openerp>
|
||||
@@ -0,0 +1,45 @@
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="dashboards_grape_dis_cpp" model="ir.ui.view">
|
||||
<field name="name">family_cpp</field>
|
||||
<field name="model">family.cpp</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Manufacturing Analysis" type="pie">
|
||||
<field name="commune_id" type="col"/>
|
||||
<field name="Gender" type="col"/>
|
||||
<field name="status_id" type="row"/>
|
||||
</graph>
|
||||
</field>
|
||||
</record>
|
||||
<!-- <record id="filter_by_Gender" model="ir.filters">-->
|
||||
<!-- <field name="name"> Gender </field>-->
|
||||
<!-- <field name="model_id">family.cpp</field>-->
|
||||
<!-- <field name="user_id" eval="False"/>-->
|
||||
<!-- <field name="context">{'group_by':['Gender']}</field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<!-- <record id="filter_by_commune" model="ir.filters">-->
|
||||
<!-- <field name="name"> commune </field>-->
|
||||
<!-- <field name="model_id">family.cpp</field>-->
|
||||
<!-- <field name="user_id" eval="False"/>-->
|
||||
<!-- <field name="context">{'group_by':['commune_id']}</field>-->
|
||||
<!-- </record>-->
|
||||
<!-- <record id="filter_by_status" model="ir.filters">-->
|
||||
<!-- <field name="name">status</field>-->
|
||||
<!-- <field name="model_id">family.cpp</field>-->
|
||||
<!-- <field name="user_id" eval="False"/>-->
|
||||
<!-- <field name="context">{'group_by':['status_id']}</field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<record id="action_dashboards_dis_cpp" model="ir.actions.act_window">
|
||||
<field name="name">ក្តារព័ត៌មានមិនទាន់សំរេចជាសមាជិកស្រុកទ្រាំង</field>
|
||||
<field name="res_model">family.cpp</field>
|
||||
<field name="view_mode">graph,list</field>
|
||||
<field name="view_id" ref="dashboards_grape_dis_cpp"/>
|
||||
<field name="domain">[("status_id","=","disapprove"),("is_delete_id","=",1)]</field>
|
||||
</record>
|
||||
<menuitem name="ក្តារព័ត៌មានមិនទាន់ជាសមាជិកបក្ស" action="action_dashboards_dis_cpp" id="action_dashboards_cpp_dis" parent="youth_and_scholarship_menu_root_1" sequence="0" groups="youth_and_scholarship.group_cpp_manager,base.user_root"/>
|
||||
|
||||
</data>
|
||||
|
||||
</openerp>
|
||||
@@ -0,0 +1,37 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="dashboards_grape" model="ir.ui.view">
|
||||
<field name="name">dashboard_youth</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Manufacturing Analysis" type="bar" stacked="True">
|
||||
<field name="status"/>
|
||||
<field name="Gender"/>
|
||||
</graph>
|
||||
</field>
|
||||
</record>
|
||||
<!-- <record id="filter_by_Gender" model="ir.filters">-->
|
||||
<!-- <field name="name">Gender</field>-->
|
||||
<!-- <field name="res_model">youth.scholarship</field>-->
|
||||
<!-- <field name="user_id" eval="False"/>-->
|
||||
<!-- <field name="context">{'group_by': 'Gender'}</field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<!-- <record id="filter_by_status" model="ir.filters">-->
|
||||
<!-- <field name="name"> status </field>-->
|
||||
<!-- <field name="res_model">youth.scholarship</field>-->
|
||||
<!-- <field name="user_id" eval="False"/>-->
|
||||
<!-- <field name="context">{'group_by':['status']}</field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<record id="action_dashboards" model="ir.actions.act_window">
|
||||
<field name="name">ក្តារព័ត៌មាន</field>
|
||||
<field name="res_model">youth.scholarship</field>
|
||||
<field name="view_mode">graph</field>
|
||||
<field name="view_id" ref="dashboards_grape"/>
|
||||
<field name="domain">[("IsDeleted","=",1),("Job_id","=","Youth")]</field>
|
||||
</record>
|
||||
<menuitem name="ក្តារព័ត៌មាន" action="action_dashboards" id="action_dashboards_id" parent="youth_and_scholarship.menu_root" sequence="0" groups="youth_and_scholarship.group_uyfc_manager,base.user_root"/>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="cpp_app_list_tree">
|
||||
<field name="name">ការអនុម័តជាសមាជិក</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="false" import="false">
|
||||
<field name="group"/>
|
||||
<field name="district"/>
|
||||
<field name="commune"/>
|
||||
<field name="village"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="cpp_app_list_form">
|
||||
<field name="name">ការអនុម័ត</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<form create="false" edit="false">
|
||||
<header>
|
||||
<field name="status" invisible="1"/>
|
||||
<field name="is_delete" invisible="1"/>
|
||||
<button name="action_delete" state="app" string="លុបចោល" type="object" confirm="Are you sure you want to do this?" groups="base.user_root"/>
|
||||
</header>
|
||||
<div>
|
||||
<div class="font_box" >
|
||||
<div style="float: left; padding:0 0 30px 20px; width:25%%">
|
||||
<group style="font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); font-size:11px;">
|
||||
<field name="district" string="គណៈកម្មាធិការគណបក្សស្រុក" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="commune" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="village" widget="selection"/>
|
||||
<field name="group"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="no" string="ផ្ទះលេខ"/>
|
||||
<field name="street" string="ផ្លូវលេខ"/>
|
||||
</group>
|
||||
</div>
|
||||
<div style="padding:0 30px 30px 0; float:right;text-align:center;">
|
||||
<div><strong>ឯករាជ្យ សន្តិភាព សេរីភាព ប្រជាធិបតេយ្យ </strong></div>
|
||||
<div><strong>    អព្យាក្រឹត និង វឌ្ឍនភាពសង្គម</strong></div>
|
||||
</div>
|
||||
<div style="text-align: center; margin:0 200px 0 0;">
|
||||
<div><img src='/youth_and_scholarship/static/src/img/logo_cpp.png' style="width:80px; height:70px;"/></div>
|
||||
<div style="margin:10px 0 0 0" class="font_bold_light"><strong style="padding:0 45px 0 0; font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); text-align:center; font-size:11px;">បញ្ជីរាយនាមសមាជិកបក្សតាមគ្រួសារបក្ស</strong></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-family:Khmer OS content; src:url(../font/KhmerOS_content.ttf) ;format('truetype'); font-size:14px;">
|
||||
<field name="child_cpp_id">
|
||||
<list>
|
||||
<field name="kname"/>
|
||||
<field name="Gender" style="width:60%%"/>
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
<field name="date_in"/>
|
||||
<field name="no_card"/>
|
||||
<field name="type_postion"/>
|
||||
<field name="id_card"/>
|
||||
<field name="other"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="family_cpp_form_action">
|
||||
<field name="name">សមាជិកបក្ស</field>
|
||||
<field name="res_model">family.cpp</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="cpp_app_new">
|
||||
<field name="name">បញ្ជីសមាជិកបក្ស</field>
|
||||
<field name="res_model">cpp.parent</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="context">{}</field>
|
||||
<field name="domain">[("status","=","approve"),("is_delete","=",1)]</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_app_list_tree">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="cpp_app_list_tree"/>
|
||||
<field name="act_window_id" ref="cpp_app_new"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_app_list_form">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="cpp_app_list_form"/>
|
||||
<field name="act_window_id" ref="cpp_app_new"/>
|
||||
</record>
|
||||
<!-- actions -->
|
||||
<menuitem name="បញ្ជីសមាជិកបក្ស" id="menu_approve" parent="cpp_menu"
|
||||
action="cpp_app_new" sequence="10" groups="youth_and_scholarship.group_cpp_manager,base.user_root,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,282 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="approval_view">
|
||||
<field name="name">approval views</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="false" import="false">
|
||||
<field name="Code_id"/>
|
||||
<field name="Kname"/>
|
||||
<field name="Gender"/>
|
||||
<field name="Nationality"/>
|
||||
<field name="DOB"/>
|
||||
<field name="Phone"/>
|
||||
<field name="youth_kind"/>
|
||||
<field name="id_card" string="លេខអត្តសញ្ញាណប័ណ្ណ"/>
|
||||
<!--<field name="id_unit"/>-->
|
||||
<!--<field name="status"/>-->
|
||||
</list>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="approval_form">
|
||||
<field name="name">Approval Form</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<form create="false">
|
||||
<header>
|
||||
<field name="status" invisible="1"/>
|
||||
<field name="IsDeleted" invisible="1"/>
|
||||
<button name="action_approval" status="app" string="អនុម័តជាសមាជិក" type="object" confirm="Are you sure you want to do this?" invisible="status != 'disapprove'"/>
|
||||
<button name ="action_cancel" type = "object" string = "Cancel" invisible="IsDeleted != 1"/>
|
||||
<!--<field name="status" widget="statusbar" statusbar_visible="res,dis"/>-->
|
||||
</header>
|
||||
<notebook>
|
||||
<page string="ពាក្យសុំចូល/ពត៌មានផ្ទាល់ខ្លួន" name="information_youth">
|
||||
<div class="widget_box">
|
||||
<div class="widget_title"><h5><label for="Code_id" string="ពត៌មានផ្ទាល់ខ្លួន"/></h5></div>
|
||||
<div>
|
||||
<group readonly="1">
|
||||
<field name="Code_id" style="width:20%%" readonly="1"/>
|
||||
<field name="image" widget="image" class="oe_avatar oe_left" nolabel="1" readonly="1"/>
|
||||
</group>
|
||||
<group readonly="1">
|
||||
<group>
|
||||
<field name="Kname" placeholder="ជាភាសាខ្មែរ..." readonly="1"/>
|
||||
<field name="Ename" nolabel="1" placeholder="ជាឡាតាំង..." readonly="1"/>
|
||||
<field name="Gender" readonly="1"/>
|
||||
<field name="DOB" readonly="1"/>
|
||||
</group>
|
||||
<group readonly="1">
|
||||
<field name="nation_id" readonly="1"/>
|
||||
<field name="Nationality" readonly="1"/>
|
||||
<field name="Alive_id" style="width:20%%" readonly="1"/>
|
||||
<field name="status" invisible="1" />
|
||||
<field name="IsDeleted" invisible="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<group readonly="1">
|
||||
<field name="POD" readonly="1">
|
||||
<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>
|
||||
</div>
|
||||
<div class="widget_title">
|
||||
<h5><label for="Phone" string="ព័ត៌មានទំនាក់ទំនង និងអាស័យដ្ឋាន"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<group readonly="1">
|
||||
<field name="Phone" widget="phone"/>
|
||||
<field name="Email" widget="email"/>
|
||||
<field name="fb"/>
|
||||
<field name="gmail"/>
|
||||
</group>
|
||||
<group readonly="1">
|
||||
<field name="Address">
|
||||
<list editable="bottom">
|
||||
<field name="province_id" widget="selection"/>
|
||||
<field name="district_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="commune_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="village_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
<field name="group"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</div>
|
||||
<div class="widget_title">
|
||||
<h5><label for="Job_work" string="អំពីការងារ និងស្ថាប័ន"/></h5>
|
||||
</div>
|
||||
<group readonly="1">
|
||||
<group>
|
||||
<field name="Job_work" widget="many2many_tags"/>
|
||||
<field name="position_id" widget="many2many_tags"/>
|
||||
<field name="department_id" widget="many2many_tags"/>
|
||||
<field name="organize_id" widget="many2many_tags"/>
|
||||
<field name="instituation_id" widget="many2many_tags"/>
|
||||
</group>
|
||||
<group >
|
||||
<field name="id_card" string="លេខអត្តសញ្ញាណបណ្ណ"/>
|
||||
<field name="id_unit"/>
|
||||
</group>
|
||||
</group>
|
||||
<div class="widget_title">
|
||||
<h5><label for="youth_kind" string="ប្រភេទយុវជន"/></h5>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="youth_kind" domain="[('parent_id','=',youth_kind)]" style="width:30%%" readonly="1"/>
|
||||
</group>
|
||||
<group readonly="1">
|
||||
<field name="member_in" >
|
||||
<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>
|
||||
<div class="widget_title">
|
||||
<h5><label for="al_office" string="ការិយាល័យបោះឆ្នោត"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<group readonly="1">
|
||||
<field name="cpp_no" style="width:35%%"/>
|
||||
<field name="al_office"/>
|
||||
<field name="El_Office">
|
||||
<list editable="bottom">
|
||||
<field name="province_id" widget="selection"/>
|
||||
<field name="district_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="commune_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="village_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
<field name="group"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</div>
|
||||
<div class="widget_title">
|
||||
<h5><label for="upload_file" string="ឯកសារបញ្ជាក់"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<group readonly="1">
|
||||
<field name="upload_file" filename="file_name"/>
|
||||
<field name="file_name" invisible="1"/>
|
||||
</group>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</page>
|
||||
<page string="ប្រវត្តិនៃការសិក្សា និងវគ្គបណ្តុះបណ្តាល" name="History study">
|
||||
<group readonly="1">
|
||||
<field name="history_study_id" nolabel="1">
|
||||
<list string="History study" class="font_box" editable="bottom">
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំបញ្ចប់"/>
|
||||
<field name="degree_level" string="កំរិតសិក្សា"/>
|
||||
<field name="kill_id" string="ជំនាញ"/>
|
||||
<field name="university_id" string="គ្រឹះស្ថានសិក្សា"/>
|
||||
<field name="country" string="ប្រទេស"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="ប្រវត្តិការងារ" name="History Job">
|
||||
<group readonly="1">
|
||||
<field name="history_job_id" nolabel="1">
|
||||
<list string="History Job" editable="bottom">
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំបញ្ចប់"/>
|
||||
<field name="job_id" string="មុខតំណែង"/>
|
||||
<field name="depart_id" string="ផ្នែក"/>
|
||||
<field name="posit_id" string="ឋានៈ"/>
|
||||
<field name="department_gen" string="អគ្គនាយកដ្ឋាន/អង្គភាព"/>
|
||||
<field name="leader" string="ថ្នាក់ដឹកនាំផ្ទាល់"/>
|
||||
<field name="organize" string="ក្រសួង/ស្ថាប័ន"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="ការលើកសរសើរ ឬដាក់ពិន័យ">
|
||||
<group readonly="1">
|
||||
<field name="praise_pr_id" string="ការលើកសរសើរ">
|
||||
<list string="History Job" editable="bottom">
|
||||
<field name="date"/>
|
||||
<field name="pr_kind"/>
|
||||
<field name="lavels"/>
|
||||
<field name="upload_file"/>
|
||||
<field name="file_name" invisible="1"/>
|
||||
<field name="country"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group readonly="1">
|
||||
<field name="punish_pus_id" string="ការដាក់ពិន័យ">
|
||||
<list string="History Job" editable="bottom">
|
||||
<field name="date"/>
|
||||
<field name="pun_kind"/>
|
||||
<field name="lavels"/>
|
||||
<field name="upload_file"/>
|
||||
<field name="file_name" invisible="1"/>
|
||||
<field name="country"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="ពត៌មានគ្រួសារ" name="Family info">
|
||||
<group readonly="1">
|
||||
<field name="parent_id" nolabel="1">
|
||||
<list string="info family" class="font_box" editable="top">
|
||||
<field name="type_postion"/>
|
||||
<field name="Kname"/>
|
||||
<field name="Ename"/>
|
||||
<field name="situation"/>
|
||||
<field name="Email"/>
|
||||
<field name="Dob"/>
|
||||
<!--<field name="Pod"/>-->
|
||||
<field name="Phone"/>
|
||||
<!--<field name="position_id"/>-->
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="ការធានាអះអាង និងអ្នកណែរនាំ" name="Assurance">
|
||||
<group readonly="1">
|
||||
<field name="assurance_id" widget="one2many_list" nolabel="1">
|
||||
<list string="ការធានាអះអាង និងអ្នកណែរនាំ" editable="top">
|
||||
<field name="type_postion" string="ការធានាអះអាង និងណែរនាំ៖"/>
|
||||
<field name="askname" string="គោត្តនាម នាម(ជាភាសាខ្មែរ)"/>
|
||||
<field name="asename" string="គោត្តនាម នាម(ជាឡាតាំង)"/>
|
||||
<field name="dob" string="ថ្ងៃខែឆ្នាំកំណើត"/>
|
||||
<field name="email" string="អ៊ីម៉ែល៖"/>
|
||||
<field name="phone" string="លេខទូរសព្ទ"/>
|
||||
<!--<field name="pod" string="ទីកន្លែងកំណើត"/>-->
|
||||
<field name="date_signal" string="ថ្ងៃខែឆ្នាំចុះហត្ថលេខា"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="youth_form_action">
|
||||
<field name="name">អនុម័តបញ្ជូលសមាជិក</field>
|
||||
<field name="res_model">youth.scholarship</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="domain">[("IsDeleted","=",1),("Job_id","=","Youth"),("status","=","disapprove")]</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_youth_tree">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="approval_view"/>
|
||||
<field name="act_window_id" ref="youth_form_action"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_form_youth">
|
||||
<field eval="3" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="approval_form"/>
|
||||
<field name="act_window_id" ref="youth_form_action"/>
|
||||
</record>
|
||||
<!-- actions -->
|
||||
<menuitem name="អនុម័តបញ្ចូលសមាជិក" id="youth_and_scholarship.menu_2" parent="youth_and_scholarship.menu_1"
|
||||
action="youth_form_action" sequence="3" groups="youth_and_scholarship.group_uyfc_user_disapprove,youth_and_scholarship.group_uyfc_manager"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="config_view">
|
||||
<field name="name">config system</field>
|
||||
<field name="model">config.sys</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="size"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="config_form">
|
||||
<field name="name">config system</field>
|
||||
<field name="model">config.sys</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group>
|
||||
<field name="size"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_config" model="ir.actions.act_window">
|
||||
<field name="name">system config</field>
|
||||
<field name="res_model">config.sys</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
<menuitem name="system config" id="config_1" parent="youth_and_scholarship.menu_root"
|
||||
action="action_config"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,216 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="cpp_input_tree">
|
||||
<field name="name">ការបញ្ជូលសមាជិក</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="group"/>
|
||||
<field name="district"/>
|
||||
<field name="commune"/>
|
||||
<field name="village"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="cpp_input_form">
|
||||
<field name="name">ការបញ្ជូលសមាជិក</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<header>
|
||||
<field name="status" invisible="1"/>
|
||||
<field name="is_delete" invisible="1"/>
|
||||
<button name="action_to_review" string="ការបញ្ជួនទៅត្រួតពិនិត្យ" type="object" confirm="Are you sure you want to do this?" invisible="state == 'sent'"/>
|
||||
<button name="action_delete" string="លុបចោល" type="object" confirm="Are you sure you want to do this?" groups="base.user_root"/>
|
||||
<field name="state" widget="statusbar"/>
|
||||
</header>
|
||||
<div>
|
||||
<div class="font_box" >
|
||||
<div style="float: left; padding:0 0 30px 20px; width:25%%">
|
||||
<group style="font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); font-size:11px;">
|
||||
<field name="district" string="គណៈកម្មាធិការគណបក្សស្រុក" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="commune" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="village" widget="selection"/>
|
||||
<field name="group"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="no" string="ផ្ទះលេខ"/>
|
||||
<field name="street" string="ផ្លូវលេខ"/>
|
||||
</group>
|
||||
</div>
|
||||
<div style="padding:0 30px 30px 0; float:right;text-align:center;">
|
||||
<div><strong>ឯករាជ្យ សន្តិភាព សេរីភាព ប្រជាធិបតេយ្យ </strong></div>
|
||||
<div><strong>    អព្យាក្រឹត និង វឌ្ឍនភាពសង្គម</strong></div>
|
||||
</div>
|
||||
<div style="text-align: center; margin:0 200px 0 0;">
|
||||
<div><img src='/youth_and_scholarship/static/src/img/logo_cpp.png' style="width:80px; height:70px;"/></div>
|
||||
<div style="margin:10px 0 0 0" class="font_bold_light"><strong style="padding:0 45px 0 0; font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); text-align:center; font-size:11px;">បញ្ជីរាយនាមសមាជិកបក្សតាមគ្រួសារបក្ស</strong></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<field name="child_cpp_id">
|
||||
<list>
|
||||
<field name="kname"/>
|
||||
<field name="Gender" style="width:60%%"/>
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
<field name="date_in"/>
|
||||
<field name="no_card"/>
|
||||
<field name="type_postion"/>
|
||||
<field name="id_card"/>
|
||||
<field name="other"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="form_family_cpp_input">
|
||||
<field name="name">family_cpp_from_input</field>
|
||||
<field name="model">family.cpp</field>
|
||||
<field name="arch" type="xml">
|
||||
<form class="font_box">
|
||||
<field name="image" widget="image" class="oe_avatar"/>
|
||||
<group>
|
||||
<group>
|
||||
<field name="kname"/>
|
||||
<field name="Gender"/>
|
||||
<field name="phone_id" string="លេខទូរស័ព្ទ"/>
|
||||
<field name="email_id" string="អ៊ីម៉ែល"/>
|
||||
<field name="telegram" string="តេឡេក្រាម"/>
|
||||
<field name="facebook" string="Facebook"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="dob" placeholder="01/01/1992"/>
|
||||
<field name="years" readonly="1"/>
|
||||
<field name="Job_work"/>
|
||||
<field name="position_id" widget="many2many_tags" string="តួនាទី"/>
|
||||
<field name="organize_id" widget="many2many_tags" string="អង្គភាព"/>
|
||||
<field name="instite_id" widget="many2many_tags" string="ស្ថាប័ន"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="status_family"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="post_in_family"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="pod" colspan="2">
|
||||
<list editable="bottom">
|
||||
<field name="province_id" widget="selection"/>
|
||||
<field name="district_id" widget="selection"/>
|
||||
<field name="commune_id" widget="selection"/>
|
||||
<field name="village_id" widget="selection"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="date_in"/>
|
||||
<field name="id_card"/>
|
||||
<field name="no_card"/>
|
||||
</group>
|
||||
<group >
|
||||
<field name="type_postion"/>
|
||||
<field name="cpp_parent_id" invisible="1"/>
|
||||
<field name="district_id" invisible="type_postion != 2"/>
|
||||
<field name="commune_id" invisible="type_postion != 2"/>
|
||||
<field name="village_id" invisible="type_postion != 2"/>
|
||||
<field name="group_id" invisible="type_postion != 2"/>
|
||||
<field name="other"/>
|
||||
<field name="ps_id"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="el_Office">
|
||||
<list editable="bottom">
|
||||
<field name="province_id" widget="selection"/>
|
||||
<field name="district_id" widget="selection"/>
|
||||
<field name="commune_id" widget="selection"/>
|
||||
<field name="village_id" widget="selection"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group>
|
||||
<field name="no_ps"/>
|
||||
<field name="time" string="បោះឆ្នោតបាន" placeholder="ដង"/>
|
||||
</group>
|
||||
<group string="ព័ត៌មានគ្រួសារ" invisible="status_family == '1'">
|
||||
<field name="child_id" colspan="2">
|
||||
<list>
|
||||
<field name="kname"/>
|
||||
<field name="Gender"/>
|
||||
<field name="dob"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<!-- <record id="search_view" model="ir.ui.view">-->
|
||||
<!-- <field name="name">group_by_input</field>-->
|
||||
<!-- <field name="model">cpp.parent</field>-->
|
||||
<!-- <field name="arch" type="xml">-->
|
||||
<!-- <search string="DMR">-->
|
||||
<!-- <field name="commune"/>-->
|
||||
<!-- <field name="village"/>-->
|
||||
<!-- <field name="group"/>-->
|
||||
<!-- <filter name="commune"/>-->
|
||||
<!-- <filter name="village"/>-->
|
||||
<!-- <filter name="group"/>-->
|
||||
<!-- <group expand="0" string="Group By">-->
|
||||
<!-- <filter string="ឃុំ" name="commune" context="{'group_by': 'commune'}"/>-->
|
||||
<!-- <filter string="ភូមិ" name="village" context="{'group_by': 'village'}"/>-->
|
||||
<!-- <filter string="ក្រុមទី" name="group" context="{'group_by': 'group'}"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- </search>-->
|
||||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
<record model="ir.actions.act_window" id="family_cpp_form_action">
|
||||
<field name="name">សមាជិកបក្ស</field>
|
||||
<field name="res_model">family.cpp</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="cpp_input_new">
|
||||
<field name="name">ការបញ្ចូលព័ត៌មាន</field>
|
||||
<field name="res_model">cpp.parent</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="domain">[("status","=","input"),("is_delete","=",1)]</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_input_tree">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="cpp_input_tree"/>
|
||||
<field name="act_window_id" ref="cpp_input_new"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_input_form">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="cpp_input_form"/>
|
||||
<field name="act_window_id" ref="cpp_input_new"/>
|
||||
</record>
|
||||
<menuitem name="CPP-TAKEO" id="youth_and_scholarship_menu_root_1" sequence="2" web_icon="youth_and_scholarship,static/description/icon.png" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_input"/>
|
||||
<menuitem name="ការកំណត់" id="cpp_setting" parent="youth_and_scholarship_menu_root_1" groups="youth_and_scholarship.group_cpp_manager" sequence="21"/>
|
||||
<!-- actions -->
|
||||
|
||||
<menuitem name="សមាជិកបក្ស" id="cpp_menu" sequence="3" parent="youth_and_scholarship_menu_root_1" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_input"/>
|
||||
<!-- actions -->
|
||||
<menuitem name="ការបញ្ចូលព័ត៌មាន" id="menu_input" parent="cpp_menu"
|
||||
action="cpp_input_new" sequence="5" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_input"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,102 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="cpp_dis_tree">
|
||||
<field name="name">ការអនុម័តជាសមាជិក</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="false" import="false">
|
||||
<field name="group"/>
|
||||
<field name="district"/>
|
||||
<field name="commune"/>
|
||||
<field name="village"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="cpp_dis_form">
|
||||
<field name="name">ការអនុម័ត</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<form create="false" edit="false">
|
||||
<header>
|
||||
<field name="status" invisible="1"/>
|
||||
<button name="action_confirm_cpp" state="app" string="អនុម័តជាសមាជិកបក្ស" type="object" confirm="Are you sure you want to do this?" invisible="state != 'app'"/>
|
||||
<button name="action_delete" state="app" string="លុបចោល" type="object" confirm="Are you sure you want to do this?" groups="base.user_root"/>
|
||||
<button name="action_cancel" state="draft" string="ព៌ត៌មានខុស" type="object" confirm="Are you sure you want to do this?" invisible="state != 'app'"/>
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,sent,app,done"/>
|
||||
</header>
|
||||
<div>
|
||||
<div class="font_box" >
|
||||
<div style="float: left; padding:0 0 30px 20px; width:25%%">
|
||||
<group style="font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); font-size:11px;">
|
||||
<field name="district" string="គណៈកម្មាធិការគណបក្សស្រុក" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="commune" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="village" widget="selection"/>
|
||||
<field name="group"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="no" string="ផ្ទះលេខ"/>
|
||||
<field name="street" string="ផ្លូវលេខ"/>
|
||||
</group>
|
||||
</div>
|
||||
<div style="padding:0 30px 30px 0; float:right;text-align:center;">
|
||||
<div><strong>ឯករាជ្យ សន្តិភាព សេរីភាព ប្រជាធិបតេយ្យ </strong></div>
|
||||
<div><strong>    អព្យាក្រឹត និង វឌ្ឍនភាពសង្គម</strong></div>
|
||||
</div>
|
||||
<div style="text-align: center; margin:0 200px 0 0;">
|
||||
<div><img src='/youth_and_scholarship/static/src/img/logo_cpp.png' style="width:80px; height:70px;"/></div>
|
||||
<div style="margin:10px 0 0 0" class="font_bold_light"><strong style="padding:0 45px 0 0; font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); text-align:center; font-size:11px;">បញ្ជីរាយនាមសមាជិកបក្សតាមគ្រួសារបក្ស</strong></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-family:Khmer OS content; src:url(../font/KhmerOS_content.ttf) ;format('truetype'); font-size:14px;">
|
||||
<field name="child_cpp_id">
|
||||
<list editable="top">
|
||||
<field name="kname"/>
|
||||
<field name="Gender" style="width:60%%"/>
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
<field name="date_in"/>
|
||||
<field name="no_card"/>
|
||||
<field name="type_postion"/>
|
||||
<field name="id_card"/>
|
||||
<field name="other"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="family_cpp_form_action">
|
||||
<field name="name">សមាជិកបក្ស</field>
|
||||
<field name="res_model">family.cpp</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="cpp_dis_new">
|
||||
<field name="name">ការអនុម័តជាសមាជិក</field>
|
||||
<field name="res_model">cpp.parent</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="context">{}</field>
|
||||
<field name="domain">[("status","=","disapprove")]</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_dis_tree">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="cpp_dis_tree"/>
|
||||
<field name="act_window_id" ref="cpp_dis_new"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_dis_form">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="cpp_dis_form"/>
|
||||
<field name="act_window_id" ref="cpp_dis_new"/>
|
||||
</record>
|
||||
<!-- actions -->
|
||||
<menuitem name="ការអនុម័តជាសមាជិកបក្ស" id="menu_disapprove" parent="cpp_menu"
|
||||
action="cpp_dis_new" sequence="7" groups="youth_and_scholarship.group_cpp_manager,base.user_root,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_disapprove"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,35 @@
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="dashboard_w" model="ir.ui.view">
|
||||
<field name="name">dashbaord_w</field>
|
||||
<field name="model">dashbaord.w</field>
|
||||
<field name="arch" type="xml">
|
||||
<graph string="Manufacturing Analysis" type="pivot" stacked="True">
|
||||
|
||||
</graph>
|
||||
</field>
|
||||
</record>
|
||||
<record id="filter_by_Gender" model="ir.filters">
|
||||
<field name="name"> gender_cpp </field>
|
||||
<field name="model_id">dashbaord.w</field>
|
||||
<field name="user_id" eval="False"/>
|
||||
<field name="context">{'group_by':['gender_cpp']}</field>
|
||||
</record>
|
||||
|
||||
<record id="filter_by_status" model="ir.filters">
|
||||
<field name="name"> gender_id </field>
|
||||
<field name="model_id">dashbaord.w</field>
|
||||
<field name="user_id" eval="False"/>
|
||||
<field name="context">{'group_by':['gender_id']}</field>
|
||||
</record>
|
||||
<record id="action_dashboards_one" model="ir.actions.act_window">
|
||||
<field name="name">ក្តារព័ត៌មាន</field>
|
||||
<field name="res_model">dashbaord.w</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">graph,tree</field>
|
||||
<field name="view_id" ref="dashboard_w"/>
|
||||
</record>
|
||||
<menuitem name="ក្តារព័ត៌មានរួម" id="youth_and_scholarship_menu_root_2"/>
|
||||
<menuitem name="ក្តារព័ត៌មាន" id="dashbaord_one" parent="youth_and_scholarship_menu_root_2" action="action_dashboards_one"/>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="disable_view" model="ir.ui.view">
|
||||
<field name="name">disable_data</field>
|
||||
<field name="model">disable.data</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Disable">
|
||||
<group>
|
||||
<label string="Do you want to disable or not?"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button name="disable" type="object" string="Confirm" class="oe_highlight"/>
|
||||
<button special="cancel" string="Cancel" class="oe_highlight"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_disable_cpp" model="ir.actions.act_window">
|
||||
<field name="name"> Confirm Box</field>
|
||||
<field name="res_model">disable.data</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<act_window id="disable_action"
|
||||
res_model="disable.data"
|
||||
src_model="cpp.parent"
|
||||
target="new"
|
||||
name="បដិសេធ"
|
||||
view_mode="form"
|
||||
view_id="disable_view"
|
||||
domain="[('is_delete', '=', 1)]"
|
||||
key2="client_action_multi"
|
||||
multi="True"/>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="view_address_extended_filter" model="ir.ui.view">
|
||||
<field name="name">view_address_extended_filter</field>
|
||||
<field name="model">extend.address</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="Search places">
|
||||
<field name="name"/>
|
||||
<field name="country_id"/>
|
||||
<field name="state_id"/>
|
||||
<field name="parent_id"/>
|
||||
<group expand="0" string="Group By...">
|
||||
<filter string="Country" domain="[]" icon="terp-go-home" context="{'group_by':'country_id'}"/>
|
||||
<filter string="State" domain="[]" icon="terp-go-home" context="{'group_by':'state_id'}"/>
|
||||
<filter string="Parent" domain="[]" icon="terp-go-home" context="{'group_by':'parent_id'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="view_address_extended_form">
|
||||
<field name="name">Places</field>
|
||||
<field name="model">get.address</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Places">
|
||||
<group>
|
||||
<field name="province_id" widget="selection"/>
|
||||
<field name="district_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="commune_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="village_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
<field name="group"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="view_address_extended_tree">
|
||||
<field name="name">Places</field>
|
||||
<field name="model">get.address</field>
|
||||
<field name="arch" type="xml">
|
||||
<list string="Places">
|
||||
<field name="province_id" widget="selection"/>
|
||||
<field name="district_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="commune_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="village_id" widget="selection" attrs="{'invisible':[('province_id','=',False)]}"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
<field name="group"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_address_extended_places" model="ir.actions.act_window">
|
||||
<field name="name">Places</field>
|
||||
<field name="res_model">extend.address</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
<menuitem id="menu_address_extended_places" name="ទីកន្លែង" parent="setting_menu2" action="action_address_extended_places" groups="youth_and_scholarship.group_uyfc_manager,base.user_root"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,46 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="history_studys">
|
||||
<field name="name">History Study</field>
|
||||
<field name="model">history.studys</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="ប្រវត្តិការសិក្សា" class="font_box">
|
||||
<group>
|
||||
<group>
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="kill_id" string="ជំនាញ"/>
|
||||
<field name="degree_level" string="កំរិតសិក្សា"/>
|
||||
</group>
|
||||
<group >
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំបញ្ចប់"/>
|
||||
<field name="university_id" string="គ្រឹះស្ថានសិក្សា"/>
|
||||
<field name="country" string="ប្រទេស"/>
|
||||
</group>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="history_Job">
|
||||
<field name="name">Job History</field>
|
||||
<field name="model">history.job</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="ប្រវត្តិការងារ" class="font_box">
|
||||
<group>
|
||||
<group>
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="job_id" string="មុខតំណែង"/>
|
||||
<field name="depart_id" string="ផ្នែក"/>
|
||||
<field name="posit_id" string="ឋានៈ"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំបញ្ចប់"/>
|
||||
<field name="department_gen" string="អគ្គនាយកដ្ឋាន/អង្គភាព"/>
|
||||
<field name="leader" string="ថ្នាក់ដឹកនាំផ្ទាល់"/>
|
||||
<field name="organize" string="ក្រសួង/ស្ថាប័ន"/>
|
||||
</group>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,253 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<!-- ==================== LIST VIEW ==================== -->
|
||||
<record id="family_info_list" model="ir.ui.view">
|
||||
<field name="name">family.info.list</field>
|
||||
<field name="model">family.infos</field>
|
||||
<field name="arch" type="xml">
|
||||
<list class="font_box" create="1" edit="1" delete="1">
|
||||
<field name="no_family"/>
|
||||
<field name="house_no"/>
|
||||
<field name="rue_field"/>
|
||||
<field name="street"/>
|
||||
<field name="province_id" widget="selection"/>
|
||||
<field name="district_id" widget="selection"/>
|
||||
<field name="commune_id" widget="selection"/>
|
||||
<field name="village_id" widget="selection"/>
|
||||
<field name="date_created" widget="datetime"/>
|
||||
<field name="cpp_info" widget="many2many_tags" optional="hide"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ==================== FORM VIEW ==================== -->
|
||||
<record id="family_info_form" model="ir.ui.view">
|
||||
<field name="name">family information form</field>
|
||||
<field name="model">family.infos</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Family Information">
|
||||
<sheet>
|
||||
<div class="oe_title">
|
||||
<h1>
|
||||
<field name="no_family" placeholder="Family No"/>
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
<group string="Basic Information">
|
||||
<field name="house_no"/>
|
||||
<field name="rue_field"/>
|
||||
<field name="street"/>
|
||||
<field name="date_created"/>
|
||||
</group>
|
||||
<group string="Location">
|
||||
<field name="province_id"
|
||||
widget="selection"/>
|
||||
<field name="district_id"
|
||||
invisible="not province_id"
|
||||
required="province_id"
|
||||
context="{'default_loc_code': '2', 'default_parent_location': province_id}"
|
||||
options="{'no_create_edit': True, 'no_open': True}"/>
|
||||
<field name="commune_id"
|
||||
invisible="not district_id"
|
||||
required="district_id"
|
||||
context="{'default_loc_code': '3', 'default_parent_location': district_id}"
|
||||
options="{'no_create_edit': True, 'no_open': True}"/>
|
||||
<field name="village_id"
|
||||
invisible="not commune_id"
|
||||
context="{'default_loc_code': '4', 'default_parent_location': commune_id}"
|
||||
options="{'no_create_edit': True, 'no_open': True}"/>
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page string="Family Members" name="cpp_members">
|
||||
<field name="cpp_info">
|
||||
<list string="CPP Family Members">
|
||||
<field name="image" widget="image"/>
|
||||
<field name="kname" string="Name"/>
|
||||
<field name="dob" string="Date of Birth"/>
|
||||
<field name="phone_id" string="Phone"/>
|
||||
<field name="id_card" string="ID Card"/>
|
||||
</list>
|
||||
<form string="Family Member" view_id="%(form_family_cpp_lists)d">
|
||||
|
||||
<field name="image" widget="image" class="oe_avatar"/>
|
||||
<group>
|
||||
<group >
|
||||
<field name="name"/>
|
||||
<field name="kname"/>
|
||||
<field name="Gender"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="id_card"/>
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="position_id" widget="many2many_tags" string="តួនាទី"/>
|
||||
<field name="organize_id" widget="many2many_tags" string="អង្គភាព"/>
|
||||
<field name="instite_id" widget="many2many_tags" string="ស្ថាប័ន"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="phone_id" string="លេខទូរស័ទ្ធ"/>
|
||||
<field name="email_id" string="អ៊ីម៉ែល"/>
|
||||
<field name="telegram" string="Telegram"/>
|
||||
<field name="facebook" string="Facebook"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="pod">
|
||||
<list editable="bottom">
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="date_in"/>
|
||||
<field name="status_id_card"/>
|
||||
<field name="id_card_ex"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="no_card"/>
|
||||
<field name="status_member"/>
|
||||
<field name="type_postion"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="el_Office">
|
||||
<list editable="bottom">
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
<field name="street"/>
|
||||
<field name="No" string="មណ្ឌលបោះឆ្នោត"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group>
|
||||
<field name="old">
|
||||
<list editable="bottom">
|
||||
<field name="ps_id"/>
|
||||
<field name="no_ps"/>
|
||||
<field name="time" widget="many2many_tags" placeholder="លើក"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="status_now"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="other_status" invisible="status_now != '4'"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="other" string="បរិយាយ"/>
|
||||
</group>
|
||||
<group string="ព័ត៌មានក្រុមបក្ស">
|
||||
<group>
|
||||
<field name="cpp_parent_id" string="គណៈកម្មាធិការគណបក្ស"/>
|
||||
<field name="id_parent"/>
|
||||
<field name="district_id"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="commune_id" string="ឃុំ"/>
|
||||
<field name="village_id"/>
|
||||
<field name="group_id"/>
|
||||
</group>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<chatter/>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ==================== SEARCH VIEW ==================== -->
|
||||
<record id="family_info_search" model="ir.ui.view">
|
||||
<field name="name">family.info.search</field>
|
||||
<field name="model">family.infos</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="no_family"/>
|
||||
<field name="house_no"/>
|
||||
<field name="rue_field"/>
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<filter name="group_by_province" string="Group by Province" context="{'group_by': 'province_id'}"/>
|
||||
<filter name="group_by_date" string="Group by Date" context="{'group_by': 'date_created:month'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- ==================== ACTIONS ==================== -->
|
||||
<record id="family_info_action" model="ir.actions.act_window">
|
||||
<field name="name">Family Information</field>
|
||||
<field name="res_model">family.infos</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="family_info_search"/>
|
||||
<field name="context">{'search_default_group_by_province': True}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
Create your first family record
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
<record id="address_kind" model="ir.ui.view">
|
||||
<field name="name">Address</field>
|
||||
<field name="model">address.address</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Address" class="font_box">
|
||||
<group>
|
||||
<group>
|
||||
<field name="loc_code"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="parent_location" widget="selection" invisible="loc_code == '1'"/>
|
||||
<field name="location_name"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="children_ids">
|
||||
<list editable="bottom">
|
||||
<field name="loc_code"/>
|
||||
<field name="location_name"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="search_address_filter" model="ir.ui.view">
|
||||
<field name="name">search_address</field>
|
||||
<field name="model">address.address</field>
|
||||
<field name="arch" type="xml">
|
||||
<search>
|
||||
<field name="location_name"/>
|
||||
<filter name="parent_location" string="Parent Directory" context="{'group_by': 'parent_location'}"/>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<record id="address_action" model="ir.actions.act_window">
|
||||
<field name="name">ទីតាំង</field>
|
||||
<field name="res_model">address.address</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="context">{'search_default_parent_location': True}</field>
|
||||
</record>
|
||||
|
||||
<!-- ==================== MENU ITEM ==================== -->
|
||||
<menuitem name="ព័ត៌មានគ្រួសារ" id="family_books" action="family_info_action" sequence="2" parent="youth_and_scholarship_menu_root_1" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_input"/>
|
||||
<menuitem name="កំណត់" id="cpp_setting" sequence="7" parent="youth_and_scholarship_menu_root_1" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_user_readonly"/>
|
||||
<menuitem name="ទីកន្លែង" id="khmer_location" action="address_action" sequence="8" parent="cpp_setting" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_user_readonly"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,131 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="list_approval">
|
||||
<field name="name">list approval views</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="false" import="false">
|
||||
<field name="Code_id"/>
|
||||
<field name="Kname"/>
|
||||
<field name="Gender"/>
|
||||
<field name="Nationality"/>
|
||||
<field name="DOB"/>
|
||||
<field name="Phone"/>
|
||||
<field name="youth_kind"/>
|
||||
<field name="id_card" string="លេខអត្តសញ្ញាណប័ណ្ណ"/>
|
||||
<field name="id_unit"/>
|
||||
<field name="Approval_by"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="list_approval_form">
|
||||
<field name="name">Approval Form</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<form create="false" edit="false">
|
||||
<group>
|
||||
<group>
|
||||
<field name="Code_id" style="width:20%%"/>
|
||||
<field name="image" widget="image" class="oe_avatar oe_left" nolabel="1"/>
|
||||
<field name="upload_file" filename="file_name"/>
|
||||
<field name="file_name" invisible="1"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="Kname" placeholder="ជាភាសាខ្មែរ..."/>
|
||||
<field name="Ename" nolabel="1" placeholder="ជាឡាតាំង..."/>
|
||||
<field name="Gender"/>
|
||||
<field name="Nationality"/>
|
||||
<field name="DOB"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<notebook>
|
||||
<page string="ប្រវត្តិនែការសិក្សា និងវគ្គបណ្តុះបណ្តាល" name="History study">
|
||||
<group>
|
||||
<field name="history_study_id" nolabel="1">
|
||||
<list string="History study" editable="bottom">
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំចេញ"/>
|
||||
<field name="degree_level" string="កីរិតសិក្សា"/>
|
||||
<field name="kill_id" string="ជំនាញ"/>
|
||||
<field name="university_id" string="គ្រឹះស្ថានសិក្សា"/>
|
||||
<field name="country" string="ប្រទេស"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="ប្រវត្តិការងារ" name="History Job">
|
||||
<group>
|
||||
<field name="history_job_id" nolabel="1">
|
||||
<list string="History Job" editable="bottom">
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំចេញ"/>
|
||||
<field name="job_id" string="មុខតំណែង"/>
|
||||
<field name="depart_id" string="ផ្នែក"/>
|
||||
<field name="posit_id" string="ឋានៈ"/>
|
||||
<field name="department_gen" string="អង្គភាព"/>
|
||||
<field name="leader" string="ថ្នាក់ដឹកនាំផ្ទាល់"/>
|
||||
<field name="organize" string="ស្ថាប័ន"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="ពត៌មានគ្រួសារ" name="Family info">
|
||||
<group>
|
||||
<field name="parent_id" nolabel="1">
|
||||
<list string="info family" editable="bottom">
|
||||
<field name="type_postion"/>
|
||||
<field name="Kname"/>
|
||||
<field name="Ename"/>
|
||||
<field name="situation"/>
|
||||
<field name="Email"/>
|
||||
<field name="Dob"/>
|
||||
<field name="Phone"/>
|
||||
<field name="position_id"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
<page string="ការធានាអះអាង និងអ្នកណែរនាំ" name="Assurance">
|
||||
<group>
|
||||
<field name="assurance_id" nolabel="1">
|
||||
<list editable="bottom" string="ការធានាអះអាង និងអ្នកណែរនាំ">
|
||||
<field name="type_postion" string="ត្រូវជា៖"/>
|
||||
<field name="askname" string="គោត្តនាម នាម(ជាភាសាខ្មែរ)"/>
|
||||
<field name="asename" string="គោត្តនាម នាម(ជាឡាតាំង)"/>
|
||||
<field name="dob" string="ថ្ងៃខែឆ្នាំកំណើត"/>
|
||||
<field name="email" string="អ៊ីម៉ែល៖"/>
|
||||
<field name="phone" string="លេខទូរសព្ទ"/>
|
||||
<field name="pod" string="ទីកន្លែងកំណើត"/>
|
||||
<field name="date_signal" string="ថ្ងៃខែឆ្នាំចុះហត្ថលេខា"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="youth_list_action">
|
||||
<field name="name">បញ្ជីរាយនាមសមាជិក</field>
|
||||
<field name="res_model">youth.scholarship</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="domain">[("IsDeleted","=",1),("Job_id","=","Youth"),("status","=","approval")]</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_list_youth_tree">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="list_approval"/>
|
||||
<field name="act_window_id" ref="youth_list_action"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_list_youth_form">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="list_approval_form"/>
|
||||
<field name="act_window_id" ref="youth_list_action"/>
|
||||
</record>
|
||||
<menuitem name="បញ្ជីរាយនាមសមាជិក" id="youth_and_scholarship_menu_list" parent="youth_and_scholarship.menu_1"
|
||||
action="youth_list_action" sequence="7" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="cpp_form_review">
|
||||
<field name="name">ត្រួតពិនិត្យ</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<form create="false">
|
||||
<group style="font-family:Khmer OS content; src:url(../font/KhmerOS_content.ttf) ;format('truetype'); font-size:11px;">
|
||||
<div class="col-xs-12 font_box" >
|
||||
<div style="float: left; padding:0 0 30px 20px; width:40%">
|
||||
<group style="font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); text-align:center; font-size:11px;">
|
||||
<field name="district" string="គណៈកម្មាធិការគណបក្សស្រុក"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="commune"/>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="group" style="width:30%%" string="ក្រុមបក្សទី"/>    <field name="village"/>
|
||||
</group>
|
||||
<br/><br/>
|
||||
<group col="4">  <field name="no" style="width:35%" string="អាសយដ្ឋានផ្ទះលេខ"/>     <field name="street" style="width:35%" string="ផ្លូវ"/> </group>
|
||||
</div>
|
||||
<div style="padding:0 30px 30px 0; float:right;">
|
||||
<div><strong>ឯករាជ្យ សន្តិភាព សេរីភាព ប្រជាធិបតេយ្យ </strong></div>
|
||||
<div><strong>    អព្យាក្រឹត និង វឌ្ឍនភាពសង្គម</strong></div>
|
||||
</div>
|
||||
<div style="text-align: center; margin:0 200px 0 200px;">
|
||||
<div><img src='/youth_and_scholarship/static/src/img/logo_cpp.png' style="width:80px; height:70px;"/></div>
|
||||
<div style="margin:10px 0 0 0" class="font_bold_light"><strong style="padding:0 45px 0 0; font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); text-align:center; font-size:11px;">បញ្ជីរាយនាមសមាជិកបក្សតាមគ្រួសារបក្ស</strong></div>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<field name="child_cpp_id" nolabel="1">
|
||||
<list editable="top">
|
||||
<field name="kname"/>
|
||||
<field name="Gender" style="width:60%%"/>
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
<field name="date_in"/>
|
||||
<field name="no_card"/>
|
||||
<field name="type_postion"/>
|
||||
<field name="id_card"/>
|
||||
<field name="other"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="form_family_cpp_review">
|
||||
<field name="name">family_cpp_from_review</field>
|
||||
<field name="model">family.cpp</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group>
|
||||
<field name="cpp_parent_id" invisible="1">
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
</field>
|
||||
</group>
|
||||
<group>
|
||||
<field name="image" widget="image" class="oe_avatar"/>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="kname"/>
|
||||
<field name="Gender" style="width:60%%"/>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
</group>
|
||||
<group col="6">
|
||||
<field name="position_id" widget="many2many_tags" string="តួនាទី"/>
|
||||
<field name="organize_id" widget="many2many_tags" string="អង្គភាព"/>
|
||||
<field name="instite_id" widget="many2many_tags" string="ស្ថាប័ន"/>
|
||||
</group>
|
||||
<group col="6">
|
||||
<field name="phone_id" string="លេខទូរស័ទ្ធ"/>
|
||||
<field name="email_id" string="អ៊ីម៉ែល"/>
|
||||
<field name="telegram" string="Telegram"/>
|
||||
<field name="facebook" string="Facebook"/>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<field name="pod">
|
||||
<list editable="bottom">
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="date_in"/>
|
||||
<field name="id_card"/>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="no_card"/>
|
||||
<field name="type_postion"/>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="other"/>
|
||||
|
||||
</group>
|
||||
<group col="4"><field name="ps_id"/></group>
|
||||
<group>
|
||||
<field name="el_Office">
|
||||
<list editable="bottom">
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group col="5">
|
||||
<field name="no_ps"/>
|
||||
<field name="time" string="បោះឆ្នោតបាន" placeholder="ដង"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="dmr_search_view" model="ir.ui.view">
|
||||
<field name="name">group_by</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="DMR">
|
||||
<group expand="0" string="Group By...">
|
||||
<filter name="group" string="ក្រុម" context="{'group_by' : 'group'}"/>
|
||||
<filter name="commune" string="ឃុំ" context="{'group_by': 'commune'}"/>
|
||||
<filter name="village" string="ភូមិ" context="{'group_by': 'village'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="family_cpp_form_action">
|
||||
<field name="name">សមាជិកបក្ស</field>
|
||||
<field name="res_model">family.cpp</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="cpp_review_form_action">
|
||||
<field name="name">ការត្រួតពិនិត្យ</field>
|
||||
<field name="res_model">cpp.parent</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_review_cpp">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="cpp_form_review"/>
|
||||
<field name="act_window_id" ref="cpp_review_form_action"/>
|
||||
</record>
|
||||
<!-- actions -->
|
||||
<menuitem name="ត្រួតពិនិត្យព័ត៌មាន" id="menu_review" parent="cpp_menu"
|
||||
action="cpp_review_form_action" sequence="6" groups="youth_and_scholarship.group_cpp_manager,base.user_root,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_review"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,166 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<record model="ir.ui.view" id="tree_list_member_cpp">
|
||||
<field name="name">family_cpp_list_view</field>
|
||||
<field name="model">family.cpp</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="false">
|
||||
<field name="kname"/>
|
||||
<field name="Gender"/>
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
<field name="group_id"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="forms_cpp_parents">
|
||||
<field name="name">Cpp Parent</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group>
|
||||
<field name="district"/>
|
||||
<field name="id"/>
|
||||
<field name="commune"/>
|
||||
<field name="village"/>
|
||||
<field name="group"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="form_family_cpp_lists">
|
||||
<field name="name">family_cpp_lists</field>
|
||||
<field name="model">family.cpp</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<!-- <header>-->
|
||||
<!-- <button name="Removes" string="លុបចោល" type="object" confirm="Are you sure you want to do this?" groups="youth_and_scholarship.group_cpp_manager"/>-->
|
||||
<!-- </header>-->
|
||||
<group>
|
||||
<field name="cpp_parent_id" string="គណៈកម្មាធិការគណបក្ស"/>
|
||||
<field name="id_parent"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id" string="ឃុំ"/>
|
||||
<field name="village_id"/>
|
||||
<field name="group_id"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="image" widget="image" class="oe_avatar"/>
|
||||
</group>
|
||||
<group >
|
||||
<field name="kname"/>
|
||||
<field name="Gender"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="position_id" widget="many2many_tags" string="តួនាទី"/>
|
||||
<field name="organize_id" widget="many2many_tags" string="អង្គភាព"/>
|
||||
<field name="instite_id" widget="many2many_tags" string="ស្ថាប័ន"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="phone_id" string="លេខទូរស័ព្ទ"/>
|
||||
<field name="email_id" string="អ៊ីម៉ែល"/>
|
||||
<field name="telegram" string="Telegram"/>
|
||||
<field name="facebook" string="Facebook"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="pod">
|
||||
<list editable="bottom">
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group>
|
||||
<field name="date_in"/>
|
||||
<field name="id_card"/>
|
||||
<field name="status_id_card"/>
|
||||
<field name="id_card_ex"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="no_card"/>
|
||||
<field name="status_member"/>
|
||||
<field name="type_postion"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="other"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="no_ps"/>
|
||||
<field name="time" string="បោះឆ្នោតបានចំនួន" placeholder="ដង" widget="many2many_tags"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="el_Office">
|
||||
<list editable="bottom">
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
<field name="street"/>
|
||||
<field name="No" string="មណ្ឌលបោះឆ្នោត"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group>
|
||||
<field name="old">
|
||||
<list editable="bottom">
|
||||
<field name="ps_id"/>
|
||||
<field name="no_ps"/>
|
||||
<field name="time" widget="many2many_tags" placeholder="លើក"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<!-- <record id="search_view_pp" model="ir.ui.view">-->
|
||||
<!-- <field name="name">group_by_input</field>-->
|
||||
<!-- <field name="model">family.cpp</field>-->
|
||||
<!-- <field name="arch" type="xml">-->
|
||||
<!-- <search string="DMR">-->
|
||||
<!-- <field name="kname" filter_domain="[('kname','ilike',self)]"/>-->
|
||||
<!-- <field name="id_card" string="លេខអត្តសញ្ញាណប័ណ្ណសញ្ជាតិខ្មែរ" filter_domain="[('child_cpp_id.id_card','ilike',self)]"/>-->
|
||||
<!-- <group expand="0" string="Group By...">-->
|
||||
<!-- <filter name="commune_id" string="ឃុំ" context="{'group_by': 'commune_id'}"/>-->
|
||||
<!-- <filter name="village_id" string="ភូមិ" context="{'group_by': 'village_id'}"/>-->
|
||||
<!-- <filter name="group_id" string="ក្រុម" context="{'group_by' : 'group_id'}"/>-->
|
||||
<!-- <field name="state_id" string="ដំណាក់កាល" context="{'group_by': 'state_id'}"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- </search>-->
|
||||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
<record model="ir.actions.act_window" id="form_main_parent">
|
||||
<field name="name">Main Form</field>
|
||||
<field name="res_model">cpp.parent</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
<record id="action_view_list_member" model="ir.actions.act_window">
|
||||
<field name="name">សមាជិកបក្សទាំងអស់</field>
|
||||
<field name="res_model">family.cpp</field>
|
||||
<field name="domain">[]</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="list_member_tree">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="tree_list_member_cpp"/>
|
||||
<field name="act_window_id" ref="action_view_list_member"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="form_list_member">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="form_family_cpp_lists"/>
|
||||
<field name="act_window_id" ref="action_view_list_member"/>
|
||||
</record>
|
||||
<menuitem name="សមាជិកបក្សទាំងអស់" id="cpp_menu_all_member" parent="youth_and_scholarship_menu_root_1" action="action_view_list_member" sequence="4" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_input"/>
|
||||
</odoo>
|
||||
@@ -0,0 +1,114 @@
|
||||
<?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>
|
||||
@@ -0,0 +1,37 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="party_list" model="ir.ui.view">
|
||||
<field name="name">party list</field>
|
||||
<field name="model">khmer.years</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
<field name="party"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record id="party_form" model="ir.ui.view">
|
||||
<field name="name">party form</field>
|
||||
<field name="model">khmer.years</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<field name="name"/>
|
||||
<field name="party"/>
|
||||
<field name="party_member">
|
||||
<list editable="bottom">
|
||||
<field name="name"/>
|
||||
<field name="member_cpp"/>
|
||||
<field name="result"/>
|
||||
</list>
|
||||
</field>
|
||||
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="action_party_name" model="ir.actions.act_window">
|
||||
<field name="name">Years</field>
|
||||
<field name="res_model">khmer.years</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="address_extended_view_res_partner_filter" model="ir.ui.view">
|
||||
<field name="name">address_extended_view_res_partner_filter</field>
|
||||
<field name="inherit_id" ref="base.view_res_partner_filter"/>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='parent_id']" position="after">
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
</xpath>
|
||||
|
||||
<xpath expr="//group[@name='group_by']/filter[2]" position="after">
|
||||
<filter string="Place 1" context="{'group_by': 'province_id'}"/>
|
||||
<filter string="Place 2" context="{'group_by': 'district_id'}"/>
|
||||
<filter string="Place 3" context="{'group_by': 'commune_id'}"/>
|
||||
<filter string="Place 4" context="{'group_by': 'village_id'}"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
<record id="address_extended_view_partner_form" model="ir.ui.view">
|
||||
<field name="name">address_extended_view_partner_form</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="base.view_partner_form"/>
|
||||
<field eval="1" name="priority"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="state_id" position="replace">
|
||||
<field name="state_id" class="oe_no_button" placeholder="State"
|
||||
style="width: 37%%" options='{"no_open": True}'
|
||||
on_change="onchange_state(state_id)"/>
|
||||
</field>
|
||||
<field name="country_id" position="after">
|
||||
<field name="province_id" class="oe_no_button" placeholder="province" domain="['&',('parent_id','=',False),'|',('country_id','=',country_id),'&',('state_id','=',state_id),('state_id','!=',False)]" attrs="{'readonly': [('country_id','=',False)]}"/>
|
||||
<field name="district_id" class="oe_no_button" placeholder="district" domain="[('parent_id','=',province_id)]" attrs="{'readonly': [('province_id','=',False)]}"/>
|
||||
<field name="commune_id" class="oe_no_button" placeholder="commune" domain="[('parent_id','=',district_id)]" attrs="{'readonly': [('district_id','=',False)]}"/>
|
||||
<field name="village_id" class="oe_no_button" placeholder="village" domain="[('parent_id','=',commune_id)]" attrs="{'readonly': [('commune_id','=',False)]}"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,46 @@
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="warning_view" model="ir.ui.view">
|
||||
<field name="name">Warning</field>
|
||||
<field name="model">restore.youth</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Warning">
|
||||
<group>
|
||||
<label for="warn" string="Do you want to restore or not?"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button name="rest" type="object" string="Confirm" class="oe_highlight"/>
|
||||
<button special="cancel" string="Cancel" class="oe_highlight"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="youth_action">
|
||||
<field name="name">Restore Youth Information</field>
|
||||
<field name="res_model">youth.scholarship</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_id" ref="youth_and_scholarship_list"/>
|
||||
<field name="domain">[("IsDeleted","=",0)]</field>
|
||||
</record>
|
||||
|
||||
<record id="action_working" model="ir.actions.act_window">
|
||||
<field name="name"> Restore Box</field>
|
||||
<field name="res_model">restore.youth</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
<menuitem name="រីស្តរពត៌មាន" id="restore_1" parent="setting_menu2"
|
||||
action="youth_action" groups="youth_and_scholarship.group_uyfc_manager,base.user_root"/>
|
||||
|
||||
<act_window id="days_action"
|
||||
res_model="restore.youth"
|
||||
src_model="youth.scholarship"
|
||||
target="new"
|
||||
name="រីស្តរពត៌មាន"
|
||||
view_mode="form"
|
||||
key2="client_action_multi"
|
||||
multi="True"/>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,189 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="cpp_restore_tree">
|
||||
<field name="name">ទាយព័ត៌មានយកវិញ</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<list style="font-family:Khmer OS content; src:url(../font/KhmerOS_content.ttf) ;format('truetype'); font-size:11px;" create="false" import="false">
|
||||
<field name="group"/>
|
||||
<field name="district"/>
|
||||
<field name="commune"/>
|
||||
<field name="village"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="cpp_restore_form">
|
||||
<field name="name">ទាយព័ត៌មាន</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<form create="false" edit="false">
|
||||
<header>
|
||||
<button name="action_restore" state="draft" string="ស្តារព័ត៌មាន" type="object" confirm="Are you sure you want to restore this data?" groups="base.user_root"/>
|
||||
</header>
|
||||
<group style="font-family:Khmer OS content; src:url(../font/KhmerOS_content.ttf) ;format('truetype'); font-size:11px;">
|
||||
<div class="col-xs-12 font_box" >
|
||||
<div style="float: left; padding:0 0 30px 20px; width:40%">
|
||||
<group style="font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); text-align:center; font-size:11px;">
|
||||
<field name="district" string="គណៈកម្មាធិការគណបក្សស្រុក"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="commune"/>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="group" style="width:30%%" string="ក្រុមបក្សទី"/>    <field name="village"/>
|
||||
</group>
|
||||
<br/><br/>
|
||||
<group col="4">  <field name="no" style="width:35%" string="អាសយដ្ឋានផ្ទះលេខ"/>     <field name="street" style="width:35%" string="ផ្លូវ"/> </group>
|
||||
</div>
|
||||
<div style="padding:0 30px 30px 0; float:right;">
|
||||
<div><strong>ឯករាជ្យ សន្តិភាព សេរីភាព ប្រជាធិបតេយ្យ </strong></div>
|
||||
<div><strong>    អព្យាក្រឹត និង វឌ្ឍនភាពសង្គម</strong></div>
|
||||
</div>
|
||||
<div style="text-align: center; margin:0 200px 0 200px;">
|
||||
<div><img src='/youth_and_scholarship/static/src/img/logo_cpp.png' style="width:80px; height:70px;"/></div>
|
||||
<div style="margin:10px 0 0 0" class="font_bold_light"><strong style="padding:0 45px 0 0; font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); text-align:center; font-size:11px;">បញ្ជីរាយនាមសមាជិកបក្សតាមគ្រួសារបក្ស</strong></div>
|
||||
</div>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<field name="child_cpp_id" nolabel="1">
|
||||
<list editable="top">
|
||||
<field name="kname"/>
|
||||
<field name="Gender" style="width:60%%"/>
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
<field name="date_in"/>
|
||||
<field name="no_card"/>
|
||||
<field name="type_postion"/>
|
||||
<field name="id_card"/>
|
||||
<field name="other"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="form_family_cpp_app_restore">
|
||||
<field name="name">family_cpp_from_restore</field>
|
||||
<field name="model">family.cpp</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group>
|
||||
<field name="cpp_parent_id" invisible="1">
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
</field>
|
||||
</group>
|
||||
<group>
|
||||
<field name="image" widget="image" class="oe_avatar"/>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="kname"/>
|
||||
<field name="Gender" style="width:60%%"/>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
</group>
|
||||
<group col="6">
|
||||
<field name="position_id" widget="many2many_tags" string="តួនាទី"/>
|
||||
<field name="organize_id" widget="many2many_tags" string="អង្គភាព"/>
|
||||
<field name="instite_id" widget="many2many_tags" string="ស្ថាប័ន"/>
|
||||
</group>
|
||||
<group col="6">
|
||||
<field name="phone_id" string="លេខទូរស័ទ្ធ"/>
|
||||
<field name="email_id" string="អ៊ីម៉ែល"/>
|
||||
<field name="telegram" string="Telegram"/>
|
||||
<field name="facebook" string="Facebook"/>
|
||||
</group>
|
||||
|
||||
<group>
|
||||
<field name="pod" widget="one2many_list">
|
||||
<list editable="bottom">
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="date_in"/>
|
||||
<field name="id_card"/>
|
||||
</group>
|
||||
<group col="4">
|
||||
<field name="no_card"/>
|
||||
<field name="type_postion"/>
|
||||
</group>
|
||||
<group col="2">
|
||||
<field name="other"/>
|
||||
|
||||
</group>
|
||||
<group col="2"><field name="ps_id"/></group>
|
||||
<group>
|
||||
<field name="el_Office">
|
||||
<list editable="bottom">
|
||||
<field name="province_id"/>
|
||||
<field name="district_id"/>
|
||||
<field name="commune_id"/>
|
||||
<field name="village_id"/>
|
||||
<field name="street"/>
|
||||
<field name="No"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
<group col="5">
|
||||
<field name="no_ps"/>
|
||||
<field name="time" string="បោះឆ្នោតបាន" placeholder="ដង"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="search_view_list" model="ir.ui.view">
|
||||
<field name="name">group_by_list</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<search string="DMR">
|
||||
<group expand="0" string="Group By...">
|
||||
<filter name="commune" string="1ឃុំ" context="{'group_by': 'commune'}"/>
|
||||
<filter name="village" string="2ភូមិ" context="{'group_by': 'village'}"/>
|
||||
<filter name="group" string="3ក្រុម" context="{'group_by' : 'group'}"/>
|
||||
</group>
|
||||
</search>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="family_cpp_form_action_restore">
|
||||
<field name="name">សមាជិកបក្ស</field>
|
||||
<field name="res_model">family.cpp</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="cpp_restore_new">
|
||||
<field name="name">ព័ត៌មានដែលបានលុបចោល</field>
|
||||
<field name="res_model">cpp.parent</field>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="context">{'search_default_commune':True,'search_default_village':True,'search_default_group':True}</field>
|
||||
<field name="domain">[("is_delete","=",0)]</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_app_tree">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="cpp_restore_tree"/>
|
||||
<field name="act_window_id" ref="cpp_restore_new"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_app_form">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="cpp_restore_form"/>
|
||||
<field name="act_window_id" ref="cpp_restore_new"/>
|
||||
</record>
|
||||
<!-- actions -->
|
||||
|
||||
<!-- <menuitem name="ស្តារព៌ត៌មានសមាជិកបក្ស" id="restore_cpp" parent="cpp_setting"-->
|
||||
<!-- action="cpp_restore_new" groups="youth_and_scholarship.group_cpp_manager,base.user_root" sequence="22"/>-->
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,103 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="cpp_review">
|
||||
<field name="name">ត្រួតពិនិត្យ</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="false" import="false">
|
||||
<field name="group"/>
|
||||
<field name="district"/>
|
||||
<field name="commune"/>
|
||||
<field name="village"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="cpp_form_review">
|
||||
<field name="name">ត្រួតពិនិត្យ</field>
|
||||
<field name="model">cpp.parent</field>
|
||||
<field name="arch" type="xml">
|
||||
<form create="false">
|
||||
<header>
|
||||
<field name="status" invisible="1"/>
|
||||
<field name="is_delete" invisible="1"/>
|
||||
<button name="action_confirm" state="sent" string="ត្រួតពិនិត្យរួច" type="object" confirm="Are you sure you want to do this?" invisible="state != 'sent'"/>
|
||||
<button name="action_delete" state="app" string="លុបចោល" type="object" confirm="Are you sure you want to do this?" groups="base.user_root"/>
|
||||
<button name="action_cancel" state="draft" string="ព៌ត៌មានមិនត្រឹមត្រូវ" type="object" confirm="Are you sure you want to do this?" invisible="state != 'sent'"/>
|
||||
<field name="state" widget="statusbar"/>
|
||||
</header>
|
||||
<div>
|
||||
<div class="font_box" >
|
||||
<div style="float: left; padding:0 0 30px 20px; width:25%%">
|
||||
<group style="font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); font-size:11px;">
|
||||
<field name="district" string="គណៈកម្មាធិការគណបក្សស្រុក" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="commune" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="village" widget="selection"/>
|
||||
<field name="group"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="no" string="ផ្ទះលេខ"/>
|
||||
<field name="street" string="ផ្លូវលេខ"/>
|
||||
</group>
|
||||
</div>
|
||||
<div style="padding:0 30px 30px 0; float:right;text-align:center;">
|
||||
<div><strong>ឯករាជ្យ សន្តិភាព សេរីភាព ប្រជាធិបតេយ្យ </strong></div>
|
||||
<div><strong>    អព្យាក្រឹត និង វឌ្ឍនភាពសង្គម</strong></div>
|
||||
</div>
|
||||
<div style="text-align: center; margin:0 200px 0 0;">
|
||||
<div><img src='/youth_and_scholarship/static/src/img/logo_cpp.png' style="width:80px; height:70px;"/></div>
|
||||
<div style="margin:10px 0 0 0" class="font_bold_light"><strong style="padding:0 45px 0 0; font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); text-align:center; font-size:11px;">បញ្ជីរាយនាមសមាជិកបក្សតាមគ្រួសារបក្ស</strong></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-family:Khmer OS content; src:url(../font/KhmerOS_content.ttf) ;format('truetype'); font-size:14px;">
|
||||
<field name="child_cpp_id">
|
||||
<list>
|
||||
<field name="kname"/>
|
||||
<field name="Gender" style="width:60%%"/>
|
||||
<field name="dob"/>
|
||||
<field name="Job_work"/>
|
||||
<field name="date_in"/>
|
||||
<field name="no_card"/>
|
||||
<field name="type_postion"/>
|
||||
<field name="id_card"/>
|
||||
<field name="other"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="family_cpp_form_action">
|
||||
<field name="name">សមាជិកបក្ស</field>
|
||||
<field name="res_model">family.cpp</field>
|
||||
<field name="view_mode">form</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="cpp_review_form_action">
|
||||
<field name="name">ការត្រួតពិនិត្យ</field>
|
||||
<field name="res_model">cpp.parent</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="context">{}</field>
|
||||
<field name="domain">[("status","=","review"),("is_delete","=",1)]</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_review_tree">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="cpp_review"/>
|
||||
<field name="act_window_id" ref="cpp_review_form_action"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_review_cpp">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="cpp_form_review"/>
|
||||
<field name="act_window_id" ref="cpp_review_form_action"/>
|
||||
</record>
|
||||
<!-- actions -->
|
||||
<menuitem name="ត្រួតពិនិត្យព័ត៌មាន" id="menu_review" parent="cpp_menu"
|
||||
action="cpp_review_form_action" sequence="6" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_review"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,286 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="re_view">
|
||||
<field name="name">reviews</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="false" import="false">
|
||||
<field name="Code_id"/>
|
||||
<field name="Kname"/>
|
||||
<field name="Gender"/>
|
||||
<field name="Nationality"/>
|
||||
<field name="DOB"/>
|
||||
<field name="Phone"/>
|
||||
<field name="youth_kind"/>
|
||||
<field name="id_card" string="លេខអត្តសញ្ញាណប័ណ្ណ"/>
|
||||
<field name="id_unit"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="review_form">
|
||||
<field name="name">Information</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Youth Form" >
|
||||
<notebook>
|
||||
<page string="ពាក្យសុំចូល/ពត៌មានផ្ទាល់ខ្លួន" name="information_youth">
|
||||
<div class="widget_box">
|
||||
<div class="widget_title"><h5><label id="Code_id" for="Code_id" string="ពត៌មានផ្ទាល់ខ្លួន"/></h5></div>
|
||||
<field name="image" widget="image" class="oe_avatar" style="padding-right:2%;"/><br/>
|
||||
<group>
|
||||
<group>
|
||||
<field name="Code_id" style="width:30%%"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="Kname" placeholder="ជាភាសាខ្មែរ..."/>
|
||||
<field name="id_card"/>
|
||||
<field name="DOB"/>
|
||||
<field name="Gender" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="Ename" placeholder="ជាឡាតាំង..."/>
|
||||
<field name="nation_id"/>
|
||||
<field name="Nationality"/>
|
||||
<field name="Alive_id"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<field name="POD" colspan="2">
|
||||
<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>
|
||||
<div class="widget_title">
|
||||
<h5><label id="fb" for="fb" string="ព័ត៌មានទំនាក់ទំនង និងអាស័យដ្ឋាន"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<group col="4">
|
||||
<field name="Phone" widget="phone"/>
|
||||
<field name="Email" widget="email"/>
|
||||
<field name="fb"/>
|
||||
<field name="gmail"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="Address" colspan="2">
|
||||
<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>
|
||||
</div>
|
||||
<div class="widget_title">
|
||||
<h5><label id="Job_work" for="Job_work" string="អំពីការងារ និងស្ថាប័ន"/></h5>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="id_card" string="លេខអត្តសញ្ញាណបណ្ណ"/>
|
||||
<field name="Job_work" widget="many2many_tags"/>
|
||||
<field name="position_id" widget="many2many_tags"/>
|
||||
<field name="department_id" widget="many2many_tags"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="organize_id" widget="many2many_tags"/>
|
||||
<field name="instituation_id" widget="many2many_tags"/>
|
||||
<field name="id_unit"/>
|
||||
</group>
|
||||
</group>
|
||||
<div class="widget_title">
|
||||
<h5><label id="youth_kind" for="youth_kind" string="ប្រភេទយុវជន"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<group>
|
||||
<field name="youth_kind" domain="[('parent_id','=',youth_kind)]" style="width:30%%"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="member_in" colspan="2">
|
||||
<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>
|
||||
</div>
|
||||
<div class="widget_title">
|
||||
<h5><label id="al_office" for="al_office" string="ការិយាល័យបោះឆ្នោត"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<group>
|
||||
<field name="cpp_no" style="width:35%%"/>
|
||||
<field name="al_office"/>
|
||||
<field name="El_Office" 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>
|
||||
</div>
|
||||
<div class="widget_title">
|
||||
<h5><label id="file_name" for="file_name" string="ឯកសារបញ្ជាក់"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<group>
|
||||
<field name="file_name" invisible="1"/>
|
||||
<field name="upload_file" filename="file_name" colspan="2" class="oe_inline" nolabel="1"/>
|
||||
</group>
|
||||
</div>
|
||||
</div>
|
||||
</page>
|
||||
<page string="ប្រវត្តិនៃការសិក្សា និងវគ្គបណ្តុះបណ្តាល" name="History study">
|
||||
<div class="widget_title">
|
||||
<h5><label id="history_study_id" for="history_study_id" string="ប្រវត្តិនៃការសិក្សា និងវគ្គបណ្តុះបណ្តាល"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<field name="history_study_id" colspan="2">
|
||||
<list string="History study" editable="bottom">
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំបញ្ចប់"/>
|
||||
<field name="degree_level" string="កំរិតសិក្សា"/>
|
||||
<field name="kill_id" string="ជំនាញ"/>
|
||||
<field name="university_id" string="គ្រឹះស្ថានសិក្សា"/>
|
||||
<field name="country" string="ប្រទេស"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</page>
|
||||
<page string="ប្រវត្តិការងារ" name="History Job">
|
||||
<div class="widget_title">
|
||||
<h5><label id="history_job_id" for="history_job_id" string="ប្រវត្តិការងារ"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<field name="history_job_id" colspan="2">
|
||||
<list string="History Job" editable="bottom">
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំបញ្ចប់"/>
|
||||
<field name="job_id" string="មុខតំណែង"/>
|
||||
<field name="depart_id" string="ផ្នែក"/>
|
||||
<field name="posit_id" string="ឋានៈ"/>
|
||||
<field name="department_gen" string="អគ្គនាយកដ្ឋាន/អង្គភាព"/>
|
||||
<field name="leader" string="ថ្នាក់ដឹកនាំផ្ទាល់"/>
|
||||
<field name="organize" string="ក្រសួង/ស្ថាប័ន"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</page>
|
||||
<page string="ការលើកសរសើរ ឬដាក់ពិន័យ" name="praise">
|
||||
<div class="widget_title">
|
||||
<h5><label id="praise_pr_id" for="praise_pr_id" string="ការលើកសរសើរ"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<field name="praise_pr_id" colspan="2" string="ការលើកសរសើរ">
|
||||
<list string="History Job" editable="bottom">
|
||||
<field name="date"/>
|
||||
<field name="pr_kind"/>
|
||||
<field name="lavels"/>
|
||||
<field name="upload_file"/>
|
||||
<field name="file_name" invisible="1"/>
|
||||
<field name="country"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
<div class="widget_title">
|
||||
<h5><label id="punish_pus_id" for="punish_pus_id" string="ការដាក់ពិន័យ"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<field name="punish_pus_id" colspan="2" string="ការដាក់ពិន័យ">
|
||||
<list string="History Job" editable="bottom">
|
||||
<field name="date"/>
|
||||
<field name="pun_kind"/>
|
||||
<field name="lavels"/>
|
||||
<field name="upload_file"/>
|
||||
<field name="file_name" invisible="1"/>
|
||||
<field name="country"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</page>
|
||||
<page string="ព័ត៌មានគ្រួសារ" name="Family info">
|
||||
<div class="widget_title">
|
||||
<h5><label id="parent_id" for="parent_id" string="ព័ត៌មានគ្រួសារ"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<field name="parent_id" colspan="2" nolabel="1">
|
||||
<list string="ព័ត៌មានគ្រួសារ">
|
||||
<field name="type_postion"/>
|
||||
<field name="Kname"/>
|
||||
<field name="Ename"/>
|
||||
<field name="situation"/>
|
||||
<field name="Email"/>
|
||||
<field name="Dob"/>
|
||||
<field name="Phone"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</page>
|
||||
<page string="ការធានាអះអាង និងអ្នកណែរនាំ" name="Assurance">
|
||||
<div class="widget_title">
|
||||
<h5><label id="assurance_id" for="assurance_id" string="ការធានាអះអាង និងអ្នកណែរនាំ"/></h5>
|
||||
</div>
|
||||
<div>
|
||||
<field name="assurance_id" colspan="2" nolabel="1">
|
||||
<list string="ការធានាអះអាង និងអ្នកណែរនាំ">
|
||||
<field name="type_postion" string="ការធានាអះអាង និងណែរនាំ៖"/>
|
||||
<field name="askname" string="គោត្តនាម នាម(ជាភាសាខ្មែរ)"/>
|
||||
<field name="asename" string="គោត្តនាម នាម(ជាឡាតាំង)"/>
|
||||
<field name="dob" string="ថ្ងៃខែឆ្នាំកំណើត"/>
|
||||
<field name="email" string="អ៊ីម៉ែល៖"/>
|
||||
<field name="phone" string="លេខទូរសព្ទ"/>
|
||||
<field name="date_signal" string="ថ្ងៃខែឆ្នាំចុះហត្ថលេខា"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="form_reviews_action">
|
||||
<field name="name">ការត្រួតពិនិត្យ</field>
|
||||
<field name="res_model">youth.scholarship</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="domain">[("IsDeleted","=",1),("Job_id","=","Youth"),("status","=","review")]</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_re_tree">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="re_view"/>
|
||||
<field name="act_window_id" ref="form_reviews_action"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_re_form">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="review_form"/>
|
||||
<field name="act_window_id" ref="form_reviews_action"/>
|
||||
</record>
|
||||
<!-- actions -->
|
||||
<menuitem name="ការត្រួតពិនិត្យ" id="youth_review" parent="youth_and_scholarship.menu_1"
|
||||
action="form_reviews_action" sequence="2" groups="youth_and_scholarship.group_uyfc_user_review,youth_and_scholarship.group_uyfc_manager"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,123 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="University">
|
||||
<field name="name">University information</field>
|
||||
<field name="model">uni.university</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="Kname"/>
|
||||
<field name="Ename"/>
|
||||
<field name="Phone"/>
|
||||
<field name="Fax"/>
|
||||
<field name="Email"/>
|
||||
<field name="Website"/>
|
||||
<field name="Address"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="Reference">
|
||||
<field name="name">Reference information</field>
|
||||
<field name="model">ref.reference</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="Kname" />
|
||||
<field name="Ename" />
|
||||
<field name="Gender"/>
|
||||
<field name="DOB" />
|
||||
<field name="Email"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="sponsor">
|
||||
<field name="name">Scholarship sponsor</field>
|
||||
<field name="model">scholarship.sponsor</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="spKname"/>
|
||||
<field name="spEname"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="Unversity_info" model="ir.ui.view">
|
||||
<field name="name">University information</field>
|
||||
<field name="model">uni.university</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="ពត៌មានសកលវិទ្យាល័យ">
|
||||
<div class="widget_box">
|
||||
<div class="widget_title"><h5><label string="ពត៌មានសកលវិទ្យាល័យ" for="Kname"/></h5> </div>
|
||||
<group>
|
||||
<field name="Kname" />
|
||||
<field name="Ename" />
|
||||
<field name="Phone" />
|
||||
<field name="Fax" />
|
||||
<field name="Email" />
|
||||
<field name="Website" />
|
||||
<field name="Address" />
|
||||
</group>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="reference_info" model="ir.ui.view">
|
||||
<field name="name">Reference information</field>
|
||||
<field name="model">ref.reference</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="អ្នកធានា">
|
||||
<div class="widget_box">
|
||||
<div class="widget_title"><h5><label string="ព័ត៌មានអ្នកធានា" for="Ename"/></h5> </div>
|
||||
<group>
|
||||
<field name="Kname" />
|
||||
<field name="Ename" />
|
||||
<field name="Gender" />
|
||||
<field name="DOB" />
|
||||
<field name="Email" />
|
||||
</group>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="Sponsor_info" model="ir.ui.view">
|
||||
<field name="name">Sponsor information</field>
|
||||
<field name="model">scholarship.sponsor</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="អ្នកឧបត្ថមអាហាររូបករណ៍">
|
||||
<div class="widget_box">
|
||||
<div class="widget_title"><h5><label string="Form Registration" for="spKname"/></h5> </div>
|
||||
<group>
|
||||
<field name="spKname" string="ឈ្មោះអ្នកឧបត្ថម(ជាភាសាខ្មែរ)" style="width:50%%"/>
|
||||
<field name="spEname" string="ឈ្មោះអ្នកឧបត្ថម(ជាឡាតាំង)" style="width:50%%"/>
|
||||
</group>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="university_action">
|
||||
<field name="name">University Information</field>
|
||||
<field name="res_model">uni.university</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="reference_action">
|
||||
<field name="name">Reference Information</field>
|
||||
<field name="res_model">ref.reference</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="domain">[("status","=", 1)]</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="sponsor_action">
|
||||
<field name="name">Sponsor Information</field>
|
||||
<field name="res_model">scholarship.sponsor</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem name="សកលវិទ្យាល័យ" id="uni_menu" parent="setting_menu2" action="university_action"/>
|
||||
<menuitem name="អ្នកធានា" id="ref_menu" parent="setting_menu2" action="reference_action"/>
|
||||
<menuitem name="អ្នកឧបត្ថមអាហាររូបករណ៍" id="scholarship_menu" parent="setting_menu2" action="sponsor_action"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,117 @@
|
||||
<openerp>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="scholarship_kanban">
|
||||
<field name="name">scholarship_kanban</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="o_res_partner_kanban">
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_global_click o_res_partner_kanban">
|
||||
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
|
||||
<div class="o_kanban_image">
|
||||
<t>
|
||||
<img t-att-src="kanban_image('youth_and_scholarship.youth_and_scholarship', 'image', record.id.value)"/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="oe_kanban_details">
|
||||
<strong class="oe_partner_heading"><field name="Kname"/></strong>
|
||||
<ul>
|
||||
<li><field name="Ename"/></li>
|
||||
<li><field name="Gender"/></li>
|
||||
<li><field name="DOB"/></li>
|
||||
<li><field name="Job_work"/></li>
|
||||
</ul>
|
||||
<div class="oe_kanban_partner_links"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.ui.view" id="student_stu_tree">
|
||||
<field name="name">Student info</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="image" widget="image"/>
|
||||
<field name="Kname"/>
|
||||
<field name="Ename"/>
|
||||
<field name="Gender"/>
|
||||
<field name="DOB"/>
|
||||
<field name="Job_work"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="form_student_stu" model="ir.ui.view">
|
||||
<field name="name">Student Info</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Job Form" version="9.0">
|
||||
<div class="widget_box">
|
||||
<div class="widget_title"><h5><label for="information" string="ពត៌មានរបស់សិស្ស"/></h5></div>
|
||||
<div>
|
||||
<group col="1">
|
||||
<field name="image" widget="image" class="oe_avatar oe_left" nolabel="1"/>
|
||||
|
||||
</group>
|
||||
<group>
|
||||
<field name="Kname" placeholder="First Name and Last Name..." style="width:40%%"/>
|
||||
<field name="Ename" placeholder="First Name and last Name..." style="width:40%%"/>
|
||||
<field name="Gender" style="width:40%%" />
|
||||
<field name="DOB" />
|
||||
<field name="Job_work" style="width:40%%"/>
|
||||
</group>
|
||||
</div>
|
||||
|
||||
<notebook>
|
||||
<page name="Father and mother" string="ពត៌មានឪពុក និងម្តាយ">
|
||||
<group>
|
||||
<field name="parent_id" nolabel="1">
|
||||
<list string="Father" editable="bottom">
|
||||
<field name="type_postion" />
|
||||
<field name="Ename"/>
|
||||
<field name="Age" string="អាយុ"/>
|
||||
<field name="acc"/>
|
||||
<field name="situation"/>
|
||||
<field name="Phone"/>
|
||||
</list>
|
||||
</field>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</field>
|
||||
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="student_stu">
|
||||
<field name="context">{'default_Job_id': 'student scholarship'}</field>
|
||||
<field name="name">Student Info</field>
|
||||
<field name="res_model">youth.scholarship</field>
|
||||
<field name="view_mode">list,form,kanban</field>
|
||||
<field name="domain">[("IsDeleted","=",1),("Job_id","=","student scholarship")]</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_student_stu_tree">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">tree</field>
|
||||
<field name="view_id" ref="student_stu_tree"/>
|
||||
<field name="act_window_id" ref="student_stu"/>
|
||||
</record>
|
||||
<record model="ir.actions.act_window.view" id="act_form_student_stu">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="form_student_stu"/>
|
||||
<field name="act_window_id" ref="student_stu"/>
|
||||
</record>
|
||||
<!-- actions -->
|
||||
<menuitem name="SCHOLARSHIP" id="scholarship_menu_1" groups="youth_and_scholarship.group_uyfc_manager,base.user_root" web_icon="youth_and_scholarship,static/description/scholarship.png" sequence="3"/>
|
||||
<menuitem name="កំណត់" id="setting_menu" parent="scholarship_menu_1" groups="youth_and_scholarship.group_uyfc_manager,base.user_root"/>
|
||||
<menuitem name="អាហាររូបករណ៍សិស្ស" id="users_log_menu" parent="scholarship_menu_1"
|
||||
action="student_stu" groups="youth_and_scholarship.group_uyfc_manager,base.user_root"/>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,28 @@
|
||||
<openerp>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="users_log_tree">
|
||||
|
||||
<field name="name">Users Log</field>
|
||||
<field name="model">res.users.log</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="id"/>
|
||||
<field name="create_uid"/>
|
||||
<field name="create_date"/>
|
||||
<field name="write_uid"/>
|
||||
<field name="write_date"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="users_log">
|
||||
<field name="name">users log</field>
|
||||
<field name="res_model">res.users.log</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<!-- actions -->
|
||||
<menuitem name="អ្នកប្រើប្រាស់" id="users_log_menu" parent="setting_menu2"
|
||||
action="users_log"/>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,136 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="evaluation_tree" model="ir.ui.view">
|
||||
<field name="name">evaluation tree</field>
|
||||
<field name="model">evaluation.eval</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="display_name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record id="Evaluation" model="ir.ui.view">
|
||||
<field name="name">evaluation form</field>
|
||||
<field name="model">evaluation.eval</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="វាយតម្លៃ">
|
||||
<group col="2">
|
||||
<div style="float: left;">
|
||||
<img src='/youth_and_scholarship/static/src/img/logo.png' style="width: 70px; margin: 0px 0 0 120px; padding:0px;"/>
|
||||
<h5 class="font_box"><label for="aa" string="សហភាពសហព័ន្ធយុវជនកម្ពុជា(ស.ស.យ.ក)" style="font-weight: bold;margin: 0px 0 0 50px; padding:0px;"/></h5>
|
||||
<h5><label for="bb" string="UNION OF YOUTH FEDERATION OF CAMBODIA(UYFC)" style="font-weight: bold; padding:0px;"/></h5>
|
||||
<h5 class="font_box"><label for="cc" string="គណៈកម្មាធិការ ខេត្តតាកែវ" style="font-weight: bold;margin: 0px 0 0 90px; padding:0px;"/></h5>
|
||||
</div>
|
||||
<div class="font_box">
|
||||
<h2><label for="a" string="ព្រះរាជាណាចក្រកម្ពុជា" style="font-weight: bold; padding:0px 0 0 10px"/></h2>
|
||||
<h2><label for="b" string="ជាតិ សាសនា ព្រះមហាក្សត្រ" style="font-weight: bold;"/></h2>
|
||||
</div>
|
||||
</group>
|
||||
<group>
|
||||
<div align="center" class="font_box">
|
||||
<label for="c" string="ទម្រង់វាយតម្លៃយុវជនក្នុងសកម្មភាព" style="text-decoration: underline;"/>
|
||||
<field name="hit_value" style="width:20%%"/>
|
||||
</div>
|
||||
</group>
|
||||
<label for="dd" string="១.អត្តសញ្ញាណ" class="font_box"/><br/>
|
||||
<group col="8">
|
||||
<field name="youth_id"/>
|
||||
<field name="display_Gender" string="ភេទ"/>
|
||||
<field name="display_DOB" string="ថ្ងៃខែឆ្នាំកំណើត"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="date"/>
|
||||
</group>
|
||||
<group col="6" class="font_box">
|
||||
<field name="name" string="ឈ្មោះអ្នកវាយតម្លៃ"/>
|
||||
<field name="gender" string="ភេទ"/>
|
||||
<field name="position" string="មុខតំណែង"/>
|
||||
<field name="department" string="ផ្នែកស្រុក/ក្រុង"/>
|
||||
<field name="Date_of_hit" string="កាលបរិច្ឆេទវាយតម្លៃ"/>
|
||||
<div colspan="2">
|
||||
<label for="d" string="ម៉ោង" style="font-weight: bold;"/>
|
||||
<field name="hour" style="width:20%%"/>
|
||||
<label for="ff" string=":"/>
|
||||
<field name="sec" style="width:10%%"/>
|
||||
</div>
|
||||
</group>
|
||||
<group col="1">
|
||||
<div class="font_box">
|
||||
<label for="e" string="២.ការវាយតម្លៃបេក្ខភាព"/><br/>
|
||||
<label for="f" string="សូមផ្តល់ពិន្ទុដែលសុក្រឹតបំផុតដែលអាចធ្វើទៅបានទៅតាមសកម្មភាព សកម្មភាពជាក់ស្តែងរបស់បេក្ខជននីមួយៗ"/>
|
||||
</div>
|
||||
<div class="font_box">
|
||||
<field nolabel="1" name="part_of_point">
|
||||
<tree editable="bottom">
|
||||
<field name="score" string="ពិន្ទុ"/>
|
||||
<field name="rank" string="ចំណាត់ថ្នាក់"/>
|
||||
<field name="detail" string="និយមន័យ"/>
|
||||
</tree>
|
||||
</field>
|
||||
</div>
|
||||
</group>
|
||||
<group col="1">
|
||||
<div class="font_box">
|
||||
<label for="g" string="ក.លក្ខខណ្ឌវិនិច្ឆ័យនៃការវាយតម្លៃសមត្ថភាពការងារ"/>
|
||||
</div>
|
||||
<div class="font_box">
|
||||
<field nolabel="1" name="condition_eval_id" widget ="one2many_list">
|
||||
<tree editable="bottom">
|
||||
<field name="conditions" string="លក្ខខណ្ឌវិនិច្ឆ័យនៃការវាយតម្លៃ"/>
|
||||
<field name="commen" string="យោបល់"/>
|
||||
<field name="score" string="ពិន្ទុ"/>
|
||||
</tree>
|
||||
</field>
|
||||
</div>
|
||||
</group>
|
||||
<group col="1">
|
||||
<div class="font_box">
|
||||
<label for="hh" string="ខ.លក្ខខណ្ឌវិនិច្ឆ័យនៃការវាយតម្លៃលក្ខណបុគ្គល"/>
|
||||
</div>
|
||||
<div class="font_box">
|
||||
<field nolabel="1" name="self_id" widget ="one2many_list">
|
||||
<tree editable="bottom">
|
||||
<field name="con_self" string="លក្ខខណ្ឌវិនិច្ឆ័យនៃការវាយតម្លៃ"/>
|
||||
<field name="commen" string="យោបល់"/>
|
||||
<field name="score" string="ពិន្ទុ"/>
|
||||
</tree>
|
||||
</field>
|
||||
</div>
|
||||
</group>
|
||||
<group col="1">
|
||||
<div class="font_box">
|
||||
<label for="jj" string="គ.ការវាយតម្លៃលើការសរសេរអត្ថបទ"/>
|
||||
</div>
|
||||
<div class="font_box">
|
||||
<field nolabel="1" name="condition_write_id" widget ="one2many_list">
|
||||
<tree editable="bottom">
|
||||
<field name="con_write" string="លក្ខខណ្ឌវិនិច្ឆ័យនៃការវាយតម្លៃ(អត្ថន័យ[០-៨]ពិន្ទុ និងវេយ្យាករណ៍[០-២]ពិន្ទុ)"/>
|
||||
<field name="commen" string="យោបល់"/>
|
||||
<field name="score" string="ពិន្ទុ"/>
|
||||
</tree>
|
||||
</field>
|
||||
</div>
|
||||
</group>
|
||||
<div align="center" class="font_box">
|
||||
<label for="h" string="តម្រូវការដើម្បីអោយបេក្ខភាពប្រសើរឡើង"/>
|
||||
</div>
|
||||
<div colspan="2" class="font_box">
|
||||
<label for="i" string="កែរលំអរ"/>
|
||||
<field name="update" nolabel="1"/>
|
||||
<label for="j" string="ការសិក្សា"/>
|
||||
<field name="studying" nolabel="1"/>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record model="ir.actions.act_window" id="evaluation_action">
|
||||
<field name="name">ទម្រង់វាយតម្លៃសមាជិក</field>
|
||||
<field name="res_model">evaluation.eval</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
|
||||
<menuitem name="ទម្រង់វាយតម្លៃសមាជិក" id="value_menu_1" parent="youth_and_scholarship.menu_1"
|
||||
action="evaluation_action" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,366 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<!-- Kanban view -->
|
||||
<record model="ir.ui.view" id="youth_and_scholarship_kanban">
|
||||
<field name="name">youth_and_scholarship_kanban</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<kanban class="o_res_partner_kanban">
|
||||
<templates>
|
||||
<t t-name="kanban-box">
|
||||
<div class="oe_kanban_global_click o_res_partner_kanban">
|
||||
<div class="o_kanban_tags_section oe_kanban_partner_categories"/>
|
||||
<div class="o_kanban_image">
|
||||
<field name="image" widget="image"/>
|
||||
</div>
|
||||
<div class="oe_kanban_details font_box">
|
||||
<strong class="oe_partner_heading"><field name="Kname"/></strong>
|
||||
<ul>
|
||||
<li><field name="Gender"/></li>
|
||||
<li><field name="Nationality"/></li>
|
||||
<li><field name="DOB"/></li>
|
||||
<li><field name="POD"/></li>
|
||||
<li><field name="Phone"/></li>
|
||||
<li><field name="youth_kind"/></li>
|
||||
<li><field name="id_card"/></li>
|
||||
</ul>
|
||||
<div class="oe_kanban_partner_links"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</templates>
|
||||
</kanban>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- List view -->
|
||||
<record model="ir.ui.view" id="youth_and_scholarship_list">
|
||||
<field name="name">youth info</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<list class="font_box">
|
||||
<field name="Code_id"/>
|
||||
<field name="Kname"/>
|
||||
<field name="Gender"/>
|
||||
<field name="Nationality"/>
|
||||
<field name="DOB"/>
|
||||
<field name="Phone"/>
|
||||
<field name="youth_kind"/>
|
||||
<field name="id_card" string="លេខអត្តសញ្ញាណប័ណ្ណ"/>
|
||||
<field name="id_unit"/>
|
||||
<field name="status"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Form view -->
|
||||
<record model="ir.ui.view" id="information_forms">
|
||||
<field name="name">Information</field>
|
||||
<field name="model">youth.scholarship</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Youth Form">
|
||||
<notebook>
|
||||
<page string="ពាក្យសុំចូល/ពត៌មានផ្ទាល់ខ្លួន" name="information_youth">
|
||||
<div class="widget_box">
|
||||
<div class="widget_title"><h5><label id="Code_id" for="Code_id" string="ពត៌មានផ្ទាល់ខ្លួន"/></h5></div>
|
||||
<field name="image" widget="image" class="oe_avatar" style="padding-right:2%;"/><br/>
|
||||
<group>
|
||||
<group>
|
||||
<field name="Code_id" style="width:30%%"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group>
|
||||
<field name="Kname" placeholder="ជាភាសាខ្មែរ..."/>
|
||||
<field name="id_card"/>
|
||||
<field name="DOB"/>
|
||||
<field name="Gender" widget="selection"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="Ename" placeholder="ជាឡាតាំង..."/>
|
||||
<field name="nation_id"/>
|
||||
<field name="Nationality"/>
|
||||
<field name="Alive_id"/>
|
||||
</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>
|
||||
|
||||
<div class="widget_title">
|
||||
<h5><label id="fb" for="fb" string="ព័ត៌មានទំនាក់ទំនង និងអាស័យដ្ឋាន"/></h5>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="Phone" widget="phone"/>
|
||||
<field name="Email" widget="email"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="fb"/>
|
||||
<field name="gmail"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<field name="Address">
|
||||
<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>
|
||||
|
||||
<div class="widget_title">
|
||||
<h5><label id="Job_work" for="Job_work" string="អំពីការងារ និងស្ថាប័ន"/></h5>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="id_card" string="លេខអត្តសញ្ញាណបណ្ណ"/>
|
||||
<field name="Job_work" widget="many2many_tags"/>
|
||||
<field name="position_id" widget="many2many_tags"/>
|
||||
<field name="department_id" widget="many2many_tags"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="organize_id" widget="many2many_tags"/>
|
||||
<field name="instituation_id" widget="many2many_tags"/>
|
||||
<field name="id_unit"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
<div class="widget_title">
|
||||
<h5><label id="youth_kind" for="youth_kind" string="ប្រភេទយុវជន"/></h5>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="youth_kind" domain="[('parent_id','=',youth_kind)]" style="width:30%%"/>
|
||||
</group>
|
||||
</group>
|
||||
<field name="member_in">
|
||||
<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>
|
||||
|
||||
<div class="widget_title">
|
||||
<h5><label id="al_office" for="al_office" string="ការិយាល័យបោះឆ្នោត"/></h5>
|
||||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="cpp_no" style="width:35%%"/>
|
||||
<field name="al_office"/>
|
||||
</group>
|
||||
</group>
|
||||
<field name="El_Office">
|
||||
<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>
|
||||
|
||||
<div class="widget_title">
|
||||
<h5><label id="file_name" for="file_name" string="ឯកសារបញ្ជាក់"/></h5>
|
||||
</div>
|
||||
<group>
|
||||
<field name="file_name" invisible="1"/>
|
||||
<field name="upload_file" filename="file_name" colspan="2" class="oe_inline" nolabel="1"/>
|
||||
</group>
|
||||
</div>
|
||||
</page>
|
||||
|
||||
<page string="ប្រវត្តិនៃការសិក្សា និងវគ្គបណ្តុះបណ្តាល" name="History study">
|
||||
<div class="widget_title">
|
||||
<h5><label id="history_study_id" for="history_study_id" string="ប្រវត្តិនៃការសិក្សា និងវគ្គបណ្តុះបណ្តាល"/></h5>
|
||||
</div>
|
||||
<field name="history_study_id">
|
||||
<list string="History study" editable="bottom">
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំបញ្ចប់"/>
|
||||
<field name="degree_level" string="កំរិតសិក្សា"/>
|
||||
<field name="kill_id" string="ជំនាញ"/>
|
||||
<field name="university_id" string="គ្រឹះស្ថានសិក្សា"/>
|
||||
<field name="country" string="ប្រទេស"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
<page string="ប្រវត្តិការងារ" name="History Job">
|
||||
<div class="widget_title">
|
||||
<h5><label id="history_job_id" for="history_job_id" string="ប្រវត្តិការងារ"/></h5>
|
||||
</div>
|
||||
<field name="history_job_id">
|
||||
<list string="History Job" editable="top">
|
||||
<field name="date_in" string="ថ្ងៃខែឆ្នាំចូល"/>
|
||||
<field name="date_out" string="ថ្ងៃខែឆ្នាំបញ្ចប់"/>
|
||||
<field name="job_id" string="មុខតំណែង"/>
|
||||
<field name="depart_id" string="ផ្នែក"/>
|
||||
<field name="posit_id" string="ឋានៈ"/>
|
||||
<field name="department_gen" string="អគ្គនាយកដ្ឋាន/អង្គភាព"/>
|
||||
<field name="leader" string="ថ្នាក់ដឹកនាំផ្ទាល់"/>
|
||||
<field name="organize" string="ក្រសួង/ស្ថាប័ន"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
<page string="ការលើកសរសើរ ឬដាក់ពិន័យ" name="praise">
|
||||
<div class="widget_title">
|
||||
<h5><label id="praise_pr_id" for="praise_pr_id" string="ការលើកសរសើរ"/></h5>
|
||||
</div>
|
||||
<field name="praise_pr_id" string="ការលើកសរសើរ">
|
||||
<list string="Praise Records" editable="bottom">
|
||||
<field name="date"/>
|
||||
<field name="pr_kind"/>
|
||||
<field name="lavels"/>
|
||||
<field name="upload_file"/>
|
||||
<field name="file_name" invisible="1"/>
|
||||
<field name="country"/>
|
||||
</list>
|
||||
</field>
|
||||
|
||||
<div class="widget_title">
|
||||
<h5><label id="punish_pus_id" for="punish_pus_id" string="ការដាក់ពិន័យ"/></h5>
|
||||
</div>
|
||||
<field name="punish_pus_id" string="ការដាក់ពិន័យ">
|
||||
<list string="Punish Records" editable="bottom">
|
||||
<field name="date"/>
|
||||
<field name="pun_kind"/>
|
||||
<field name="lavels"/>
|
||||
<field name="upload_file"/>
|
||||
<field name="file_name" invisible="1"/>
|
||||
<field name="country"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
<page string="ព័ត៌មានគ្រួសារ" name="Family info">
|
||||
<div class="widget_title">
|
||||
<h5><label id="parent_id" for="parent_id" string="ព័ត៌មានគ្រួសារ"/></h5>
|
||||
</div>
|
||||
<field name="parent_id" nolabel="1">
|
||||
<list string="ព័ត៌មានគ្រួសារ" editable="top">
|
||||
<field name="type_postion"/>
|
||||
<field name="Kname"/>
|
||||
<field name="Ename"/>
|
||||
<field name="situation"/>
|
||||
<field name="Email"/>
|
||||
<field name="Dob"/>
|
||||
<field name="Phone"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
|
||||
<page string="ការធានាអះអាង និងអ្នកណែនាំ" name="assurance">
|
||||
<div class="widget_title">
|
||||
<h5><label id="assurance_id" for="assurance_id" string="ការធានាអះអាង និងអ្នកណែនាំ"/></h5>
|
||||
</div>
|
||||
<field name="assurance_id" nolabel="1">
|
||||
<list editable="top">
|
||||
<field name="type_postion" string="ការធានាអះអាង និងណែនាំ៖"/>
|
||||
<field name="askname" string="គោត្តនាម នាម(ជាភាសាខ្មែរ)"/>
|
||||
<field name="asename" string="គោត្តនាម នាម(ជាឡាតាំង)"/>
|
||||
<field name="dob" string="ថ្ងៃខែឆ្នាំកំណើត"/>
|
||||
<field name="email" string="អ៊ីម៉ែល៖"/>
|
||||
<field name="phone" string="លេខទូរសព្ទ"/>
|
||||
<field name="date_signal" string="ថ្ងៃខែឆ្នាំចុះហត្ថលេខា"/>
|
||||
</list>
|
||||
</field>
|
||||
</page>
|
||||
</notebook>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Assurance Youth Form -->
|
||||
<record model="ir.ui.view" id="form_view_assurance_youth">
|
||||
<field name="name">ទម្រង់អ្នកធានា</field>
|
||||
<field name="model">assurances.youth</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<group>
|
||||
<group>
|
||||
<field name="type_postion"/>
|
||||
<field name="code_id"/>
|
||||
<field name="askname"/>
|
||||
<field name="asename"/>
|
||||
<field name="gender"/>
|
||||
<field name="card_id"/>
|
||||
<field name="job"/>
|
||||
<field name="position"/>
|
||||
<field name="department"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="dob"/>
|
||||
<field name="email"/>
|
||||
<field name="phone"/>
|
||||
<field name="organization"/>
|
||||
<field name="insituation"/>
|
||||
<field name="date_signal"/>
|
||||
</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}"/>
|
||||
</list>
|
||||
</field>
|
||||
<field name="address">
|
||||
<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>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="youth_and_scholarship_actions">
|
||||
<field name="name">ពាក្យសុំចូលជាសមាជិក</field>
|
||||
<field name="res_model">youth.scholarship</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="domain">[("IsDeleted","=",1),("Job_id","=","Youth")]</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window.view" id="act_youths_forms">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="information_forms"/>
|
||||
<field name="act_window_id" ref="youth_and_scholarship_actions"/>
|
||||
</record>
|
||||
|
||||
<!-- Menus -->
|
||||
<menuitem name="UYFC-TAKEO" id="youth_and_scholarship.menu_root" sequence="1" groups="youth_and_scholarship.group_uyfc_manager,youth_and_scholarship.group_uyfc_user_input" web_icon="youth_and_scholarship,static/description/logo.png"/>
|
||||
<menuitem name="ព័ត៌មាន" id="youth_and_scholarship.menu_1" parent="youth_and_scholarship.menu_root" groups="youth_and_scholarship.group_uyfc_manager,youth_and_scholarship.group_uyfc_user_input"/>
|
||||
<menuitem name="ការកំណត់" id="setting_menu2" parent="youth_and_scholarship.menu_root" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="ពាក្យសុំចូលជាសមាជិក" id="youth_and_scholarship.menu_1_list" parent="youth_and_scholarship.menu_1" action="youth_and_scholarship_actions" sequence="2" groups="youth_and_scholarship.group_uyfc_user,youth_and_scholarship.group_uyfc_user_input,youth_and_scholarship.group_uyfc_manager"/>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,193 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="void_result_tree" model="ir.ui.view">
|
||||
<field name="name">Void Result</field>
|
||||
<field name="model">village.result</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="province"/>
|
||||
<field name="district"/>
|
||||
<field name="commune"/>
|
||||
<field name="village"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<record id="void_result_form" model="ir.ui.view">
|
||||
<field name="name">Void Result</field>
|
||||
<field name="model">village.result</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="void result">
|
||||
<div>
|
||||
<div class="font_box">
|
||||
<div style="float: left; padding:0 0 30px 20px; width:25%%">
|
||||
<group>
|
||||
<field name="province"/>
|
||||
<field name="district"/>
|
||||
<field name="commune"/>
|
||||
<field name="village"/>
|
||||
</group>
|
||||
</div>
|
||||
<div style="padding:0 30px 30px 0; float:right;text-align:center;">
|
||||
<div><strong>ឯករាជ្យ សន្តិភាព សេរីភាព ប្រជាធិបតេយ្យ </strong></div>
|
||||
<div><strong>    អព្យាក្រឹត និង វឌ្ឍនភាពសង្គម</strong></div>
|
||||
</div>
|
||||
<div style="text-align: center; margin:0 200px 0 0;">
|
||||
<div><img src='/youth_and_scholarship/static/src/img/logo_cpp.png' style="width:80px; height:70px;"/></div>
|
||||
<div style="margin:10px 0 0 0" class="font_bold_light"><strong style="padding:0 45px 0 0; font-family:Khmer OS Muol Light ;src:url(../font/KhmerOS_muollight.ttf) ;format('truetype'); text-align:center; font-size:11px;">តារាងលទ្ធផលបោះឆ្នោតឃុំក្នុងឆ្នាំ<field name="years" style="width:30%%"/> </strong></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="font-family:Khmer OS content; src:url(../font/KhmerOS_content.ttf) ;format('truetype'); font-size:14px;">
|
||||
<field name="sub_result" >
|
||||
<list editable="bottom">
|
||||
<field name="no"/>
|
||||
<field name="ps_id"/>
|
||||
<field name="party_name"/>
|
||||
<field name="member_cpp"/>
|
||||
<field name="result"/>
|
||||
</list>
|
||||
</field>
|
||||
</div>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<!--<record id="void_dis_tree" model="ir.ui.view">-->
|
||||
<!--<field name="name">Void Result</field>-->
|
||||
<!--<field name="model">village.result</field>-->
|
||||
<!--<field name="arch" type="xml">-->
|
||||
<!--<tree>-->
|
||||
<!--<field name="province"/>-->
|
||||
<!--<field name="district"/>-->
|
||||
<!--<field name="commune"/>-->
|
||||
<!--</tree>-->
|
||||
<!--</field>-->
|
||||
<!--</record>-->
|
||||
<!--<record id="void_dis_form" model="ir.ui.view">-->
|
||||
<!--<field name="name">Void Result</field>-->
|
||||
<!--<field name="model">village.result</field>-->
|
||||
<!--<field name="arch" type="xml">-->
|
||||
<!--<form string="void result">-->
|
||||
<!--<group>-->
|
||||
<!--<div class="col-xs-12">-->
|
||||
<!--<div style=" float: left;display: inline-block;"><group><field name="province"/><field name="district"/></group></div>-->
|
||||
<!--<div style="padding:0 30px 30px 0; float:right;">-->
|
||||
<!--<div><strong>ឯករាជ្យ សន្តិភាព សេរីភាព ប្រជាធិបតេយ្យ </strong></div>-->
|
||||
<!--<div><strong>    អព្យាក្រឹត និង វឌ្ឍនភាពសង្គម</strong></div>-->
|
||||
<!--</div>-->
|
||||
<!--<div style="text-align: center; margin:0 200px 0 200px;">-->
|
||||
<!--<div><img src='/youth_and_scholarship/src/src/img/logo_cpp.png' style="width:80px; height:70px;"/></div>-->
|
||||
<!--<div style="margin:10px 0 0 0" class="font_bold_light"><strong style="padding:0 50px 0 0; font-family:Khmer OS content ;src:url(../font/KhmerOS_content.ttf) ;format('truetype'); text-align:center; font-size:11px;">តារាងលទ្ធផលបោះឆ្នោតស្រុក</strong></div>-->
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
<!--</group>-->
|
||||
<!--<group>-->
|
||||
<!--<field name="sub_result" mode="tree" nolabel="1">-->
|
||||
<!--<tree editable="bottom">-->
|
||||
<!--<field name="years"/>-->
|
||||
<!--</tree>-->
|
||||
<!--</field>-->
|
||||
<!--</group>-->
|
||||
<!--</form>-->
|
||||
<!--</field>-->
|
||||
<!--</record>-->
|
||||
<!--<record id="void_pro_tree" model="ir.ui.view">-->
|
||||
<!--<field name="name">Void Result</field>-->
|
||||
<!--<field name="model">village.result</field>-->
|
||||
<!--<field name="arch" type="xml">-->
|
||||
<!--<tree>-->
|
||||
<!--<field name="province"/>-->
|
||||
<!--<field name="district"/>-->
|
||||
<!--</tree>-->
|
||||
<!--</field>-->
|
||||
<!--</record>-->
|
||||
<!--<record id="void_pro_form" model="ir.ui.view">-->
|
||||
<!--<field name="name">Void Result</field>-->
|
||||
<!--<field name="model">village.result</field>-->
|
||||
<!--<field name="arch" type="xml">-->
|
||||
<!--<form string="void result">-->
|
||||
<!--<group>-->
|
||||
<!--<div class="col-xs-12">-->
|
||||
<!--<div style=" float: left;display: inline-block;"><group><field name="province"/></group></div>-->
|
||||
<!--<div style="padding:0 30px 30px 0; float:right;">-->
|
||||
<!--<div><strong>ឯករាជ្យ សន្តិភាព សេរីភាព ប្រជាធិបតេយ្យ </strong></div>-->
|
||||
<!--<div><strong>    អព្យាក្រឹត និង វឌ្ឍនភាពសង្គម</strong></div>-->
|
||||
<!--</div>-->
|
||||
<!--<div style="text-align: center; margin:0 200px 0 200px;">-->
|
||||
<!--<div><img src='/youth_and_scholarship/src/src/img/logo_cpp.png' style="width:80px; height:70px;"/></div>-->
|
||||
<!--<div style="margin:10px 0 0 0" class="font_bold_light"><strong style="padding:0 50px 0 0; font-family:Khmer OS content ;src:url(../font/KhmerOS_content.ttf) ;format('truetype'); text-align:center; font-size:11px;">តារាងលទ្ធផលបោះឆ្នោតខេត្ត</strong></div>-->
|
||||
<!--</div>-->
|
||||
<!--</div>-->
|
||||
<!--</group>-->
|
||||
<!--<group>-->
|
||||
<!--<field name="sub_result" mode="tree" nolabel="1">-->
|
||||
<!--<tree editable="bottom">-->
|
||||
<!--<field name="years"/>-->
|
||||
<!--</tree>-->
|
||||
<!--</field>-->
|
||||
<!--</group>-->
|
||||
<!--</form>-->
|
||||
<!--</field>-->
|
||||
<!--</record>-->
|
||||
<record id="action_void_result" model="ir.actions.act_window">
|
||||
<field name="name">តារាងលទ្ធផលបោះឆ្នោតឃុំ</field>
|
||||
<field name="res_model">village.result</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="domain">[("position","=","ឃុំ")]</field>
|
||||
</record>
|
||||
<record id="action_tree_result" model="ir.actions.act_window.view">
|
||||
<field eval="1" name="sequence"/>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="void_result_tree"/>
|
||||
<field name="act_window_id" ref="action_void_result"/>
|
||||
</record>
|
||||
<record id="action_form_result" model="ir.actions.act_window.view">
|
||||
<field eval="2" name="sequence"/>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="void_result_form"/>
|
||||
<field name="act_window_id" ref="action_void_result"/>
|
||||
</record>
|
||||
<!--<record id="action_void_result_district" model="ir.actions.act_window">-->
|
||||
<!--<field name="context">{'default_position': 'ស្រុក'}</field>-->
|
||||
<!--<field name="name">តារាងលទ្ធផលបោះឆ្នោតស្រុក</field>-->
|
||||
<!--<field name="res_model">village.result</field>-->
|
||||
<!--<field name="view_mode">tree</field>-->
|
||||
<!--<field name="domain">[("position","=","ស្រុក")]</field>-->
|
||||
<!--</record>-->
|
||||
<!--<record id="action_tree_result_dis" model="ir.actions.act_window.view">-->
|
||||
<!--<field eval="1" name="sequence"/>-->
|
||||
<!--<field name="view_mode">tree</field>-->
|
||||
<!--<field name="view_id" ref="void_dis_tree"/>-->
|
||||
<!--<field name="act_window_id" ref="action_void_result_district"/>-->
|
||||
<!--</record>-->
|
||||
<!--<record id="action_form_result_dis" model="ir.actions.act_window.view">-->
|
||||
<!--<field eval="2" name="sequence"/>-->
|
||||
<!--<field name="view_mode">form</field>-->
|
||||
<!--<field name="view_id" ref="void_dis_form"/>-->
|
||||
<!--<field name="act_window_id" ref="action_void_result_district"/>-->
|
||||
<!--</record>-->
|
||||
<!--<record id="action_void_result_province" model="ir.actions.act_window">-->
|
||||
<!--<field name="context">{'default_position': 'ខេត្ត'}</field>-->
|
||||
<!--<field name="name">តារាងលទ្ធផលបោះឆ្នោតខេត្ត</field>-->
|
||||
<!--<field name="res_model">village.result</field>-->
|
||||
<!--<field name="view_mode">tree</field>-->
|
||||
<!--<field name="domain">[("position","=","ខេត្ត")]</field>-->
|
||||
<!--</record>-->
|
||||
<!--<record id="action_tree_result_pro" model="ir.actions.act_window.view">-->
|
||||
<!--<field eval="1" name="sequence"/>-->
|
||||
<!--<field name="view_mode">tree</field>-->
|
||||
<!--<field name="view_id" ref="void_pro_tree"/>-->
|
||||
<!--<field name="act_window_id" ref="action_void_result_province"/>-->
|
||||
<!--</record>-->
|
||||
<!--<record id="action_form_result_pro" model="ir.actions.act_window.view">-->
|
||||
<!--<field eval="2" name="sequence"/>-->
|
||||
<!--<field name="view_mode">form</field>-->
|
||||
<!--<field name="view_id" ref="void_pro_form"/>-->
|
||||
<!--<field name="act_window_id" ref="action_void_result_province"/>-->
|
||||
<!--</record>-->
|
||||
<menuitem name="លទ្ធផលបោះឆ្នោត" id="void_result_menu" parent="youth_and_scholarship_menu_root_1" sequence="10" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_input"/>
|
||||
<menuitem name="តារាងលទ្ធផលបោះឆ្នោតឃុំ" id="sub_void_menu" action="action_void_result" parent="void_result_menu" sequence="11" groups="youth_and_scholarship.group_cpp_manager,youth_and_scholarship.group_cpp_user,youth_and_scholarship.group_user_readonly,youth_and_scholarship.group_cpp_user_input"/>
|
||||
<!--<menuitem name="តារាងលទ្ធផលបោះឆ្នោតស្រុក" id="sub_void_menu_dis" action="action_void_result_district" parent="void_result_menu" sequence="12"/>-->
|
||||
<!--<menuitem name="តារាងលទ្ធផលបោះឆ្នោតខេត្ត" id="sub_void_menu_pro" action="action_void_result_province" parent="void_result_menu" sequence="13"/>-->
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
<record id="working_days_form_view" model="ir.ui.view">
|
||||
<field name="name">view.working.days</field>
|
||||
<field name="model">wizard.working.days</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Working Days">
|
||||
<group>
|
||||
<label for="warning" string="Do you want to disable or not?"/>
|
||||
</group>
|
||||
<footer>
|
||||
<button name="calc" type="object" string="Confirm" class="oe_highlight"/>
|
||||
<button special="cancel" string="Cancel" class="oe_highlight"/>
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_working_days" model="ir.actions.act_window">
|
||||
<field name="name"> Confirm Box</field>
|
||||
<field name="res_model">wizard.working.days</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<act_window id="wiz_working_days_action"
|
||||
res_model="wizard.working.days"
|
||||
src_model="youth.scholarship"
|
||||
target="new"
|
||||
name="បិទពត៌មាន"
|
||||
view_mode="form"
|
||||
view_id="working_days_form_view"
|
||||
key2="client_action_multi"
|
||||
multi="True"/>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -0,0 +1,238 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<!-- List Views -->
|
||||
<record model="ir.ui.view" id="Job_work_tree">
|
||||
<field name="name">job.work.list</field>
|
||||
<field name="model">job.work</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="Position_tree">
|
||||
<field name="name">position.sys.list</field>
|
||||
<field name="model">position.sys</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="Department_tree">
|
||||
<field name="name">departmet.sys.list</field>
|
||||
<field name="model">departmet.sys</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="Instituation_tree">
|
||||
<field name="name">instituation.sys.list</field>
|
||||
<field name="model">instituation.sys</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="organization_tree">
|
||||
<field name="name">organize.sys.list</field>
|
||||
<field name="model">organize.sys</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="alive_status_tree">
|
||||
<field name="name">alive.status.list</field>
|
||||
<field name="model">alive.status</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="nationality_tree">
|
||||
<field name="name">nationality.nat.list</field>
|
||||
<field name="model">nationality.nat</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="address_tree">
|
||||
<field name="name">address.add.list</field>
|
||||
<field name="model">address.add</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="loc_code"/>
|
||||
<field name="location_name"/>
|
||||
<field name="parent_location"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="gender_tree">
|
||||
<field name="name">gender.gender.list</field>
|
||||
<field name="model">gender.gender</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="address_kind" model="ir.ui.view">
|
||||
<field name="name">address.add.form</field>
|
||||
<field name="model">address.add</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Address">
|
||||
<group>
|
||||
<field name="loc_code"/>
|
||||
<field name="location_name"/>
|
||||
<field name="parent_location" invisible="loc_code == '1'"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="youth_kind_tree">
|
||||
<field name="name">youth.kind.list</field>
|
||||
<field name="model">youth.kind</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="youth_kind_form" model="ir.ui.view">
|
||||
<field name="name">youth.kind.form</field>
|
||||
<field name="model">youth.kind</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Youth kind Form" class="font_box">
|
||||
<group>
|
||||
<field name="name" string="ឈ្មោះ"/>
|
||||
<field name="parent_id"/>
|
||||
</group>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="nation_tree">
|
||||
<field name="name">nation.nat.list</field>
|
||||
<field name="model">nation.nat</field>
|
||||
<field name="arch" type="xml">
|
||||
<list>
|
||||
<field name="name"/>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Search View (Fixed for Odoo 19) -->
|
||||
<!-- <record id="search_address_filter" model="ir.ui.view">-->
|
||||
<!-- <field name="name">address search</field>-->
|
||||
<!-- <field name="model">address.add</field>-->
|
||||
<!-- <field name="arch" type="xml">-->
|
||||
<!-- <search>-->
|
||||
<!-- <field name="location_name"/>-->
|
||||
<!-- <group expand="0" string="Group By">-->
|
||||
<!-- <filter name="group_by_parent" string="Parent Directory" context="{'group_by': 'parent_location'}"/>-->
|
||||
<!-- </group>-->
|
||||
<!-- </search>-->
|
||||
<!-- </field>-->
|
||||
<!-- </record>-->
|
||||
|
||||
<!-- Actions -->
|
||||
<record model="ir.actions.act_window" id="address_action">
|
||||
<field name="name">Address</field>
|
||||
<field name="res_model">address.add</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="nationality_action">
|
||||
<field name="name">nationality</field>
|
||||
<field name="res_model">nationality.nat</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="gender_action">
|
||||
<field name="name">Gender</field>
|
||||
<field name="res_model">gender.gender</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="job_work">
|
||||
<field name="name">Job</field>
|
||||
<field name="res_model">job.work</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="department_action">
|
||||
<field name="name">Department</field>
|
||||
<field name="res_model">departmet.sys</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="instituation_action">
|
||||
<field name="name">Insituation</field>
|
||||
<field name="res_model">instituation.sys</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="position_action">
|
||||
<field name="name">Position</field>
|
||||
<field name="res_model">position.sys</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="organize_action">
|
||||
<field name="name">Organization</field>
|
||||
<field name="res_model">organize.sys</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="alive_status_action">
|
||||
<field name="name">Alive status</field>
|
||||
<field name="res_model">alive.status</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="youth_kind_action">
|
||||
<field name="name">youth kind</field>
|
||||
<field name="res_model">youth.kind</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.actions.act_window" id="nation_nat_action">
|
||||
<field name="name">ជនជាតិ</field>
|
||||
<field name="res_model">nation.nat</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
</record>
|
||||
|
||||
<!-- Menus -->
|
||||
<menuitem name="មុខរបរ" id="job_work_menu" parent="setting_menu2" action="job_work" sequence="1" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="ឋានៈ" id="position_menu" parent="setting_menu2" action="position_action" sequence="2" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="ផ្នែក" id="department_menu" parent="setting_menu2" action="department_action" sequence="3" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="ក្រសួង/ស្ថាប័ន" id="insituation_menu" parent="setting_menu2" action="instituation_action" sequence="5" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="អគ្គនាយកដា្ឋន/អង្គភាព" id="organize_menu" parent="setting_menu2" action="organize_action" sequence="4" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="ស្ថានភាពគ្រួសារ" id="alive_status_menu" parent="setting_menu2" action="alive_status_action" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="ភេទ" id="gender_menu" parent="setting_menu2" action="gender_action" sequence="6" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="សញ្ជាតិ" id="nationality_menu" parent="setting_menu2" action="nationality_action" sequence="8" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="ទីកន្លែង" id="address_menu" parent="setting_menu2" action="address_action" sequence="9" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="ប្រភេទយុវជន" id="youth_kind_menu" parent="setting_menu2" action="youth_kind_action" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
<menuitem name="ជនជាតិ" id="nation_menu" parent="setting_menu2" action="nation_nat_action" sequence="7" groups="youth_and_scholarship.group_uyfc_manager"/>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user