Browse Source

[FIX] product_gift fix message when openerp use 2 time delivery method. You should also apply the refactor on addons https://code.launchpad.net/~sebastien.beau/openobject-addons/stock_refactor_method_create_chained_picking

sebastien beau 13 years ago
parent
commit
ee942bbb9b
  1. 5
      product_gift/stock.py

5
product_gift/stock.py

@ -40,4 +40,9 @@ class stock_move(osv.osv):
'need_gift_wrap': fields.boolean('Need Gift Wrap'),
}
def _prepare_chained_picking(self, cr, uid, pick_name, picking, ptype, move, context=None):
res = super(stock_move, self)._prepare_chained_picking(cr, uid, pick_name, picking, ptype, move, context=context)
res['gift_message'] = picking.gift_message
return res
stock_move()
Loading…
Cancel
Save