2011-07-19 08:35:17 +00:00
|
|
|
<?xml version="1.0" ?>
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
2011-11-07 22:13:37 +00:00
|
|
|
<record id="crm_todo_opportunity_add" model="ir.ui.view">
|
|
|
|
<field name="name">Opportunities - Tasks</field>
|
2011-08-17 07:04:20 +00:00
|
|
|
<field name="model">crm.lead</field>
|
2011-11-07 22:13:37 +00:00
|
|
|
<field name="inherit_id" ref="crm.crm_case_form_view_oppor" />
|
2011-07-19 08:35:17 +00:00
|
|
|
<field name="arch" type="xml">
|
2011-11-07 22:13:37 +00:00
|
|
|
<data>
|
2012-06-03 21:23:55 +00:00
|
|
|
<page string="Lead" position="before">
|
2011-11-07 22:13:37 +00:00
|
|
|
<page string="Tasks">
|
|
|
|
<field name="task_ids" colspan="4" nolabel="1">
|
|
|
|
<tree editable="bottom" string="Tasks">
|
|
|
|
<field name="name"/>
|
2013-09-04 14:11:22 +00:00
|
|
|
<field name="user_id" context="{'default_groups_ref': ['base.group_user', 'base.group_partner_manager', 'project.group_project_user']}"/>
|
2011-11-07 22:13:37 +00:00
|
|
|
|
|
|
|
<field string="Timebox" name="timebox_id"/>
|
2013-06-27 09:04:30 +00:00
|
|
|
<button name="prev_timebox" type="object" string="Previous"/>
|
|
|
|
<button name="next_timebox" type="object" string="Next"/>
|
2011-11-07 22:13:37 +00:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</page>
|
|
|
|
</page>
|
|
|
|
</data>
|
2011-07-19 08:35:17 +00:00
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2011-11-07 22:13:37 +00:00
|
|
|
<record model="ir.ui.view" id="project_task_crm_tree">
|
|
|
|
<field name="name">project.task.tree.crm</field>
|
|
|
|
<field name="model">project.task</field>
|
|
|
|
<field name="priority">20</field>
|
|
|
|
<field name="inherit_id" ref="project.view_task_tree2" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="remaining_hours" position="after">
|
|
|
|
<field name="lead_id" invisible="not context.get('lead_id', False)"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2014-04-16 13:03:56 +00:00
|
|
|
<record model="ir.ui.view" id="project_task_crm_form">
|
|
|
|
<field name="name">project.task.form.crm</field>
|
|
|
|
<field name="model">project.task</field>
|
|
|
|
<field name="priority">20</field>
|
|
|
|
<field name="inherit_id" ref="project.view_task_form2" />
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="partner_id" position="after">
|
|
|
|
<field name="lead_id" invisible="not context.get('lead_id', False)"/>
|
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
2011-11-07 22:13:37 +00:00
|
|
|
|
2011-07-19 08:35:17 +00:00
|
|
|
<record model="ir.actions.act_window" id="crm_todo_action">
|
2011-11-14 10:47:34 +00:00
|
|
|
<field name="name">My Tasks</field>
|
2011-11-07 22:13:37 +00:00
|
|
|
<field name="res_model">project.task</field>
|
2011-11-14 10:47:34 +00:00
|
|
|
<field name="context">{'set_editable':True,'set_visible':True,'gtd':True,'user_invisible':True, "search_default_open": 1, "lead_id": 1}</field>
|
|
|
|
<field name="search_view_id" ref="project_gtd.view_task_gtd_search"/>
|
|
|
|
<field name="domain">[('user_id','=',uid)]</field>
|
2011-07-19 08:35:17 +00:00
|
|
|
<field name="view_type">form</field>
|
2011-11-07 22:13:37 +00:00
|
|
|
<field name="view_mode">tree,form,calendar,gantt,graph,kanban</field>
|
2011-07-19 08:35:17 +00:00
|
|
|
</record>
|
2013-04-04 11:56:27 +00:00
|
|
|
<menuitem id="menu_crm_todo"
|
|
|
|
parent="base.menu_sales"
|
|
|
|
action="crm_todo_action"
|
|
|
|
sequence="7"/>
|
2011-11-07 22:13:37 +00:00
|
|
|
|
|
|
|
|
2011-07-19 08:35:17 +00:00
|
|
|
</data>
|
|
|
|
</openerp>
|