[V6.RC2] Account chart wizard generation does not accept an tax with only one collected account

Bug #684116 reported by Nicolas Bessi - Camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

Account chart wizard generation does not accept an tax with only one collected account.
The code logic error is self explanatory, this little patch do the trick.

Regards

Nicolas

             if value['account_collected_id'] or value['account_paid_id']:
                 obj_acc_tax.write(cr, uid, [key], {
- 'account_collected_id': acc_template_ref[value['account_collected_id']],
- 'account_paid_id': acc_template_ref[value['account_paid_id']],
+ 'account_collected_id': acc_template_ref.get(value['account_collected_id'], False),
+ 'account_paid_id': acc_template_ref.get(value['account_paid_id'], False),
                 })

Related branches

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Nicolas Bessi - Camptocamp (nbessi-c2c-deactivatedaccount) wrote :

I will classify the bug in higher priority as it make crash number of localization

Regards

Nicolas

Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Priyesh (OpenERP) (pso-openerp) wrote :

Hello Nicolas,

Its fixed in Addons3 branch.

Rev-id: mra@mra-laptop-20101209060711-9boquxhnex02psm3
Rev-no: 4728

Thanks for reporting.

Changed in openobject-addons:
status: In Progress → Fix Released
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.