Chandni Gandhi has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-1106166-cga into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #1106166 in OpenERP Addons: "[trunk/7.0] With project_long_term, when 
creating task from phase, no autocompleted project"
  https://bugs.launchpad.net/openobject-addons/+bug/1106166

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1106166-cga/+merge/145167

Hello,

Add the context to Related Tasks button.

Thanks
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1106166-cga/+merge/145167
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-1106166-cga.
=== modified file 'project_long_term/project_long_term_view.xml'
--- project_long_term/project_long_term_view.xml	2012-12-19 06:48:44 +0000
+++ project_long_term/project_long_term_view.xml	2013-01-28 12:21:28 +0000
@@ -150,7 +150,7 @@
                     <field name="state" widget="statusbar" statusbar_visible="draft,open,done" statusbar_colors='{"pending":"blue"}'/>
                 </header>
                 <sheet>
-                    <button name="%(project_phase_task_list)d" string="Related Tasks" type="action" class="oe_right"/>
+                    <button name="%(project_phase_task_list)d" string="Related Tasks" type="action" class="oe_right" context="{'search_default_project_id': [project_id], 'default_project_id' : project_id}"/>
                     <div class="oe_title">
                         <label for="name" class="oe_edit_only"/>
                         <h1><field name="name"/></h1>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to