[FIX] stock: inverse function field should write the given value and not current
This commit is contained in:
parent
aabec55125
commit
cf51c506f7
|
@ -191,7 +191,7 @@ class stock_picking(osv.osv):
|
|||
pick = self.browse(cr, uid, picking_id, context=context)
|
||||
moves = [x.id for x in pick.move_lines]
|
||||
move_obj= self.pool.get("stock.move")
|
||||
move_obj.write(cr, uid, moves, {'invoice_state': pick.invoice_state}, context=context)
|
||||
move_obj.write(cr, uid, moves, {'invoice_state': value}, context=context)
|
||||
|
||||
_columns = {
|
||||
'invoice_state': fields.function(__get_invoice_state, type='selection', selection=[
|
||||
|
|
Loading…
Reference in New Issue