Merge lp:~openerp-dev/openobject-server/trunk-bug-848935-tch into lp:openobject-server

Proposed by Twinkle Christian(OpenERP)
Status: Work in progress
Proposed branch: lp:~openerp-dev/openobject-server/trunk-bug-848935-tch
Merge into: lp:openobject-server
Diff against target: 14 lines (+2/-2)
1 file modified
openerp/addons/base/ir/workflow/workflow_view.xml (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openobject-server/trunk-bug-848935-tch
Reviewer Review Type Date Requested Status
Vo Minh Thu (community) Needs Fixing
Review via email: mp+130346@code.launchpad.net

Description of the change

Hello Sir,
I have add domain for Creating a new workflow transition for to limit sources and destinations to current workflow
Kindly review it.

Thanks,
TCH.

To post a comment you must log in.
Revision history for this message
Vo Minh Thu (thu) wrote :

I don't think it works if you create a transition from the regular form view (i.e. without coming from an existing activity) as the parent would not be set and thus would not have a wkf_id attribute.

review: Needs Fixing

Unmerged revisions

4495. By Twinkle Christian(OpenERP)

[FIX]workflow issue

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openerp/addons/base/ir/workflow/workflow_view.xml'
2--- openerp/addons/base/ir/workflow/workflow_view.xml 2012-08-19 12:46:31 +0000
3+++ openerp/addons/base/ir/workflow/workflow_view.xml 2012-10-18 13:25:15 +0000
4@@ -196,8 +196,8 @@
5 <sheet>
6 <group>
7 <group>
8- <field name="act_from"/>
9- <field name="act_to"/>
10+ <field name="act_from" domain="[('wkf_id','=',parent.wkf_id)]"/>
11+ <field name="act_to" domain="[('wkf_id','=',parent.wkf_id)]"/>
12 <field name="signal"/>
13 <field name="condition"/>
14 </group>