[FIX] purchase_requisition: can't adapt type 'account.tax' error

map_tax returns recordset while we expect ids to compose the (6, 0, ids) command
This commit is contained in:
Daniel Dico
2015-10-02 09:45:42 +02:00
committed by Martin Trigaux
parent 02ad0e5b98
commit f6d48f3d02
@@ -144,7 +144,7 @@ class purchase_requisition(osv.osv):
taxes = product.supplier_taxes_id
fpos = supplier.property_account_position_id.id
taxes_id = fpos.map_tax(taxes) if fpos else []
taxes_id = fpos.map_tax(taxes).ids if fpos else []
po = po_obj.browse(cr, uid, [purchase_id], context=context)
seller = requisition_line.product_id._select_seller(