[FIX] Account: Account chart wizard generation does not accept an tax with only one collected account
lp bug: https://launchpad.net/bugs/684116 fixed bzr revid: mra@mra-laptop-20101209060711-9boquxhnex02psm3
This commit is contained in:
parent
8319012fca
commit
516084383b
|
@ -2715,8 +2715,8 @@ class wizard_multi_charts_accounts(osv.osv_memory):
|
|||
for key,value in todo_dict.items():
|
||||
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),
|
||||
})
|
||||
|
||||
# Creating Journals Sales and Purchase
|
||||
|
|
Loading…
Reference in New Issue