FIX : Account Invoice Report, append active and limit 1 with subquery
bzr revid: tta@openerp.com-20110407115220-f1qp273vl3gpa6ke
This commit is contained in:
parent
ce937912ce
commit
787f38b5c5
|
@ -88,8 +88,8 @@ class account_invoice_report(osv.osv):
|
|||
ai.partner_id as partner_id,
|
||||
ai.payment_term as payment_term,
|
||||
ai.period_id as period_id,
|
||||
(case when u.uom_type not in ('reference') then
|
||||
(select name from product_uom where uom_type='reference' and category_id=u.category_id)
|
||||
(case when (u.uom_type not in ('reference')) then
|
||||
(select name from product_uom where uom_type='reference' and product_uom.active and category_id=u.category_id limit 1 )
|
||||
else
|
||||
u.name
|
||||
end) as uom_name,
|
||||
|
|
Loading…
Reference in New Issue