Amit Dodiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-572562-ado into 
lp:openobject-addons/6.0.

Requested reviews:
  Xavier ALT (OpenERP) (xal-openerp)
  Jean-Christophe VASSORT (OpenERP) (jcv-openerp)
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-572562-ado/+merge/97147

Hello,

"[FIX] Value of note field is not passing from stock move to invoice"

1. The create new sales order.
2. Edit the "Notes" field in sale order lines.
3. When the sales order is confirmed, it creates the delivery order.
4. Now create invoice from the delivery order, again the Notes field on the 
invoice line items are not being populated and are often completely blank.

It should be fill with the value of Notes field which is in sale order line.

Thanks,
Amit

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-572562-ado/+merge/97147
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-572562-ado.
=== modified file 'sale/stock.py'
--- sale/stock.py	2012-02-21 19:16:22 +0000
+++ sale/stock.py	2012-03-13 06:21:17 +0000
@@ -179,7 +179,7 @@
                         '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])],

=== modified file 'stock/stock.py'
--- stock/stock.py	2012-03-06 15:50:32 +0000
+++ stock/stock.py	2012-03-13 06:21:17 +0000
@@ -1096,6 +1096,7 @@
                     '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)
 

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to