c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #07238
[Bug 684116] Re: [V6.RC2] Account chart wizard generation does not accept an tax with only one collected account
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
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/684116
Title:
[V6.RC2] Account chart wizard generation does not accept an tax with only one collected account
Status in OpenObject Addons Modules:
Fix Released
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),
})
References