[FIX] domain on stages
bzr revid: fp@tinyerp.com-20111230104145-nfhy05loix8fxsez
This commit is contained in:
parent
464e175ee6
commit
442d0db696
|
@ -67,7 +67,7 @@
|
|||
<newline />
|
||||
<field name="user_id" />
|
||||
<field name="section_id" widget="selection" />
|
||||
<field name="stage_id" domain="['|', ('section_ids','=',False), ('section_ids', '=', section_id)]" />
|
||||
<field name="stage_id" domain="section_id and [('section_ids', '=', section_id)] or []" />
|
||||
<group col="2" colspan="1">
|
||||
<button name="stage_previous" string=""
|
||||
states="open,pending,draft" type="object"
|
||||
|
@ -440,7 +440,7 @@
|
|||
<group colspan="1" col="4">
|
||||
<field name="stage_id" nolabel="1"
|
||||
on_change="onchange_stage_id(stage_id)"
|
||||
domain="['|', ('section_ids','=',False), ('section_ids', '=', section_id)]"/>
|
||||
domain="[section_id and [('section_ids', '=', section_id)] or []"/>
|
||||
<button name="stage_previous"
|
||||
states="draft,open,pending" type="object"
|
||||
icon="gtk-go-back" string="" context="{'stage_type': 'opportunity'}"/>
|
||||
|
|
Loading…
Reference in New Issue