[IMP] stock: rename method name of validate picking
bzr revid: hmo@tinyerp.com-20111020081605-bz0i12vmiwfz5je4
This commit is contained in:
@@ -79,7 +79,7 @@
|
||||
-
|
||||
!python {model: stock.picking}: |
|
||||
pick_ids = self.search(cr, uid, [('purchase_id','=',ref('order_purchase1'))])
|
||||
self.validate_picking(cr, uid, pick_ids)
|
||||
self.do_validate(cr, uid, pick_ids)
|
||||
-
|
||||
I check that purchase order is shipped.
|
||||
-
|
||||
|
||||
@@ -1146,8 +1146,11 @@ class stock_picking(osv.osv):
|
||||
|
||||
return super(stock_picking, self).unlink(cr, uid, ids, context=context)
|
||||
|
||||
def validate_picking(self, cr, uid, id, context=None):
|
||||
for picking in self.browse(cr, uid, id, context=context):
|
||||
def do_validate(self, cr, uid, ids, context=None):
|
||||
"""
|
||||
forcefully to validate picking with move lines
|
||||
"""
|
||||
for picking in self.browse(cr, uid, ids, context=context):
|
||||
partial_datas = {
|
||||
'partner_id': picking.address_id.partner_id.id,
|
||||
'address_id': picking.address_id.id,
|
||||
|
||||
Reference in New Issue
Block a user