[IMP]subscription : Added state and buttons on top bar
bzr revid: mma@tinyerp.com-20120504113432-3cc9nsnhu9vpw2v7
This commit is contained in:
@@ -13,8 +13,17 @@
|
||||
<field name="model">subscription.subscription</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Subscriptions">
|
||||
<group col="6" colspan="4">
|
||||
<form layout="manual">
|
||||
<div class="oe_form_topbar">
|
||||
<button name="set_process" states="draft" string="Process" type="object" icon="gtk-go-forward"/>
|
||||
<button name="set_done" states="running" string="Stop" type="object" icon="gtk-stop"/>
|
||||
<button name="set_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert"/>
|
||||
<div class="oe_right">
|
||||
<field name="state" widget="statusbar" nolabel="1" statusbar_visible="draft,running"/>
|
||||
</div>
|
||||
</div>
|
||||
<sheet string="Subscriptions" layout="auto">
|
||||
<group col="6" colspan="4" class="oe_form_header">
|
||||
<field name="name" select="1"/>
|
||||
<field name="partner_id" select="1"/>
|
||||
<field name="user_id" select="1"/>
|
||||
@@ -32,12 +41,6 @@
|
||||
<field colspan="4" name="notes" nolabel="1"/>
|
||||
<separator colspan="4"/>
|
||||
<field colspan="4" name="cron_id" readonly="1"/>
|
||||
<field name="state" readonly="1"/>
|
||||
<group col="3" colspan="2">
|
||||
<button name="set_process" states="draft" string="Process" type="object" icon="gtk-go-forward"/>
|
||||
<button name="set_done" states="running" string="Stop" type="object" icon="gtk-stop"/>
|
||||
<button name="set_draft" states="done" string="Set to Draft" type="object" icon="gtk-convert"/>
|
||||
</group>
|
||||
</page>
|
||||
<page string="Documents created">
|
||||
<field colspan="4" name="doc_lines" nolabel="1" widget="one2many_list"/>
|
||||
@@ -47,6 +50,7 @@
|
||||
<field name="note" colspan="4" nolabel="1"/>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user