[IMP]project_long_term: add button and state at topbar
bzr revid: kjo@tinyerp.com-20120426070201-zwwqq9uijfh2byex
This commit is contained in:
@@ -103,7 +103,18 @@
|
||||
<field name="model">project.phase</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Project Phase">
|
||||
<form layout="manual">
|
||||
<div class="oe_form_topbar">
|
||||
<button string="Draft" name="set_draft" states="open" icon="gtk-indent"/>
|
||||
<button string="Pending" name="set_pending" states="open" icon="gtk-media-pause"/>
|
||||
<button string="Done" name="set_done" states="pending,open" icon="terp-dialog-close"/>
|
||||
<button string="Start Phase" name="set_open" states="pending,draft" icon="gtk-execute"/>
|
||||
<button string="Cancel" name="set_cancel" states="draft,open,pending" icon="gtk-cancel"/>
|
||||
<div class="oe_right">
|
||||
<field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,open,done" statusbar_colors='{"pending":"blue"}' select="1"/>
|
||||
</div>
|
||||
</div>
|
||||
<sheet string="Project Phase" layout="auto">
|
||||
<group colspan="6" col="6">
|
||||
<group colspan="6" col="7" >
|
||||
<field name="name" colspan="4"/>
|
||||
@@ -128,15 +139,6 @@
|
||||
<field name="date_end"/>
|
||||
</form>
|
||||
</field>
|
||||
<separator string="" colspan="4"/>
|
||||
<group col="12" colspan="4">
|
||||
<field name="state" widget="statusbar" statusbar_visible="draft,open,done" statusbar_colors='{"pending":"blue"}' select="1"/>
|
||||
<button string="Cancel" name="set_cancel" states="draft,open,pending" icon="gtk-cancel"/>
|
||||
<button string="Draft" name="set_draft" states="open" icon="gtk-indent"/>
|
||||
<button string="Pending" name="set_pending" states="open" icon="gtk-media-pause"/>
|
||||
<button string="Done" name="set_done" states="pending,open" icon="terp-dialog-close"/>
|
||||
<button string="Start Phase" name="set_open" states="pending,draft" icon="gtk-execute"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Tasks Details">
|
||||
<field colspan="4" name="task_ids" readonly="1" context="{'default_project_id' :project_id}" nolabel="1">
|
||||
@@ -173,6 +175,7 @@
|
||||
</page>
|
||||
</notebook>
|
||||
<newline/>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user