Title: Eric CAUDAL
I am not sure this is well documented outside the fact that there dozens of examples already available.
I would suggest that you have a look at l10n_cn_chart_UK or whatever localization and copy/paste.

Eric Caudal
CEO
--
Elico Corporation, Shanghai branch
OpenERP Premium Certified Training Partner 
Cell: + 86 186 2136 1670
Office: + 86 21 6211 8017/27/37
Skype: elico.corp
[email protected]
http://www.elico-corp.com

Elico
          Corp
On 03/08/2014 04:35 AM, Marek Stopka wrote:
Hello,
I am creating a Chart of Accounts template for Czech republic and I need to put Bank and Cash accounts (which are created automatically in my setup) into my chart of accounts...

Also, there can be a rules set-up in Journals (account type allowed and account allowed), can I somehow define these rules in my localization module? Is there any example? I would like to make my module as robust (with as much internal controls) as possible...

I need Cash to be a account with code 211 and Bank to be 221...

I have code below, do you guys know, how can I make these account default system accounts for Cash and Bank?

    <record model="account.account.template" id="2">
      <field name="code">2</field>
      <field name="name">Finanční účty</field>
      <field ref="account_template_root" name="parent_id"/>
      <field name="type">view</field>
      <field ref="account.data_account_type_view" name="user_type"/>
    </record>
    <record model="account.account.template" id="21">
      <field name="code">21</field>
      <field name="name">Peníze</field>
      <field ref="2" name="parent_id"/>
      <field name="type">view</field>
      <field ref="account.data_account_type_view" name="user_type"/>
    </record>
    <record model="account.account.template" id="211">
      <field name="code">211</field>
      <field name="name">Pokladna</field>
      <field ref="21" name="parent_id"/>
      <field name="type">liquidity</field>
      <field ref="account.data_account_type_cash" name="user_type"/>
    </record>
    <record model="account.account.template" id="213">
      <field name="code">213</field>
      <field name="name">Ceniny</field>
      <field ref="21" name="parent_id"/>
      <field name="type">other</field>
      <field ref="account.data_account_type_asset" name="user_type"/>
    </record>
    <record model="account.account.template" id="22">
      <field name="code">22</field>
      <field name="name">Účty v bankách</field>
      <field ref="2" name="parent_id"/>
      <field name="type">view</field>
      <field ref="account.data_account_type_view" name="user_type"/>
    </record>
    <record model="account.account.template" id="221">
      <field name="code">221</field>
      <field name="name">Bankovní účty</field>
      <field ref="22" name="parent_id"/>
      <field name="type">liquidity</field>
      <field ref="account.data_account_type_bank" name="user_type"/>
    </record>

Thanks Marek...
--
Rgds,
Marek Stopka
Senior IT Consultant (at) Perlur

www.perlur.cz                             website
+420 608 149 955                     mobile
+420 558 847 291                     direct
[email protected]            e-mail


_______________________________________________
Mailing list: https://launchpad.net/~openerp-expert-accounting
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-expert-accounting
More help   : https://help.launchpad.net/ListHelp

_______________________________________________
Mailing list: https://launchpad.net/~openerp-expert-accounting
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-expert-accounting
More help   : https://help.launchpad.net/ListHelp

Reply via email to