[FIX] account_analytic_analysis: recurring invoices lines, use the passed price_unit in product_id_change
bzr revid: dle@openerp.com-20140429100137-4jvs37e1j4lqeioe
This commit is contained in:
parent
d5534d7c42
commit
1b45edab23
|
@ -73,7 +73,7 @@ class account_analytic_invoice_line(osv.osv):
|
||||||
|
|
||||||
result = {}
|
result = {}
|
||||||
res = self.pool.get('product.product').browse(cr, uid, product, context=context)
|
res = self.pool.get('product.product').browse(cr, uid, product, context=context)
|
||||||
result.update({'name':res.partner_ref or False,'uom_id': uom_id or res.uom_id.id or False, 'price_unit': res.list_price or 0.0})
|
result.update({'name':res.partner_ref or False,'uom_id': uom_id or res.uom_id.id or False, 'price_unit': price_unit or res.list_price or 0.0})
|
||||||
if res.description:
|
if res.description:
|
||||||
result['name'] += '\n'+res.description
|
result['name'] += '\n'+res.description
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue