Comment 2 for bug 654668

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote :

Hello,

I tried to load it and it doesn't load at all even when the code is set to 2 digits.

But the problem that you encounter seems to be the following :
In the chart, accounts have the same beginning of code (ie.: 850 and 8500).
As the the code is right padded with 0 to the configured number of digits, OpenERP tries to create them with the same code (ie.: 850000).

Here are the 4 accounts which are problematics :
      <record id="account_850" model="account.account.template">
        <field name="code">850</field>
        <field name="name">Steuern vom Einkommen und vom Ertrag</field>
        <field name="user_type" ref="account_type_expense_at"/>
        <field name="parent_id" ref="account_585"/>
        <field name="type">other</field>
      </record>

      <record id="account_8500" model="account.account.template">
        <field name="code">8500</field>
        <field name="name">Körperschaftsteuer</field>
        <field name="user_type" ref="account_type_expense_at"/>
        <field name="parent_id" ref="account_585"/>
        <field name="type">other</field>
      </record>

     <record id="account_930" model="account.account.template">
        <field name="code">930</field>
        <field name="name">Gewinnrücklagen</field>
        <field name="user_type" ref="account_type_cash_equity_at"/>
        <field name="parent_id" ref="account_93"/>
        <field name="type">other</field>
     </record>

     <record id="account_930000" model="account.account.template">
        <field name="code">930000</field>
        <field name="name">ungebundene Kapitalrücklage</field>
        <field name="user_type" ref="account_type_cash_equity_at"/>
        <field name="parent_id" ref="account_92"/>
        <field name="type">other</field>
     </record>