Removed buttons on move:

* since internal packing is now available
* ensure more consistency with packings
This commit is contained in:
Bertrand Chenal
2008-10-21 13:11:46 +02:00
parent 1ecb890574
commit c0a36428a4
2 changed files with 2 additions and 23 deletions
-5
View File
@@ -72,11 +72,6 @@ class Move(OSV):
def __init__(self):
super(Move, self).__init__()
self._rpc_allowed += [
'set_state_done',
'set_state_draft',
'set_state_cancel',
]
self._sql_constraints += [
('check_move_qty_pos',
'CHECK(quantity >= 0.0)', 'Move quantity must be positive'),
+2 -18
View File
@@ -29,24 +29,8 @@
<label name="effective_date"/>
<field name="effective_date"/>
<separator colspan="4"/>
<group col="4" colspan="4">
<label name="state"/>
<field name="state"/>
<group col="3" colspan="2">
<button string="Set Done"
name="set_state_done"
type="object"
states="{'invisible': '''state in ('cancel', 'done') '''}"/>
<button string="Set Draft"
name="set_state_draft"
type="object"
states="{'invisible': '''state in ('done', 'draft') '''}"/>
<button string="Cancel"
name="set_state_cancel"
type="object"
states="{'invisible': '''state == 'cancel' '''}"/>
</group>
</group>
<label name="state"/>
<field name="state"/>
<field name="type" invisible="1"/>
<field name="unit_digits" invisible="1"/>
</form>