[IMP] Project: added type_id (stage) in statusbar, set state in form view with technical group. Also fixed an issue with project_issue (undefined on_change due to copy-and-paste).

bzr revid: tde@openerp.com-20120525133212-j8rqt85nmtraneh7
This commit is contained in:
Thibault Delavallée 2012-05-25 15:32:12 +02:00
parent 564edefe27
commit 95c635f4fc
2 changed files with 3 additions and 3 deletions

View File

@ -313,7 +313,7 @@
<button name="%(action_project_task_delegate)d" states="pending,open,draft" string="Delegate" type="action"/>
<button name="do_cancel" states="draft,open,pending" string="Cancel" type="object"/>
<div class="oe_right">
<field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,open,done" statusbar_colors='{"pending":"blue"}' select="1" groups="base.group_no_one"/>
<field name="type_id" nolabel="1" widget="statusbar"/>
</div>
<div class="oe_clear"/>
</div>
@ -377,6 +377,7 @@
<separator string="Planning" colspan="2"/>
<field name="priority"/>
<field name="sequence"/>
<field name="state" groups="base.group_no_one"/>
</group>
<separator string="Miscellaneous" colspan="4"/>

View File

@ -69,8 +69,7 @@
<button name="case_cancel" string="Cancel" type="object"
states="draft,open,pending" icon="gtk-cancel"/>
<div class="oe_right">
<field name="stage_id" nolabel="1" widget="statusbar"
on_change="onchange_stage_id(stage_id)"/>
<field name="stage_id" nolabel="1" widget="statusbar"/>
</div>
<div class="oe_clear"/>
</div>