Value of note field is not passing from stock move to invoice
authorado <ado@tinyerp.com>
Tue, 13 Mar 2012 06:06:35 +0000 (11:36 +0530)
committerado <ado@tinyerp.com>
Tue, 13 Mar 2012 06:06:35 +0000 (11:36 +0530)
bzr revid: ado@tinyerp.com-20120313060635-fz21ujxzrgpi8kh0

addons/sale/stock.py
addons/stock/stock.py

index f7c5d81..8208dd8 100644 (file)
@@ -179,7 +179,7 @@ class stock_picking(osv.osv):
                         'quantity': sale_line.product_uos_qty,
                         'invoice_line_tax_id': [(6, 0, tax_ids)],
                         'account_analytic_id': account_analytic_id,
-                        'notes':sale_line.notes
+                        'note':sale_line.notes
                     }, context=context)
                     self.pool.get('sale.order.line').write(cursor, user, [sale_line.id], {'invoiced': True,
                         'invoice_lines': [(6, 0, [invoice_line_id])],
index 3f61308..463eac1 100644 (file)
@@ -1096,6 +1096,7 @@ class stock_picking(osv.osv):
                     'quantity': move_line.product_uos_qty or move_line.product_qty,
                     'invoice_line_tax_id': [(6, 0, tax_ids)],
                     'account_analytic_id': account_analytic_id,
+                    'note': move_line.note
                 }, context=context)
                 self._invoice_line_hook(cr, uid, move_line, invoice_line_id)