[IMP]:when picking is not available we can not process

bzr revid: ksa@tinyerp.com-20120105120951-rw4li4tqmuqjsrl0
This commit is contained in:
Kirti Savalia (OpenERP) 2012-01-05 17:39:51 +05:30
parent f672bb961d
commit 55bb991f91
2 changed files with 2 additions and 2 deletions

View File

@ -682,7 +682,7 @@
<field name="invoice_state"/>
<field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
<field name="state"/>
<button name="action_process" states="confirmed,assigned" groups="stock.group_stock_user" string="Process" type="object" icon="gtk-go-forward"/>
<button name="action_process" states="assigned" groups="stock.group_stock_user" string="Process" type="object" icon="gtk-go-forward"/>
</tree>
</field>
</record>

View File

@ -111,7 +111,7 @@ class stock_partial_picking(osv.osv_memory):
def _partial_move_for(self, cr, uid, move):
partial_move = {
'product_id' : move.product_id.id,
'quantity' : move.state in ('assigned','new','confirmed') and move.product_qty or 0,
'quantity' : move.state in ('assigned','new') and move.product_qty or 0,
'product_uom' : move.product_uom.id,
'prodlot_id' : move.prodlot_id.id,
'move_id' : move.id,