[IMP]improve code used sale order confirm workflow instead of method
bzr revid: sgo@tinyerp.com-20130829113501-cvxtjp3e0i7f27ma
This commit is contained in:
@@ -28,8 +28,7 @@
|
||||
-
|
||||
Confirm sales order
|
||||
-
|
||||
!python {model: sale.order}: |
|
||||
self.action_button_confirm(cr, uid, [ref('sale_order_crossdock_shpng')])
|
||||
!workflow {model: sale.order, action: order_confirm, ref: sale_order_crossdock_shpng}
|
||||
-
|
||||
Check a quotation was created to a certain supplier and confirm so it becomes a confirmed purchase order
|
||||
-
|
||||
|
||||
@@ -51,8 +51,6 @@
|
||||
-
|
||||
!python {model: purchase.order}: |
|
||||
po_id = self.search(cr, uid, [('partner_id', '=', ref('base.res_partner_2'))])
|
||||
picking_id = self.search(cr, uid, [('purchase_id', '=', po_id[0])])
|
||||
context.update({'active_model': 'stock.picking', 'active_id': backorder_id[0], 'active_ids': backorder_id})
|
||||
self.view_picking(cr, uid, po_id)
|
||||
-
|
||||
Send the 200 pieces.
|
||||
|
||||
Reference in New Issue
Block a user