[IMP] stock: in case of reception hide the waiting avaibility state and flow goes to direct from draft to ready to receive
bzr revid: psi@tinyerp.com-20120328105831-4dbllz7rm0klpvdj
This commit is contained in:
@@ -890,6 +890,8 @@ class stock_picking(osv.osv):
|
||||
#TOFIX: assignment of move lines should be call before testing assigment otherwise picking never gone in assign state
|
||||
ok = True
|
||||
for pick in self.browse(cr, uid, ids):
|
||||
if pick.type == 'in':
|
||||
return True
|
||||
mt = pick.move_type
|
||||
for move in pick.move_lines:
|
||||
if (move.state in ('confirmed', 'draft')) and (mt == 'one'):
|
||||
|
||||
@@ -1211,7 +1211,7 @@
|
||||
</form>
|
||||
</field>
|
||||
<group col="10" colspan="4">
|
||||
<field name="state" readonly="1" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"auto":"blue", "confirmed":"blue"}'/>
|
||||
<field name="state" readonly="1" widget="statusbar" statusbar_visible="draft,assigned,done" statusbar_colors='{"auto":"blue", "confirmed":"blue"}'/>
|
||||
<button name="draft_force_assign" states="draft" string="Confirm" type="object" icon="gtk-ok"/>
|
||||
<button name="draft_validate" states="draft" string="Confirm & Receive" type="object" icon="gtk-media-play"/>
|
||||
<button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
|
||||
|
||||
Reference in New Issue
Block a user