43
43
for invoice_tax in self.browse(cr, uid, ids, context=context):
45
tax_name = invoice_tax.name.lower().replace('.','').replace(' ', '').replace('-', '')
46
tax_name = (tax and tax.tax_category_id and tax.tax_category_id.code or invoice_tax.name).upper().replace('.','').replace(' ', '').replace('-', '')
50
52
tax_percent = round(tax_percent, 0)#Hay problemas de decimales al calcular el iva, y hasta ahora el iva no tiene decimales
55
57
res[invoice_tax.id]['name2'] = tax_name
56
58
res[invoice_tax.id]['tax_percent'] = tax_percent