You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

143 lines
5.2 KiB

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="task_checklist_action_tree" model="ir.ui.view">
<field name="name">task.checklist.action.tree</field>
<field name="model">task.checklist</field>
<field name="arch" type="xml">
<tree string="Task Checklist">
<field name="name"/>
<field name="project_id"/>
</tree>
</field>
</record>
<record id="task_checklist_action_form" model="ir.ui.view">
<field name="name">task.checklist.action.form</field>
<field name="model">task.checklist</field>
<field name="arch" type="xml">
<form string="Task Checklist">
<sheet>
<group>
<group>
<field name="name"/>
<field name="description"/>
</group>
<group>
<field name="project_id"/>
</group>
</group>
<label for="checklist_ids" string="CheckList Items"/>
<field name="checklist_ids">
<tree create="1">
<field name="sequence" widget="handle"/>
<field name="name" required="1"/>
<field name="description"/>
</tree>
</field>
</sheet>
</form>
</field>
</record>
<record id="checklist_item_action_form" model="ir.ui.view">
<field name="name">checklist.item.action.form</field>
<field name="model">checklist.item</field>
<field name="arch" type="xml">
<form string="Checklist Item">
<header>
<button type="object" name="approve_and_next" class="text-success"
string="Approve" icon="fa-check" states='todo,in_progress'/>
<button type="object" name="mark_completed" icon="fa-check-circle" class="text-success"
string="Completed"/>
<button type="object" name="mark_canceled" icon="fa-times" class="text-danger"
string="Canceled"/>
<button type="object" name="reset_stage" class="text-danger" string="Reset"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<group>
<group>
<field name="name"/>
<field name="description"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="checklist_activity_stages_action_tree" model="ir.ui.view">
<field name="name">checklist.activity.stages.tree</field>
<field name="model">checklist.activity.stages</field>
<field name="arch" type="xml">
<tree string="Checklist Activity Stage">
<field name="stage_name"/>
<field name="sequence"/>
</tree>
</field>
</record>
<record id="checklist_activity_stages_action_form" model="ir.ui.view">
<field name="name">checklist.activity.stages.form</field>
<field name="model">checklist.activity.stages</field>
<field name="arch" type="xml">
<form string="Checklist Activity Stage">
<sheet>
<group>
<group>
<field name="stage_name"/>
<field name="sequence"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="checklist_activity_stage_action" model="ir.actions.act_window">
<field name="name">Checklist Activity Stage</field>
<field name="res_model">checklist.activity.stages</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a checklist activity
</p>
</field>
</record>
<record id="task_checklist_action" model="ir.actions.act_window">
<field name="name">Task Checklist</field>
<field name="res_model">task.checklist</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a checklist
</p>
</field>
</record>
<menuitem
id="project_checklist_root"
name="Checklist"
parent="project.menu_project_config"
sequence="6"/>
<menuitem
parent="project_checklist_root"
id="menu_checklist_activity_stage"
action="checklist_activity_stage_action"
name="Checklist Activity Stage"
sequence="3"/>
<menuitem
parent="project_checklist_root"
id="menu_task_checklist"
name="Task Checklist"
action="task_checklist_action"
sequence="1"/>
</odoo>