[FIX] invoice on delivery including service + taxes crashes: "ProgrammingError: can...
authorChristophe Simonis <christophe@cobalt>
Wed, 31 Dec 2008 10:51:30 +0000 (11:51 +0100)
committerChristophe Simonis <christophe@cobalt>
Wed, 31 Dec 2008 10:51:30 +0000 (11:51 +0100)
patch from RaphaĆ«l Valyi

lp bug: https://launchpad.net/bugs/312673 fixed

bzr revid: christophe@cobalt-20081231105130-9zedy1uvcty0lb6w

addons/sale/stock.py

index 0c6ec64..9669366 100644 (file)
@@ -158,6 +158,7 @@ class stock_picking(osv.osv):
                     price_unit = sale_line.price_unit
                     discount = sale_line.discount
                     tax_ids = sale_line.tax_id
+                    tax_ids = map(lambda x: x.id, tax_ids)
 
                     account_analytic_id = self._get_account_analytic_invoice(cursor,
                             user, picking, sale_line)