diff options
| author | ksa (Open ERP) <ksa@tinyerp.co.in> | 2011-02-23 15:52:43 +0530 |
|---|---|---|
| committer | ksa (Open ERP) <ksa@tinyerp.co.in> | 2011-02-23 15:52:43 +0530 |
| commit | 2e44e541ba59ef00c38b7e4da2ff12f1efef8d5b (patch) | |
| tree | 8fce37a0a50a8391b9bbfc758eb34baac05d894b /addons | |
| parent | 552cc424687b86648559224949bf8eac04251ab4 (diff) | |
[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
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/sale/stock.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/sale/stock.py b/addons/sale/stock.py index f7c5d81ae57..04a9b12687e 100644 --- a/addons/sale/stock.py +++ b/addons/sale/stock.py @@ -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): |
