Somesh Khare(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-574767-skh into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574767-skh/+merge/105614

Hello Sir,

[Fix]: missing domain on project task for phase.

Steps to reproduce:
- Create a projet
- Create a phase for this projet
- Create another project
- Create a other phase for this last project.

- Create a task for the second project (fill the field "Projet on the task")
- Select a phase for this task
--> Problem: we see all the phases instead of the phase related to the project 
on the task.

This branch fixes this issue.

Kindly review the branch and please share your views on it.

Thanks,
Somesh Khare 
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-574767-skh/+merge/105614
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-574767-skh.
=== modified file 'project_long_term/project_long_term_view.xml'
--- project_long_term/project_long_term_view.xml	2012-01-31 13:36:57 +0000
+++ project_long_term/project_long_term_view.xml	2012-05-14 06:50:23 +0000
@@ -278,7 +278,7 @@
             <field name="inherit_id" ref="project.view_task_form2"/>
             <field name="arch" type="xml">
                 <xpath expr="//field[@name='effective_hours']" position="after">
-                    <field name="phase_id"/>
+                    <field name="phase_id" domain ="[('project_id','=',project_id)]"/>
                 </xpath>
             </field>
         </record>

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to