summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2014-04-16 15:03:56 +0200
committerThibault Delavallée <tde@openerp.com>2014-04-16 15:03:56 +0200
commitfdb5200d807fda730e2758d64a4a8d1174ea51ca (patch)
tree6c081eea1ac1224d36ae5cbf6bde5e1fe33d0388 /addons
parent3298051016f3e43799d27b7c4eb874a50c58fe66 (diff)
[FIX] crm_todo: usability fix: the lead was not present
in the task form view, but in the tree view, it is now present in both view when coming from 'my tasks' in crm menu. lp bug: https://launchpad.net/bugs/1256392 fixed bzr revid: tde@openerp.com-20140416130356-i3a5pqcib8smdx47
Diffstat (limited to 'addons')
-rw-r--r--addons/crm_todo/crm_todo_view.xml11
1 files changed, 11 insertions, 0 deletions
diff --git a/addons/crm_todo/crm_todo_view.xml b/addons/crm_todo/crm_todo_view.xml
index 0b3de338808..0d1fd30fc5f 100644
--- a/addons/crm_todo/crm_todo_view.xml
+++ b/addons/crm_todo/crm_todo_view.xml
@@ -42,6 +42,17 @@
</field>
</record>
+ <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>
<record model="ir.actions.act_window" id="crm_todo_action">
<field name="name">My Tasks</field>