c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #06324
[Bug 684116] [NEW] [V6.RC2] Account chart wizard generation does not accept an tax with only one collected account
Public bug reported:
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),
})
** Affects: openobject-addons
Importance: Undecided
Status: New
--
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:
New
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),
})
Follow ups
References