← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 684119] Re: [6.RC2] Account chart wizard does not check if generated account code for bank journal exsits

 

Hello Nicolas,

We have improved the chart of account wizard such that now it will not
display the companies which are already configured .So it is commited on
Addons3 branch with revision_id: mra@mra-
laptop-20101224125947-lgw0mhlbb4kw2226 ..

Thank you,
Mustufa(mra)

** 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/684119

Title:
  [6.RC2] Account chart wizard does not check if generated account code for bank journal exsits

Status in OpenObject Addons Modules:
  Fix Released

Bug description:
  [6.RC2] Account chart wizard does not check if generated account code for bank journal exsits.
So It may append that this piece of code :


 #create the account_account for this bank journal
             tmp = line.acc_name
             dig = obj_multi.code_digits
             if ref_acc_bank.code:
                 try:
                    new_code = str(int(ref_acc_bank.code.ljust(dig,'0')) + current_num)
                 except:
                    new_code = str(ref_acc_bank.code.ljust(dig-len(str(current_num)),'0')) + str(current_num)
             vals = {

Generate a account code that does already exists





References