trunk account - module can't be loaded

Bug #599559 reported by Ferdinand
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

trunk addons rev 3411

   process_liness(self, datas, [], current_module, self._name, fields_def)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/osv/orm.py", line 795, in process_liness
    raise ValueError('No references to %s.%s' % (module, xml_id))
ValueError: No references to account.group_account_user

removing security/ir.model.access.csv does not work either

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Ferdinand,

I have checked with the latest revision. There seemed no problem.
The error did not come up.
However, I checked in the __openerp__.py , here
"security/account_security.xml" is loaded before
"security/ir.model.access.csv".

So there is no possibility of the error coming up, though in "account_security.xml" if you comment:
<record id="group_account_user" model="res.groups">
        <field name="name">Finance / Accountant</field>
</record>
then you will have ValueError: No references to account.group_account_user.

You facing this error as somehow it has lost reference to account.group_account_user, which actually does not happen on our end.
Kindly update your code and try creating with a new database.

Hope this helps.
Thank you.

Revision history for this message
Ferdinand (office-chricar) wrote :
Download full text (5.7 KiB)

./openobject-addons revno: 3806
./openobject-client revno: 1362
./openobject-server revno: 2448

I created a new db - followed the wizard - selected accouting (btw the wizard died here) -
opened modul admin - started scheduled upgrade

Environment Information :
System : Linux-2.6.31.12-0.2-desktop-x86_64-with-SuSE-11.2-x86_64
OS Name : posix
LSB Version: core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch
Distributor ID: SUSE LINUX
Description: openSUSE 11.2 (x86_64)
Release: 11.2
Codename: n/a
Operating System Release : 2.6.31.12-0.2-desktop
Operating System Version : #1 SMP PREEMPT 2010-03-16 21:25:39 +0100
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.6.2
OpenERP-Client Version : 6.0dev
Last revision No. & ID :1362 <email address hidden>
Traceback (most recent call last):
  File "/home/gass/OpenERP/trunk/openobject-server/bin/netsvc.py", line 394, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/service/web_services.py", line 625, in dispatch
    res = fn(db, uid, *params)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/service/web_services.py", line 652, in exp_execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/service/web_services.py", line 634, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/wizard/__init__.py", line 177, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/wizard/__init__.py", line 72, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/addons/base/module/wizard/wizard_module_upgrade.py", line 90, in _upgrade_module
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/pooler.py", line 61, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/addons/__init__.py", line 830, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/addons/__init__.py", line 721, in load_module_graph
    load_demo_xml(cr, m, idref, mode)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/addons/__init__.py", line 626, in load_demo_xml
    tools.convert_xml_import(cr, m, fp, idref, mode=mode, noupdate=True, **kwargs)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/tools/convert.py", line 905, in convert_xml_import
    obj.parse(doc.ge...

Read more...

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Dr. Ferdinand,

It has been refactored and under development.
Currently, there is no such error. The code has been removed by revision http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/revision/3164.11.114#account/invoice.py.

More improvements are being done on development branches. Kindly update the code and recheck.
Thanks for your concern.

Changed in openobject-addons:
milestone: none → 6.0
status: New → Invalid
Revision history for this message
Ferdinand (office-chricar) wrote :
Download full text (3.7 KiB)

revno 2452

[2010-06-29 22:30:42,472] INFO:init:module account: loading account_unit_test.xml
[2010-06-29 22:30:43,032] ERROR:init:<workflow action="invoice_open" model="account.invoice" ref="test_invoice_1"/>
Traceback (most recent call last):
  File "./openerp-server.py", line 117, in <module>
    pooler.get_db_and_pool(db, update_module=tools.config['init'] or tools.config['update'])
  File "/home/gass/OpenERP/trunk/openobject-server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/addons/__init__.py", line 830, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/addons/__init__.py", line 721, in load_module_graph
    load_demo_xml(cr, m, idref, mode)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/addons/__init__.py", line 626, in load_demo_xml
    tools.convert_xml_import(cr, m, fp, idref, mode=mode, noupdate=True, **kwargs)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/tools/convert.py", line 905, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/gass/OpenERP/trunk/openobject-server/bin/tools/convert.py", line 799, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/tools/convert.py", line 488, in _tag_workflow
    str(rec.get('action','')), cr)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/wkf_service.py", line 80, in trg_validate
    res2 = instance.validate(cr, id, ident, signal)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/instance.py", line 48, in validate
    workitem.process(cr, witem, ident, signal, force_running, stack=stack)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/workitem.py", line 61, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/workitem.py", line 174, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/workitem.py", line 182, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/workitem.py", line 41, in create
    process(cr, res, ident, stack=stack)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/workitem.py", line 53, in process
    result = _execute(cr, workitem, activity, ident, stack)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/workitem.py", line 107, in _execute
    wkf_expr.execute(cr, ident, workitem, activity)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/wkf_expr.py", line 68, in execute
    return _eval_expr(cr, ident, workitem, activity['action'])
  File "/home/gass/OpenERP/trunk/openobject-server/bin/workflow/wkf_expr.py", line 58, in _eval_expr
    ret = eval(line, env, nocopy=True)
  File "/home/gass/OpenERP/trunk/openobject-server/bin/tools/safe_eval.py", line 265, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", ...

Read more...

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hi,

Kindly update the code and recheck.
http://bazaar.launchpad.net/~openerp/openobject-addons/trunk/annotate/head:/account/invoice.py
Server :2453
Addons: 3833
Thanks.

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Ferdinand (office-chricar) wrote :

thanks works now

Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :
Download full text (7.0 KiB)

Somehow this happens again with the latest code when I install my modules that depends on account module. This never happens couple of days ago.

addons/ : <email address hidden> 4077
addons-community/ : fran@fran-pc-20101213182241-2fogs8yh5u4ma31q 292
addons-extra/ : <email address hidden> 5126
client/ : <email address hidden> 1738
server/ : <email address hidden> 3163
web/ : <email address hidden> 4195

Error on the client:

Environment Information :
System : Linux-2.6.32-27-generic-x86_64-with-Ubuntu-10.04-lucid
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 10.04.1 LTS
Release: 10.04
Codename: lucid
Operating System Release : 2.6.32-27-generic
Operating System Version : #49-Ubuntu SMP Thu Dec 2 00:51:09 UTC 2010
Operating System Architecture : 64bit
Operating System Locale : vi_VN.UTF8
Python Version : 2.6.5
OpenERP-Client Version : 6.0.0-rc1-1
Last revision No. & ID :1738 <email address hidden>
Traceback (most recent call last):
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/netsvc.py", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/service/web_services.py", line 598, in dispatch
    res = fn(db, uid, *params)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/addons/base/module/wizard/base_module_upgrade.py", line 100, in upgrade_module
    _, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/pooler.py", line 60, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/pooler.py", line 39, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/addons/__init__.py", line 869, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/addons/__init__.py", line 742, in load_module_graph
    load_init_update_xml(cr, m, idref, mode, kind)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/addons/__init__.py", line 633, in load_init_update_xml
    tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode, noupdate=noupdate)
  File "/home/phongnt/Documents/Projects/openerp-trunk/server/bin/tools/convert.py", line 945, in convert_csv_import
    result, rows, wa...

Read more...

Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

Please reconsider this as it critically affect new DB creation, testing, etc, and it seems a regression bugs happens after few merges.

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Phong,

There is already a progress being done on the bug 695084. Better we keep our eyes over there.
The issue(aim of posting this thread) is already working.

Thanks.

Revision history for this message
Jamin Shah(OpenERP) (jamin-openerp) wrote :
Changed in openobject-addons:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.