[Fix] stock_location: fix the yml and remove the unused object

bzr revid: sbh@tinyerp.com-20101007053255-eef0ofabip6sk3jr
This commit is contained in:
sbh (Open ERP)
2010-10-07 11:02:55 +05:30
parent 47409685f8
commit 9e1ee6bc40
2 changed files with 24 additions and 24 deletions
-1
View File
@@ -50,7 +50,6 @@ class procurement_order(osv.osv):
def action_move_create(self, cr, uid, ids,context=None):
proc_obj = self.pool.get('procurement.order')
move_obj = self.pool.get('stock.move')
location_obj = self.pool.get('stock.location')
picking_obj=self.pool.get('stock.picking')
wf_service = netsvc.LocalService("workflow")
for proc in proc_obj.browse(cr, uid, ids, context=context):
+24 -23
View File
@@ -227,33 +227,34 @@
lot_stock_id: stock_location_suppiler0
name: OpenERP S.A.
partner_address_id: res_partner_address_0
-
I create Sale order for HP CD writers.
-
!record {model: sale.order, id: sale_order_01}:
date_order: '2010-04-20'
invoice_quantity: order
name: Test/location
order_line:
- name: HP CD writers
price_unit: 1000.0
I create outgoing picking order for HP CD writers.
-
!record {model: stock.picking, id: stock_picking_out0}:
address_id: base.res_partner_address_1
company_id: base.main_company
invoice_state: none
move_lines:
- date_expected: '2010-10-07 10:52:54'
location_dest_id: stock.stock_location_customers
location_id: stock_location_suppiler0
name: '[MB1] Mainboard ASUStek A7N8X'
product_id: product.product_product_mb1
product_qty: 1.0
product_uom: product.product_uom_unit
product_uom_qty: 5.0
state: draft
product_id: product_product_hpcdwriters0
type: make_to_order
order_policy: manual
partner_id: base.res_partner_agrolait
partner_invoice_id: base.res_partner_address_8
partner_order_id: base.res_partner_address_8
partner_shipping_id: base.res_partner_address_8
picking_policy: direct
pricelist_id: product.list0
shop_id: sale.shop
product_uos_qty: 1.0
move_type: direct
name: OUT/00007
type: out
-
I confirm the sale order.
I confirm the picking.
-
!workflow {model: sale.order, action: order_confirm, ref: sale_order_01}
!python {model: stock.picking}: |
self.draft_validate(cr, uid, [ref("stock_picking_out0")], {"lang": "en_US",
"search_default_available": 1, "tz": False, "active_model": "ir.ui.menu",
"contact_display": "partner_address", "active_ids": [ref("stock.menu_action_picking_tree")],
"active_id": ref("stock.menu_action_picking_tree"), })
-
I check the delay mentioned in pushed flow in move.
-