[FIX]:Notes from the sale order lines are not copied to pickings
lp bug: https://launchpad.net/bugs/723176 fixed bzr revid: ksa@tinyerp.co.in-20110223102243-q6x3x9oaks58tk49
This commit is contained in:
parent
552cc42468
commit
2e44e541ba
|
@ -96,12 +96,14 @@ class stock_picking(osv.osv):
|
|||
|
||||
def _invoice_line_hook(self, cursor, user, move_line, invoice_line_id):
|
||||
sale_line_obj = self.pool.get('sale.order.line')
|
||||
invoice_line_obj = self.pool.get('account.invoice.line')
|
||||
if move_line.sale_line_id:
|
||||
sale_line_obj.write(cursor, user, [move_line.sale_line_id.id],
|
||||
{
|
||||
'invoiced': True,
|
||||
'invoice_lines': [(4, invoice_line_id)],
|
||||
})
|
||||
invoice_line_obj.write(cursor, user, [invoice_line_id], {'note': move_line.sale_line_id.notes,})
|
||||
return super(stock_picking, self)._invoice_line_hook(cursor, user, move_line, invoice_line_id)
|
||||
|
||||
def _invoice_hook(self, cursor, user, picking, invoice_id):
|
||||
|
|
Loading…
Reference in New Issue