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.
 
 
 
 
 

191 lines
10 KiB

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record model="ir.ui.view" id="project_scrum_form_view">
<field name="name">project.scrum.form</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<form>
<header>
<button name="send" string="Send Report" states='report' type="object" class="oe_highlight"/>
<button name="create_scrum_report" string="Scrum Report" states='working' type="object" class="oe_highlight"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<group>
<field name="name" readonly="1"/>
</group>
<group>
<group>
<field name="user_id" readonly="1"/>
</group>
<group>
<field name="date" readonly="1"/>
</group>
</group>
<notebook>
<page name="scrum_plan_page" string="Scrum Plan">
<field name="scrum_plan" attrs="{'readonly':[('state', 'not in', 'plan')]}">
<tree editable="bottom" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="task" domain="[('active', '=', 'True'),
('date_deadline', '&gt;', current_date),
('user_id', '=', uid)]"/>
<field name="project" readonly="1"/>
<field name="planned_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</page>
<page name="scrum_report_page" string="Scrum Report" attrs="{'invisible':[('state', 'in', ('plan', 'working'))]}">
<field name="scrum_report">
<tree editable="bottom" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="task" domain="[('active', '=', 'True'),
('date_deadline', '&gt;', current_date),
('user_id', '=', uid)]"/>
<field name="project" readonly="1"/>
<field name="worked_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="project_scrum_form_view1">
<field name="name">project.scrum.form1</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<form create="false" edit="false">
<header>
<button name="send" string="Send Report" states='report' type="object" class="oe_highlight"/>
<button name="create_scrum_report" string="Scrum Report" states='working' type="object" class="oe_highlight"/>
<field name="state" widget="statusbar"/>
</header>
<sheet>
<group>
<field name="name" readonly="1"/>
</group>
<group>
<group>
<field name="user_id" readonly="1"/>
</group>
<group>
<field name="date" readonly="1"/>
</group>
</group>
<notebook>
<page name="scrum_plan_page" string="Scrum Plan">
<field name="scrum_plan" attrs="{'readonly':[('state', 'in', 'report')]}">
<tree editable="bottom" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="task" domain="[('active', '=', 'True'),
('date_deadline', '&gt;', current_date),
('user_id', '=', uid)]"/>
<field name="project" readonly="1"/>
<field name="planned_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</page>
<page name="scrum_report_page" string="Scrum Report" attrs="{'invisible':[('state', 'in', 'plan')]}">
<field name="scrum_report">
<tree editable="bottom" colors="#22527b:status == 'scheduled';#C2BD02:status == 'on_going';
red:status == 'halted';green:status == 'completed';">
<field name="task" domain="[('active', '=', 'True'),
('date_deadline', '&gt;', current_date),
('user_id', '=', uid)]"/>
<field name="project" readonly="1"/>
<field name="worked_hrs"/>
<field name="status"/>
<field name="remarks"/>
</tree>
</field>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="project_scrum_tree_view">
<field name="name">project.scrum.tree</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<tree>
<field name="name"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="project_scrum_tree_view1">
<field name="name">project.scrum.tree1</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<tree create="false">
<field name="name"/>
<field name="date"/>
<field name="state"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="project_scrum_search_view">
<field name="name">project.scrum.search</field>
<field name="model">project.scrum</field>
<field name="arch" type="xml">
<search string="Search Scrum">
<field name="name"/>
<field name="user_id"/>
<field name="date"/>
<field name="state"/>
<group expand="0" string="Group By">
<filter string="State" domain="[]" context="{'group_by':'state'}"/>
<filter string="Today's Scrum" domain="[('date', '=', datetime.datetime.today())]"/>
</group>
</search>
</field>
</record>
<record id="my_scrum_action" model="ir.actions.act_window">
<field name="name">Scrum Plan and Report</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">project.scrum</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="project_scrum_search_view"/>
<field name="domain">[('user_id','=', uid)]</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Click to add new Scrum.
</p>
</field>
</record>
<record id="project_scrum_action" model="ir.actions.act_window">
<field name="name">Scrum Plan and Report</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">project.scrum</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_ids"
eval="[(5, 0, 0),
(0, 0, {'view_mode': 'tree', 'view_id': ref('project_scrum_tree_view1')}),
(0, 0, {'view_mode': 'form', 'view_id': ref('project_scrum_form_view1')})]"/>
</record>
<menuitem id="scrum_main_menu" name="Scrum" parent="base.menu_main_pm" sequence="99"/>
<menuitem id="my_plan_menu" name="My Scrum" parent="scrum_main_menu" sequence="1" action="my_scrum_action"/>
<menuitem id="scrum_plan_report_menu" name="Scrum Plan and Report" parent="scrum_main_menu" sequence="2"
action="project_scrum_action" groups="base.group_user"/>
</data>
</openerp>