← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 705651] Re: Unable to configure UK Chart of Accounts

 

I've tested with both downloaded sources and sources from launchpad.
>From launchpad the steps are:

1. download sources

bzr clone lp:~openerp/openobject-server/6.0 server && bzr clone
lp:~openerp/openobject-client/6.0 client && bzr clone lp:~openerp
/openobject-client-web/6.0 client-web && bzr clone lp:~openerp
/openobject-addons/6.0 addons && bzr clone lp:~openerp-commiter
/openobject-addons/trunk-extra-addons extra-addons

then create symbolic links from extra-addons to addons

2. start server:

python2.7 /opt/local/src/openerp6/server/bin/openerp-server.py -r userid
-w password --addons-path=/opt/local/src/openerp6/addons &

3. start client

python2.7 /opt/local/src/openerp6/client/bin/openerp-client.py

4. create database with default language English(UK)
5. install account module
6. start configuration, choose 'UK Chart of Accounts' and a start date of 1 September 2010 (the FY for the company I need to setup is September to August).
7. Error message: 
"ValidateError

Error occurred while validating the field(s) type: Configuration Error! 
You cannot define children to an account with internal type different of "View"! 

8. Server log:
[2011-01-21 10:10:46,135][test] ERROR:tools.convert.xml_import:Parse error in /opt/local/src/openerp6/addons/l10n_chart_uk/account_chart.xml:170: 
<record id="chart1001" model="account.account.template">
			<field name="code">1001</field>
			<field name="reconcile" eval="False"/>
			<field name="parent_id" ref="uk_a_cash"/>
			<field name="type">other</field>
			<field name="user_type" ref="account_type_asset"/>
			<field name="name">Stock</field>
		</record>
Traceback (most recent call last):
  File "/opt/local/src/openerp6/server/bin/tools/convert.py", line 865, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/opt/local/src/openerp6/server/bin/tools/convert.py", line 832, in _tag_record
    id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
  File "/opt/local/src/openerp6/server/bin/addons/base/ir/ir_model.py", line 686, in _update
    res_id = model_obj.create(cr, uid, values, context=context)
  File "/opt/local/src/openerp6/server/bin/osv/orm.py", line 3642, in create
    self._validate(cr, user, [id_new], context)
  File "/opt/local/src/openerp6/server/bin/osv/orm.py", line 936, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_orm: ('ValidateError', u'Error occurred while validating the field(s) type: Configuration Error! \nYou cannot define children to an account with internal type different of "View"! '

-- 
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/705651

Title:
  Unable to configure UK Chart of Accounts

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  attempting to configure UK Chart of accounts with any fiscal year
  gives following error:

  ERROR:tools.convert.xml_import:Parse error in /Users/peterglock/Developer/openerp-server-6.0.0/bin/addons/l10n_chart_uk/account_chart.xml:170: 
  <record id="chart1001" model="account.account.template">
  			<field name="code">1001</field>
  			<field name="reconcile" eval="False"/>
  			<field name="parent_id" ref="uk_a_cash"/>
  			<field name="type">other</field>
  			<field name="user_type" ref="account_type_asset"/>
  			<field name="name">Stock</field>
  		</record>
  Traceback (most recent call last):
    File "/Users/peterglock/Developer/openerp-server-6.0.0/bin/tools/convert.py", line 865, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/Users/peterglock/Developer/openerp-server-6.0.0/bin/tools/convert.py", line 832, in _tag_record
      id = self.pool.get('ir.model.data')._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )
    File "/Users/peterglock/Developer/openerp-server-6.0.0/bin/addons/base/ir/ir_model.py", line 684, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/Users/peterglock/Developer/openerp-server-6.0.0/bin/osv/orm.py", line 3642, in create
      self._validate(cr, user, [id_new], context)
    File "/Users/peterglock/Developer/openerp-server-6.0.0/bin/osv/orm.py", line 936, in _validate
      raise except_orm('ValidateError', '\n'.join(error_msgs))
  except_orm: ('ValidateError', u'Error occurred while validating the field(s) type: Configuration Error! \nYou cannot define children to an account with internal type different of "View"! ')
  Traceback (most recent call last):
    File "/Users/peterglock/Developer/openerp-client-6.0.0/bin/widget/view/form_gtk/parser.py", line 123, in button_clicked
      model.get_button_action(self.form.screen, id, self.attrs)
    File "/Users/peterglock/Developer/openerp-client-6.0.0/bin/widget/model/record.py", line 374, in get_button_action
      self.resource,attrs['name'], [id], context)
    File "/Users/peterglock/Developer/openerp-client-6.0.0/bin/rpc.py", line 186, in rpc_exec_auth
      return sock.exec_auth(method, *args)
    File "/Users/peterglock/Developer/openerp-client-6.0.0/bin/rpc.py", line 120, in exec_auth
      res = self.execute(method, self._uid, self._passwd, *args)
    File "/Users/peterglock/Developer/openerp-client-6.0.0/bin/rpc.py", line 137, in execute
      raise e
  tiny_socket.Myexception: ('warning -- ValidateError\n\nError occurred while validating the field(s) type: Configuration Error! \nYou cannot define children to an account with internal type different of "View"! ', 'Traceback (most recent call last):\n  File "/Users/peterglock/Developer/openerp-server-6.0.0/bin/netsvc.py", line 489, in dispatch\n    result = ExportService.getService(service_name).dispatch(method, auth, params)\n  File "/Users/peterglock/Developer/openerp-server-6.0.0/bin/service/web_services.py", line 599, in dispatch\n    res = fn(db, uid, *params)\n  File "/Users/peterglock/Developer/openerp-server-6.0.0/bin/osv/osv.py", line 126, in wrapper\n    self.abortResponse(1, inst.name, \'warning\', inst.value)\n  File "/Users/peterglock/Developer/openerp-server-6.0.0/bin/netsvc.py", line 70, in abortResponse\n    raise Exception("%s -- %s\\n\\n%s"%(origin, description, details))\nException: warning -- ValidateError\n\nError occurred while validating the field(s) type: Configuration Error! \nYou cannot define children to an account with internal type different of "View"! \n')





References