156 lines
6.3 KiB
XML
Executable File
156 lines
6.3 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<record id="action_brm_action_list" model="ir.actions.act_window">
|
|
<field name="name">Actions</field>
|
|
<field name="type">ir.actions.act_window</field>
|
|
<field name="res_model">sos_brm_action</field>
|
|
<field name="view_mode">tree,form,kanban</field>
|
|
</record>
|
|
|
|
<record id="sos_brm_action_search" model="ir.ui.view">
|
|
<field name="name">sos_brm_action.view.search</field>
|
|
<field name="model">sos_brm_action</field>
|
|
<field name="arch" type="xml">
|
|
<search string="Search Actions">
|
|
<field name="name" string="Action Point"/>
|
|
<filter name="cross_only"
|
|
string="Cross Dept Activities"
|
|
domain="[('cross_dept_action','=','cross_dept')]"
|
|
context="{'show_cross_cols': True}"/>
|
|
<searchpanel>
|
|
<field name="cross_dept_action" string="Action Type" icon="fa-list-ul" enable_counters="1"/>
|
|
<field name="department" string="Department" icon="fa-list-ul" enable_counters="1"/>
|
|
|
|
</searchpanel>
|
|
<field name="responsible_person" string="Assigned To"/>
|
|
<field name="assigned_by" string="Assigned By"/>
|
|
<field name="department" string="Department"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="sos_brm_action_view_tree" model="ir.ui.view">
|
|
<field name="name">sos_brm_action.view.tree</field>
|
|
<field name="model">sos_brm_action</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<!-- <header> <button class="oe_highlight" type="object" name="action_assign_action_btn" display="always" string="Add Cross Dept Activities"></button> </header> -->
|
|
<field name="cross_dept_action"/>
|
|
<field name="todo_id" invisible="not id"/>
|
|
<field name="name"/>
|
|
<field name="priority"/>
|
|
<field name="assigned_by" widget="many2one_avatar_user"/>
|
|
<field name="responsible_person" widget="many2one_avatar_user"/>
|
|
<field name="status" widget="badge"
|
|
decoration-success="status == 'close'"
|
|
decoration-danger="status == 'open'"/>
|
|
<!-- Extra columns: shown only when context flag is true -->
|
|
<field name="assigned_from_dept"
|
|
column_invisible="not context.get('show_cross_cols', False)"/>
|
|
<field name="assigned_to_dept"
|
|
column_invisible="not context.get('show_cross_cols', False)"/>
|
|
|
|
<field name="write_uid" string="Last Edited By" optional="hide"/>
|
|
<field name="write_date" string="Last Edited On" optional="hide"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
|
|
<record id="view_form_sos_brm_action_cross_dept" model="ir.ui.view">
|
|
<field name="name">Form</field>
|
|
<field name="model">sos_brm_action</field>
|
|
<field name="priority" eval="90"/>
|
|
<field name="arch" type="xml">
|
|
<form string="Model Form">
|
|
<group>
|
|
<group>
|
|
<field name="todo_id" invisible="not id"/>
|
|
<field name="cross_dept_action" invisible="1"/>
|
|
<field name="name"/>
|
|
<field name="start_date" invisible="1"/>
|
|
<field name="allowed_user_ids" invisible="1"/>
|
|
<field name="assigned_to_dept"/>
|
|
|
|
<field name="result" string="Description"/>
|
|
</group>
|
|
<group>
|
|
<field name="assigned_from_dept"/>
|
|
<field name="responsible_person" widget="many2one_avatar_user"/>
|
|
|
|
</group>
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="sos_brm_action_form_view" model="ir.ui.view">
|
|
<field name="name">Form</field>
|
|
<field name="model">sos_brm_action</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Model Form">
|
|
<sheet>
|
|
<widget name="web_ribbon" text="Open" bg_color="bg-danger" invisible="status == 'close'"/>
|
|
<widget name="web_ribbon" text="Closed" bg_color="bg-success" invisible="status == 'open'"/>
|
|
<h2 style="text-align: center;text-transform: uppercase;text-shadow: 1px 1p 1px #140718;color: #65407c;padding:5px;">To-Do Management</h2><hr></hr><br></br>
|
|
<table class="table" style="box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;">
|
|
<tr>
|
|
<td><group><field name="cross_dept_action" readonly="id"/></group></td>
|
|
</tr>
|
|
|
|
</table>
|
|
<br></br><br></br><br></br>
|
|
<group>
|
|
<group>
|
|
<field name="todo_id" invisible="not id"/>
|
|
<field name="name"/>
|
|
<field name="priority"/>
|
|
<field name="department"/>
|
|
<field name="start_date" readonly="id"/>
|
|
<field name="target_date"/>
|
|
<field name="end_date"/>
|
|
</group>
|
|
<group>
|
|
<field name="status"/>
|
|
<field name="cross_dept_action" invisible="1"/>
|
|
<field name="assigned_from_dept" invisible="cross_dept_action == 'inter_dept'"/>
|
|
<field name="assigned_to_dept" invisible="cross_dept_action == 'inter_dept'"/>
|
|
<field name="allowed_user_ids" invisible="1"/>
|
|
<field name="responsible_person" widget="many2one_avatar_user"/>
|
|
|
|
</group>
|
|
</group>
|
|
<group> <field name="result"/></group>
|
|
<br></br><br></br>
|
|
<field name="line_ids">
|
|
<tree editable="bottom">
|
|
<field name="start_date"/>
|
|
<field name="name"/>
|
|
<field name="target_date"/>
|
|
<field name="result"/>
|
|
<field name="status"/>
|
|
</tree>
|
|
</field>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
<record id="action_brm_monthly_summary_wizard" model="ir.actions.act_window">
|
|
<field name="name">Reports</field>
|
|
<field name="res_model">sos_brm_action_report_wizard</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
<record id="action_cross_dept_report_wizard" model="ir.actions.act_window">
|
|
<field name="name">Reports</field>
|
|
<field name="res_model">sos_cross_dept_report_wizard</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="target">new</field>
|
|
</record>
|
|
<menuitem id="sos_brm_action_menu" sequence="1" action="action_brm_action_list" name="Action Plan" parent="sos_brm_menu_root" />
|
|
<menuitem id="sos_brm_report_menu" action="action_brm_monthly_summary_wizard" name="To-Do Reports" parent="sos_brm_reports_root" />
|
|
<menuitem id="sos_cross_dept_report_menu" action="action_cross_dept_report_wizard" name="Cross-Dept Reports" parent="sos_brm_reports_root" />
|
|
<menuitem id="qo_menu"
|
|
name="Quality Objectives (QO)"
|
|
parent="sos_brm_menu_root" action="sos_qo_aod.action_qo_form_list"/>
|
|
</odoo>
|