Create tax code from model using chart of accounts wizard

Bug #1055669 reported by Renato Lima - http://www.akretion.com
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 3

Bug 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

Related branches

Revision history for this message
Renato Lima - http://www.akretion.com (renatonlima) wrote :
Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Paramjit Singh Sahota(OpenERP) (psa-openerp) wrote :

Hello,

This issue is fixed in this branch lp:~openerp-dev/openobject-addons/trunk-bug-1055669-psa .
Hope, It will be soon merged in trunk.

Thankz YoU.

Changed in openobject-addons:
status: In Progress → Fix Committed
George Gill (ggilliii10)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.