[FIX]shipment_test: when creating backorder, it is not in draft anymore + cosmetic on view
bzr revid: csn@openerp.com-20130911101044-zickvlouxkuch4at
This commit is contained in:
parent
e718f612d3
commit
5a22eabb9f
|
@ -20,7 +20,7 @@
|
|||
##############################################################################
|
||||
|
||||
{
|
||||
'name': 'Sales and Warehouse Management',
|
||||
'name': 'Sales and Warehouse and Route Management',
|
||||
'version': '1.0',
|
||||
'category': 'Hidden',
|
||||
'summary': 'Quotation, Sale Orders, Delivery & Invoicing Control',
|
||||
|
|
|
@ -1484,7 +1484,7 @@
|
|||
</div>
|
||||
<group>
|
||||
<group>
|
||||
<field name="location_src_id"/>
|
||||
<field name="location_src_id" attrs="{'invisible': [('action', '!=', 'move')]}"/>
|
||||
<field name="location_id"/>
|
||||
<field name="route_id"/>
|
||||
<field name="route_sequence"/>
|
||||
|
|
|
@ -28,9 +28,8 @@
|
|||
backorder = self.browse(cr, uid, backorder_id)[0]
|
||||
for move_line in backorder.move_lines:
|
||||
assert move_line.product_qty == 10, "Qty in backorder does not correspond."
|
||||
assert move_line.state == 'draft', "Move line of backorder should be draft."
|
||||
assert (move_line.state == 'assigned' or move_line.state == 'waiting' or move_line.state == 'confirmed'), "Move line of backorder should be assigned, confirmed or waiting."
|
||||
context.update({'active_model': 'stock.picking', 'active_id': backorder_id[0], 'active_ids': backorder_id})
|
||||
self.action_confirm(cr, uid, backorder_id, context=context)
|
||||
-
|
||||
I receive the remaining 10kgm Ice-cream from the backorder.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue