2013-02-07 03:47:08 |
George Gill |
description |
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 |
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 |
|