← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 727631] Re: [6.1 trunk] point_of_sale: cannot install

 

Hello,

Tried with both options and working well.

Thanks.

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

Title:
  [6.1 trunk] point_of_sale: cannot install

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
  hi there,

  I was trying to install the module point_of sale (with demo data -
  without it works) with no avail. it looks as if it was not ported to
  6.0 or else I don't know. The setup (while trying to install the demo
  data) is refering to field 'journal_users' which doest not exist.
  Trying to solve that opens a Pandora's box.

  here the first traceback:
  [2011-03-01 18:33:19,857][bs_test_02] INFO:init:module point_of_sale: loading point_of_sale_demo.xml
  [2011-03-01 18:33:19,981][bs_test_02] ERROR:tools.convert.xml_import:Parse error in /home/openerp/addons/point_of_sale/point_of_sale_demo.xml:7:
  <record id="account.cash_journal" model="account.journal">
              <field eval="[(6, 0, [ref('base.user_root')])]" name="journal_users"/>
          </record>
  Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 866, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 833, 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 "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_model.py", line 686, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/home/openerp/addons/account/account.py", line 690, in create
      vals.update({'sequence_id': self.create_sequence(cr, uid, vals, context)})
    File "/home/openerp/addons/account/account.py", line 669, in create_sequence
      name = vals['name']
  KeyError: 'name'
  [2011-03-01 18:33:20,043][bs_test_02] ERROR:web-services:Uncaught exception
  Traceback (most recent call last):
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/module/wizard/base_module_upgrade.py", line 98, in upgrade_module
      _db, pool = pooler.restart_pool(cr.dbname, update_module=True)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 60, in restart_pool
      return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/pooler.py", line 39, in get_db_and_pool
      addons.load_modules(db, force_demo, status, update_module)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 901, in load_modules
      processed_modules.extend(load_module_graph(cr, graph, status, report=report, skip_modules=processed_modules))
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 762, in load_module_graph
      load_demo_xml(cr, m, idref, mode)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 666, in load_demo_xml
      tools.convert_xml_import(cr, m, fp, idref, mode=mode, noupdate=True, **kwargs)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 976, in convert_xml_import
      obj.parse(doc.getroot())
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 866, in parse
      self._tags[rec.tag](self.cr, rec, n)
    File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/convert.py", line 833, 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 "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/base/ir/ir_model.py", line 686, in _update
      res_id = model_obj.create(cr, uid, values, context=context)
    File "/home/openerp/addons/account/account.py", line 690, in create
      vals.update({'sequence_id': self.create_sequence(cr, uid, vals, context)})
    File "/home/openerp/addons/account/account.py", line 669, in create_sequence
      name = vals['name']
  KeyError: 'name'

  then there are similar rrors in other demo data, in the security
  files, &c..

  thank you!
  Bogdan



Follow ups

References