[ADD] stock: Add a scrap button in form view of stock_move
bzr revid: sbh@tinyerp.com-20100830070547-8o374ip8lbahaoqz
This commit is contained in:
parent
c8fe0020af
commit
fc98b81be8
|
@ -1183,6 +1183,7 @@ class stock_picking(osv.osv):
|
|||
'assigned': 'is ready to process.',
|
||||
'cancel': 'is Cancelled.',
|
||||
'done': 'is processed.',
|
||||
'draft':'is draft.',
|
||||
}
|
||||
message += state_list[pick.state]
|
||||
self.log(cr, uid, pick.id, message)
|
||||
|
|
|
@ -1439,6 +1439,10 @@
|
|||
groups="base.group_extended"
|
||||
icon="terp-stock_effects-object-colorize"
|
||||
states="draft,assigned,confirmed,done"/>
|
||||
<button name="%(stock.move_scrap)d"
|
||||
string="Scrap Products" type="action"
|
||||
icon="gtk-convert" context="{'scrap': True}"
|
||||
states="draft,waiting,confirmed,assigned" />
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
|
|
Loading…
Reference in New Issue