Using 6.1 and trunk, when I try create a chart of account, there is a problem in tax code because the tax code templates has the following structure:
* PIS
**** 01 - Operação Tributável com Alíquota Básica
* COFINS
**** 01 - Operação Tributável com Alíquota Básica
In the Brazilian localization (maybe in others localizations) for example, we can have one tax code with the same code and description, but in different levels. To fix it the method generate_tax_code in account.tax.template this line need be change to include parent_id.
Hello guys,
Using 6.1 and trunk, when I try create a chart of account, there is a problem in tax code because the tax code templates has the following structure:
* PIS
**** 01 - Operação Tributável com Alíquota Básica
* COFINS
**** 01 - Operação Tributável com Alíquota Básica
In the Brazilian localization (maybe in others localizations) for example, we can have one tax code with the same code and description, but in different levels. To fix it the method generate_tax_code in account. tax.template this line need be change to include parent_id.
rec_list = obj_tax_ code.search( cr, uid, [('name', '=', vals['name' ]),('code' , '=', vals['code' ]),('company_ id', '=', vals['company_ id'])], context=context)
I'm attached one path.
Best regards,
Renato Lima http:// www.akretion. com