[FIX] When converting a pos order line to an invoice line, a key 'note' was passed...
authorSimon Lejeune <sle@openerp.com>
Mon, 14 Apr 2014 12:35:29 +0000 (14:35 +0200)
committerSimon Lejeune <sle@openerp.com>
Mon, 14 Apr 2014 12:35:29 +0000 (14:35 +0200)
bzr revid: sle@openerp.com-20140414123529-7k2a0fdsz7fg01xl

addons/point_of_sale/point_of_sale.py

index 72b6a30..931188f 100644 (file)
@@ -919,8 +919,6 @@ class pos_order(osv.osv):
                                                                line.product_id.uom_id.id,
                                                                line.qty, partner_id = order.partner_id.id,
                                                                fposition_id=order.partner_id.property_account_position.id)['value'])
-                if line.product_id.description_sale:
-                    inv_line['note'] = line.product_id.description_sale
                 inv_line['price_unit'] = line.price_unit
                 inv_line['discount'] = line.discount
                 inv_line['name'] = inv_name