[PS] impossible to install portal_training

Bug #869918 reported by Julien Thewys
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Won't Fix
Undecided
Unassigned

Bug Description

I'm using revno 2399 of lp:~openobject-training/openobject-addons/training .
I'm using latest 6.0 server, addons and web client.

# dropdb krtr
# createdb krtr
# ./server/bin/openerp-server.py --addons-path=./addons/,./custom/training,./custom/extra -d krtr -i training

...
[2011-10-07 12:09:08,325][krtr] INFO:init:module training_exam: loading demo/training_exam_demo.xml
[2011-10-07 12:09:09,559][krtr] ERROR:tools.convert.xml_import:Parse error in /home/julien/work/openerp/src/krauthammer/custom/training/training_exam/demo/training_exam_demo.xml:176:
<workflow action="signal_confirm" model="training.subscription.line" ref="training_subscription_line_subl3"/>
Traceback (most recent call last):
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/tools/convert.py", line 865, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/tools/convert.py", line 547, in _tag_workflow
    str(rec.get('action','')), cr)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/wkf_service.py", line 80, in trg_validate
    res2 = instance.validate(cr, id, ident, signal)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/instance.py", line 48, in validate
    workitem.process(cr, witem, ident, signal, force_running, stack=stack)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/workitem.py", line 61, in process
    ok = _split_test(cr, workitem, activity['split_mode'], ident, signal, stack)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/workitem.py", line 174, in _split_test
    _join_test(cr, t[0], t[1], ident, stack)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/workitem.py", line 182, in _join_test
    create(cr,[activity], inst_id, ident, stack)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/workitem.py", line 41, in create
    process(cr, res, ident, stack=stack)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/workitem.py", line 53, in process
    result = _execute(cr, workitem, activity, ident, stack)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/workitem.py", line 107, in _execute
    wkf_expr.execute(cr, ident, workitem, activity)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/wkf_expr.py", line 68, in execute
    return _eval_expr(cr, ident, workitem, activity['action'])
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/workflow/wkf_expr.py", line 58, in _eval_expr
    ret = eval(line, env, nocopy=True)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/tools/safe_eval.py", line 284, in safe_eval
    return eval(test_expr(expr,_SAFE_OPCODES, mode=mode), globals_dict, locals_dict)
  File "", line 1, in <module>
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/osv/orm.py", line 181, in <lambda>
    return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
  File "/home/julien/work/openerp/src/krauthammer/custom/training/training/training.py", line 3439, in action_workflow_send_confirm_emails
    sl.session_id._create_participation(sl, context=context)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/osv/orm.py", line 181, in <lambda>
    return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
  File "/home/julien/work/openerp/src/krauthammer/custom/training/training/training.py", line 1800, in _create_participation
    participation_id = proxy_seance._create_participation(cr, uid, seance, subscription_line, context=context)
  File "/home/julien/work/openerp/src/krauthammer/custom/training/training_exam/training_exam.py", line 101, in _create_participation
    participation = super(training_seance, self)._create_participation(cr, uid, seance, subscription_line, context)
  File "/home/julien/work/openerp/src/krauthammer/custom/training/training/training.py", line 2716, in _create_participation
    return proxy.create(cr, uid, values, context=context)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/osv/orm.py", line 3698, in create
    self.pool.get(object)._store_set_values(cr, user, ids, fields2, context)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/osv/orm.py", line 3818, in _store_set_values
    result = self._columns[f].get(cr, self, ids, f, 1, context=context)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/osv/fields.py", line 800, in get
    res = self._fnct(obj, cr, user, ids, name, self._arg, context)
  File "/home/julien/work/openerp/src/openobject-server/6.0/bin/osv/fields.py", line 929, in _fnct_read
    res[r] = (res[r], ng[res[r]])
KeyError: 8

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Julien,

"portal_training " is part of the extra-addons, which are maintained by the community, including all the modules created by "OpenERP" or "Tiny", as none of these are actively developed by our teams anymore.

So if you or anyone from the community would like to work on it, please mark the bug as "In progress" and assign it to yourself (or ask us or anyone from OpenERP Drivers to do it for you). In the mean time, I will mark it as "Won't fix" to indicate that no further progress is expected at the moment.
If you require further assistance with any similar trouble while updating the module, do not hesitate to ask here or via a question: https://answers.launchpad.net/openobject-addons

Thank you!

PS: For whomever works on fixing this, you probably want to apply/merge your changes in both the 6.0 and trunk branches of extra-addons:
https://code.launchpad.net/~openerp-commiter/openobject-addons/extra-6.0
https://code.launchpad.net/~openerp-commiter/openobject-addons/trunk-extra-addons

Changed in openobject-addons:
status: New → Won't Fix
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.