[FIX]l10_be : imp little bit
bzr revid: mma@tinyerp.com-20121105102102-sxbu9q584bp7gyfy
This commit is contained in:
parent
3518a4f2dc
commit
ce2d38922e
|
@ -66,7 +66,7 @@ class partner_vat(osv.osv_memory):
|
|||
partners = []
|
||||
partner_ids = obj_partner.search(cr, uid, [('vat_subjected', '!=', False), ('vat','ilike','BE%')], context=context)
|
||||
if not partner_ids:
|
||||
raise osv.except_osv(_('Missing Partner Configuration'),_('Could not find VAT and Legal Statement Validation'.))
|
||||
raise osv.except_osv(_('Missing Partner Configuration'),_('Could not find VAT and Legal Statement Validation.'))
|
||||
cr.execute("""SELECT sub1.partner_id, sub1.name, sub1.vat, sub1.turnover, sub2.vat_amount
|
||||
FROM (SELECT l.partner_id, p.name, p.vat, SUM(CASE WHEN c.code ='49' THEN -l.tax_amount ELSE l.tax_amount END) as turnover
|
||||
FROM account_move_line l
|
||||
|
|
Loading…
Reference in New Issue