[FIX] stock_move auto_init function override but not return super clas result

bzr revid: mra@tinyerp.com-20090731113007-183gt0jw2jmsl354
This commit is contained in:
mra (Open ERP) 2009-07-31 17:00:07 +05:30
parent 146e8f0709
commit 2a9a8db99a
1 changed files with 5 additions and 4 deletions

View File

@ -986,7 +986,7 @@ class stock_move(osv.osv):
}
def _auto_init(self, cursor, context):
super(stock_move, self)._auto_init(cursor, context)
res = super(stock_move, self)._auto_init(cursor, context)
cursor.execute('SELECT indexname \
FROM pg_indexes \
WHERE indexname = \'stock_move_location_id_location_dest_id_product_id_state\'')
@ -994,6 +994,7 @@ class stock_move(osv.osv):
cursor.execute('CREATE INDEX stock_move_location_id_location_dest_id_product_id_state \
ON stock_move (location_id, location_dest_id, product_id, state)')
cursor.commit()
return res
def onchange_lot_id(self, cr, uid, ids, prodlot_id=False, product_qty=False, loc_id=False, context=None):
if not prodlot_id or not loc_id: