Better layout of some views

This commit is contained in:
Cédric Krier
2011-10-04 19:52:35 +02:00
parent 38f7c797b3
commit c2ebd9502d
3 changed files with 12 additions and 13 deletions
+2 -2
View File
@@ -42,11 +42,11 @@ this repository contains the full copyright notices and license terms. -->
<button string="Cancel"
name="cancel"
states="{'invisible': In(Eval('state'), ['cancel', 'done']), 'readonly': Not(In(%(group_stock)d, Eval('groups', [])))}"
icon="'tryton-cancel'" />
icon="tryton-cancel" />
<button string="Confirm"
name="done"
states="{'invisible': In(Eval('state'), ['done','cancel']), 'readonly': Not(In(%(group_stock)d, Eval('groups', [])))}"
icon="'tryton-ok'"/>
icon="tryton-ok"/>
</group>
</group>
</form>
+4 -2
View File
@@ -17,9 +17,11 @@ this repository contains the full copyright notices and license terms. -->
<field name="state"/>
<group col="2" colspan="2" id="buttons">
<button name="button_draft" type="object" string="Draft"
states="{'invisible': Equal(Eval('state'), 'draft'), 'readonly': Not(In(%(group_stock_admin)d, Eval('groups', [])))}"/>
states="{'invisible': Equal(Eval('state'), 'draft'), 'readonly': Not(In(%(group_stock_admin)d, Eval('groups', [])))}"
icon="tryton-clear"/>
<button name="button_close" type="object" string="Close"
states="{'invisible': Equal(Eval('state'), 'closed'), 'readonly': Not(In(%(group_stock_admin)d, Eval('groups', [])))}"/>
states="{'invisible': Equal(Eval('state'), 'closed'), 'readonly': Not(In(%(group_stock_admin)d, Eval('groups', [])))}"
icon="tryton-ok"/>
</group>
</form>
]]>
+6 -9
View File
@@ -243,11 +243,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="arch" type="xml">
<![CDATA[
<form string="Unable to Assign" col="2">
<image name="tryton-dialog-information"/>
<image name="tryton-dialog-warning" xexpand="0" xfill="0"/>
<separator string="Unable to assign those products:"
id="unable"/>
<label id="empty"/>
<field name="moves">
<field name="moves" colspan="2">
<tree string="Moves" fill="1">
<field name="product"/>
<field name="quantity"/>
@@ -446,11 +445,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="arch" type="xml">
<![CDATA[
<form string="Unable to Assign" col="2">
<image name="tryton-dialog-information"/>
<image name="tryton-dialog-warning" xexpand="0" xfill="0"/>
<separator string="Unable to assign those products:"
id="unable"/>
<label id="empty"/>
<field name="inventory_moves">
<field name="inventory_moves" colspan="2">
<tree string="Inventory Moves" fill="1">
<field name="product"/>
<field name="quantity"/>
@@ -624,11 +622,10 @@ this repository contains the full copyright notices and license terms. -->
<field name="arch" type="xml">
<![CDATA[
<form string="Unable to Assign" col="2">
<image name="tryton-dialog-information"/>
<image name="tryton-dialog-warning" xexpand="0" xfill="0"/>
<separator string="Unable to assign those products:"
id="unable"/>
<label id="empty"/>
<field name="moves">
<field name="moves" colspan="2">
<tree string="Moves" fill="1">
<field name="product"/>
<field name="quantity"/>