Several bugs on training modules

Bug #493821 reported by Ana Juaristi Olalde
32
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Won't Fix
Wishlist
Unassigned

Bug Description

Hi:

This week we will show OpenERP training modules to a customer who need managing courses, Masters and specialities. I thought it was better installing new modules from training branch on 5.0.6 to show them the complete functionality available, but we could not be able to make the new modules work on 5.0.6. We had several errors on installing them. Module training itself has got an error on training_view.xml, where (session_duplicate_wizard_act) asociated to a record is duplicated. After trying to correct XML view, we obtain this error:
Environment Information :
System : Windows-32bit-SP1
OS Name : nt
Operating System Release :
Operating System Version : 32bit
Operating System Architecture : 32bit
Operating System Locale : es_ES.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.2
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 639, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 619, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/wizard/__init__.py", line 74, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 62, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 40, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 728, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line 610, in load_module_graph
    tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode)
  File "/usr/lib/python2.5/site-packages/openerp-server/tools/convert.py", line 857, in convert_csv_import
    pool.get(model).import_data(cr, uid, fields, datas,mode, module,noupdate,filename=fname_partial)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 806, in import_data
    process_liness(self, datas, [], current_module, self._name, fields_def)
  File "/usr/lib/python2.5/site-packages/openerp-server/osv/orm.py", line 636, in process_liness
    ['res_id'])[0]['res_id']
IndexError: list index out of range

(Thank you Carlos Liébana to help me with installation!!)

So we let it stay and installed modules from extra-addons. We thought that maybe it will be enough showing customer not everything working but potential functionality on future.
Extra-addons modules are more or less functional but there is an error on defining offers. When you try including a course, the list is empty even if there is five courses defined on system. On the other side, you only can create a new offer from courses and not select an existing offer to be the course included on.

Now... I think if they like OpenERP and training modules they would agree financing improving functionality, so I would like to know wich would be the steps to go on if we can convince the new customer.

Is there any place where we could consult the functionality available on future? Some tutorial/manual about actually existing training modules? On new branch there is a full addons folder, and even a server folder. Thas this mean that training should be installed as a separate system from openerp by now? The only mention I could found about this new modules was here:
http://openobject.com/forum/topic10626.html?highlight=training
and here
http://fairitale.blogspot.com/2009/11/open-erp-training-module-updates.html

So... Something new? How could we help?
Thank you very much:

Ana

olefoxe (olaf-vocks)
description: updated
Revision history for this message
olefoxe (olaf-vocks) wrote :

Hello.

We are in the same situation.
Just want to show a costumer some future things of the training module.

We are not able to install the training module, maybe because of this bug informations:

File "/usr/lib/openerp-server/addons/training/training_email.py", line 29, in <module>
    from mako.template import Template as MakoTemplate
  File "/usr/lib/python2.5/site-packages/uno.py", line 301, in _uno_import
    raise ImportError( "type "+ name + "." +x + " is unknown" )
ImportError: type mako.template.Template is unknown

I don t know, if i should open a new report, so i put this here.

Thanks

Ole

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

Looks like this module uses mako for templating (Its my favourite anyway)

Your problem is you dont have mako in your system:
To install mako:

type:

sudo apt-get install python-mako in your terminal

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Where is the repository ?

Revision history for this message
Carlos Liebana (carlos-liebana) wrote :
Revision history for this message
Bhumika Shrimali (sbh-openerp) wrote :

Hello,
This latest version of client is compatible.
https://code.launchpad.net/~openerp/openobject-client/5.0
and for the server use this training server which is inside this branch
https://code.launchpad.net/~openobject-training

Thank you

Revision history for this message
olefoxe (olaf-vocks) wrote :

Hello,

thank you all for the informations.

Now i try to explain my experience with the installing on the server and client like Sbh told us. (Thank you Sbh)

sudo apt-get install python-mako .....take me a step further (Thank you Sharoon)

...then i got the same prob like Ana
IndexError: list index out of range .....after installing Unidecode-0.04.1.tar.gz from http://pypi.python.org/pypi/Unidecode/0.04.1 this prob is gone.

I have installed the training module.

After that i want to install the other things in /extra like training_degree etc..
From the /extra i finished installing training_degree, training_exam, training_exam_process but when i try to install the others, i got some probs like:

File "/home/vockso/openerp/neu/training-server/bin/addons/training_evaluation/training_evaluation.py", line 215, in init
    """)
  File "/home/vockso/openerp/neu/training-server/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/home/vockso/openerp/neu/training-server/bin/sql_db.py", line 120, in execute
    res = self._obj.execute(query, params)
ProgrammingError: FEHLER: Relation »training_evaluation_line« existiert nicht

but when i take the same modules out of the /extra_sbh everything i managed them to.

So, now i can test the system.

The first thing i recognize was that the client went down, everytime i want to close something like "Cource Description".
This is not happen when i close "Cources".

...later more.

Again, thank you all.

Ole

Revision history for this message
olefoxe (olaf-vocks) wrote :

...i forget something...

when i try to install the modules like training_degree etc., i got a message about "no LSB modules installed", so i made:
sudo apt-get install lsb ....maybe it can be helpful for somebody else who try to test these modules.

Bye

Ole

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

It's not a problem in the training modules, but only with the server.

I just created a new database with the training profile and I haven't got any error.

Regards,

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

Kindly follow the links provided by https://bugs.launchpad.net/openobject-addons/+bug/493821/comments/5.
Open the bugs if any related problem appears again.
Many thanks.

Changed in openobject-addons:
status: New → Invalid
Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :
Download full text (3.2 KiB)

After trying during a few hours, I still can't make it work.

I downloaded the packages from that branches, started the server and created a new database with minimum profile... in english. If I select spanish I obtain this error:
Environment Information :
System : Linux-2.6.28-11-generic-i686-with-Ubuntu-9.04-jaunty
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.04
Release: 9.04
Codename: jaunty
Operating System Release : 2.6.28-11-generic
Operating System Version : #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009
Operating System Architecture : 32bit
Operating System Locale : es_ES.UTF8
Python Version : 2.6.2
OpenERP-Client Version : 5.0.9
Last revision No. & ID :1070 <email address hidden>
Traceback (most recent call last):
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/netsvc.py", line 274, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/netsvc.py", line 100, in __call__
    return getattr(self, method)(*params)
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/service/web_services.py", line 642, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/service/web_services.py", line 622, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/home/socrates/openerp-server/branches/common/bin/addons/base/module/wizard/wizard_module_lang_install.py", line 54, in _lang_install
    modobj.update_translations(cr, uid, mids, lang)
  File "/home/socrates/openerp-server/branches/common/bin/addons/base/module/module.py", line 484, in update_translations
    tools.trans_load(cr.dbname, f, lang, verbose=False)
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/tools/translate.py", line 594, in trans_load
    r = trans_load_data(db_name, fileobj, fileformat, lang, strict=strict, verbose=verbose)
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/tools/translate.py", line 701, in trans_load_data
    ids = obj.search(cr, uid, [(field, '=', dic['src'])])
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/osv/orm.py", line 2976, in search
    cr.execute('select %s.id from ' % self._table + ','.join(tables) +qu1+' order by '+order_by+limit_str+offset_str, qu2)
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/sql_db.py", line 76, in wrapper
    return f(self, *args, **kwargs)
  File "/media/ACER/01_UBUNTU_INFO/trunk-training/server/bin/sql_db.py", line 120, in execute
    res = self._obj.execute(query, params)
ProgrammingError: no existe la columna res_company.follow_up_msg
LINE 1: select res_company.id from "res_company" where (res_company....
                                                        ^

After creating the database on english,...

Read more...

Revision history for this message
forstera (arnaud-forster-deactivatedaccount) wrote :

Hello all,
I got the following error when trying to open the folowing views :

/Planning/Seances/Calendar of seances

Can't find field 'partner_id' in the following view parts composing the view of object model 'training.seance':
 * training.seance.calendar

/Subscriptions/Subscription lines
Can't find field 'with_exam' in the following view parts composing the view of object model 'training.subscription.line':
 * training.subscription.line.tree

and more imporant in /Subscription/Subscription to treat
ProgrammingError: ERREUR: la colonne training_subscription.date n'existe pas
LINE 1: ...ere (training_subscription.state = E'draft') AND (training_s.

Changed in openobject-addons:
status: Invalid → New
Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :
Download full text (7.4 KiB)

Trying again training-modules.

This are the steps I followed this time and problems I have found:
1. Download branches
2. Includes extra modules into server/addons/bin

Start-up server manually: I realize that training server is giving me 5.0.6 server version when we are by now on 5.0.11.
INFO:server:version - 5.0.6

I realized that the base modules account, stock, sales and so on there were not included on training-server addons, so I copied all missing modules from addons 5.0.11 to training-server/addons/bin

I installed spanish localization modules

I installed training master module without problem

I installed training-exam and training-degree. I obtained the error no module named xlwt that I solved executing
sudo apt-get install python-xlwt

Trying to Install training-evaluation I obtain the following error:
Environment Information :
System : Linux-2.6.31-21-generic-i686-with-Ubuntu-9.10-karmic
OS Name : posix
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
Operating System Release : 2.6.31-21-generic
Operating System Version : #59-Ubuntu SMP Wed Mar 24 07:28:56 UTC 2010
Operating System Architecture : 32bit
Operating System Locale : es_ES.UTF8
Python Version : 2.6.4
OpenERP-Client Version : 5.0.11
Last revision No. & ID :1079 <email address hidden>
Traceback (most recent call last):
  File "/home/ana/openerp-training/server/bin/netsvc.py", line 274, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/ana/openerp-training/server/bin/netsvc.py", line 100, in __call__
    return getattr(self, method)(*params)
  File "/home/ana/openerp-training/server/bin/service/web_services.py", line 642, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/ana/openerp-training/server/bin/service/web_services.py", line 622, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/ana/openerp-training/server/bin/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/ana/openerp-training/server/bin/wizard/__init__.py", line 73, in execute_cr
    action_res = action(self, cr, uid, data, context)
  File "/home/ana/openerp-training/server/bin/addons/base/module/wizard/wizard_module_upgrade.py", line 92, in _upgrade_module
    db, pool = pooler.restart_pool(cr.dbname, update_module=True)
  File "/home/ana/openerp-training/server/bin/pooler.py", line 65, in restart_pool
    return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
  File "/home/ana/openerp-training/server/bin/pooler.py", line 42, in get_db_and_pool
    addons.load_modules(db, force_demo, status, update_module)
  File "/home/ana/openerp-training/server/bin/addons/__init__.py", line 728, in load_modules
    r = load_module_graph(cr, graph, status, report=report)
  File "/home/ana/openerp-training/server/bin/addons/__init__.py", line 610, in load_module_graph
    tools.convert_csv_import(cr, m, os.path.basename(filename), fp.read(), idref, mode=mode)
  File "/home/ana/openerp-training/server/bin/tools/convert.py", line 843, in convert_csv_import
    p...

Read more...

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

Hi again:

After testing a little bit the training modules, I have found them so interesting that I wanted to see them translated to spanish, so...I did it. I have translated only the modules I could install

There is no way to go up the translation on their own branche, not in extra modules, so I don't know how to do it. I'm posting here and I would thank anybody who could help me on uploading translations on correct place. I know this is not the right one.

Thank you very much:

Ana

Revision history for this message
Carlos Liebana (carlos-liebana) wrote :

Thanks a lot Ana, we're also testing it.

I've got a question about these modules... why are they so "special" to be launched in an own full branch instead of being released as a "plain" module?

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :
Download full text (10.4 KiB)

I can asure that fighting with this training modules is a nightmare by now. I still could not install all of them, even using their own server and client.

Another way to try having them working:

Run training-server
Run training-client
Try installing profile training on the begining on creating the database.

Now, I can obtain sql errors related to report_training module:

[2010-08-09 20:01:48,248] ERROR:web-services:[02]: Environment Information :
[2010-08-09 20:01:48,248] ERROR:web-services:[03]: System : Linux-2.6.31-21-generic-i686-with-Ubuntu-9.10-karmic
[2010-08-09 20:01:48,249] ERROR:web-services:[04]: OS Name : posix
[2010-08-09 20:01:48,249] ERROR:web-services:[05]: Distributor ID: Ubuntu
[2010-08-09 20:01:48,250] ERROR:web-services:[06]: Description: Ubuntu 9.10
[2010-08-09 20:01:48,251] ERROR:web-services:[07]: Release: 9.10
[2010-08-09 20:01:48,251] ERROR:web-services:[08]: Codename: karmic
[2010-08-09 20:01:48,252] ERROR:web-services:[09]: Operating System Release : 2.6.31-21-generic
[2010-08-09 20:01:48,252] ERROR:web-services:[10]: Operating System Version : #59-Ubuntu SMP Wed Mar 24 07:28:56 UTC 2010
[2010-08-09 20:01:48,253] ERROR:web-services:[11]: Operating System Architecture : 32bit
[2010-08-09 20:01:48,253] ERROR:web-services:[12]: Operating System Locale : es_ES.UTF8
[2010-08-09 20:01:48,256] ERROR:web-services:[13]: Python Version : 2.6.4
[2010-08-09 20:01:48,257] ERROR:web-services:[14]: OpenERP-Server Version : 5.0.7
[2010-08-09 20:01:48,257] ERROR:web-services:[15]: Last revision No. & ID : 2042 <email address hidden>
[2010-08-09 20:01:48,258] ERROR:web-services:[16]:
[2010-08-09 20:01:48,258] ERROR:web-services:[17]: Traceback (most recent call last):
[2010-08-09 20:01:48,259] ERROR:web-services:[18]: File "/home/ana/openerp-training/server-training/bin/osv/osv.py", line 58, in wrapper
[2010-08-09 20:01:48,259] ERROR:web-services:[19]: return f(self, dbname, *args, **kwargs)
[2010-08-09 20:01:48,260] ERROR:web-services:[20]: File "/home/ana/openerp-training/server-training/bin/osv/osv.py", line 119, in execute
[2010-08-09 20:01:48,260] ERROR:web-services:[21]: res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
[2010-08-09 20:01:48,260] ERROR:web-services:[22]: File "/home/ana/openerp-training/server-training/bin/osv/osv.py", line 111, in execute_cr
[2010-08-09 20:01:48,261] ERROR:web-services:[23]: return getattr(object, method)(cr, uid, *args, **kw)
[2010-08-09 20:01:48,261] ERROR:web-services:[24]: File "/home/ana/openerp-training/server-training/bin/addons/profile_training/profile_training.py", line 65, in action_install
[2010-08-09 20:01:48,270] ERROR:web-services:[25]: db, pool = pooler.restart_pool(cr.dbname,update_module=True)
[2010-08-09 20:01:48,271] ERROR:web-services:[26]: File "/home/ana/openerp-training/server-training/bin/pooler.py", line 65, in restart_pool
[2010-08-09 20:01:48,272] ERROR:web-services:[27]: return get_db_and_pool(db_name, force_demo, status, update_module=update_module)
[2010-08-09 20:01:48,272] ERROR:web-services:[28]: File "/home/ana/openerp-training/server-training/bin/pooler.py", line 42, in get_db_and_pool
[2010-08-...

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :
Download full text (3.6 KiB)

SUCCESS!!!! I COULD INSTALL ALL MODULES.

I can't believe it, but I could install all the modules.

First of all, I deleted absolutly everything I had installed about training modules before.
I just downloaded server-training, client-training, training-addons branches. I added and updated some addons modules from official 5.0.12 branche.

After that I started-up server and created a clean new training DB and installed training-profile with demo data.

 I had to touch a few things on files that I'm reporting here, but they are little bugs I could correct.

0. module purchase: Error on demo data so I commented #'test/purchase_test.xml' on terp.py

1. training_degree: QUERY is incorrect as I said on my last post. training_participation_course_line table does not exists but training_participation_line, so all references to training_participation_course_line are incorrect. I also noticed that table training_participation_line doesn't include fields passing_score and course_id. So I modified the query as is shown here. NO IDEA if this query is correct or obtaining the valid data. I just repaired it to be able to install module.
           SELECT
                tp.id AS participation_id,
                rpj.contact_id AS contact_id,
                COALESCE(tpcl.participation_id, tp.course_questionnaire_id) AS course_id,
                COALESCE(z.points, tp.result) AS points,
                COALESCE( tp.passing_score) AS passing_score,
                COALESCE(z.max_points, tp.total_points) AS max_points,
                (COALESCE(z.points, tp.result) >= COALESCE( tp.passing_score)) AS succeeded
            FROM
                training_participation tp
            LEFT JOIN
                res_partner_job rpj ON tp.job_id = rpj.id
            LEFT JOIN
                training_participation_line tpcl ON tpcl.participation_id = tp.id
            LEFT JOIN (
                    SELECT
                        tpl.participation_id,
                        tc.id,
                        sum(tpl.point) AS points,
                        sum(tq.point) AS max_points
                    FROM
                        training_participation_line tpl
                    LEFT JOIN
                        training_exam_question tq ON tpl.question_id = tq.id
                    LEFT JOIN
                        training_question_course_rel tqcr ON tqcr.question_id = tq.id
                    LEFT JOIN
                        training_course tc ON tqcr.course_id = tc.id
                    GROUP BY
                        tc.id,
                        tpl.participation_id
                ) AS z ON tpcl.participation_id = z.id AND tp.id = z.participation_id
        )

2. portal_training: there is an incorrect reference to a menu on file portal_training/partner/menus.xml . This line references to a non existent parent menu.
        <menuitem id="partner_subline_confirmed_mi" parent="partner_participation_main_mi" action="partner_subline_confirmed_act" sequence="22"/>

I changed by:
        <menuitem id="partner_subline_confirmed_mi" parent="partner_subscription_main_mi" action="partner_subline_confirmed_act" sequence="22"/>

3. training_report: There is a ...

Read more...

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

@Ana,

Which modules ? Do you use the modules from lp:~openobject-training ?

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

Hi Stephane: Thank you for answering. I had the sensation I was writing with nobody listening or interested on this impresive modules. :)

Yes. I have installed from here:
https://code.launchpad.net/~openobject-training

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

ok, I will check the code because I worked on this module.
thank you for your feedback.

Stef

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

@stephane: You are wellcome!!! Thank you again for responding.

Stephane: Sorry but... why this modules are including so many hardcoded queries? I use to think that postgresql queries are not recomended at all by most of OpenObject developpers.

Why are this modules so different from others?

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

openerp-training/client-training bug:

Trying to expand course estructure on courses/ course estructure by product line I obtain this error on expanding tree:

** (openerp-client.py:2418): CRITICAL **: pygtk_generic_tree_model_get_value: assertion `VALID_ITER(iter, tree_model)' failed

** (openerp-client.py:2418): CRITICAL **: pygtk_generic_tree_model_iter_parent: assertion `VALID_ITER(child, tree_model)' failed
openerp-client.py:140: GtkWarning: file /build/buildd/gtk+2.0-2.18.3/gtk/gtktreeview.c: line 4909 (gtk_tree_view_bin_expose): assertion `has_parent' failed.
There is a disparity between the internal view of the GtkTreeView,
and the GtkTreeModel. This generally means that the model has changed
without letting the view know. Any display from now on is likely to
be incorrect.

  gtk.main()
Traceback (most recent call last):
  File "/home/ana/openerp-training/client-training/bin/modules/gui/window/view_tree/view_tree.py", line 191, in on_get_iter
    tree = tree[x][2]
IndexError: list index out of range

** (openerp-client.py:2418): CRITICAL **: pygtk_generic_tree_model_get_value: assertion `VALID_ITER(iter, tree_model)' failed

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Ana, that last one looks like a problem on the client side (though it may be caused by a problem on the courses structure). Maybe you should report it as a separate bug and link it to the GTK client project.

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

Borja, problem is that client used on this modules is client-training, it is not standar client used normally. Another problem is that there is not a branche related to training modules allowing to report separate bugs for this modules. Branches are closed to upload bugs or blueprints or translations.

It's because of that I'm writing just directly on this bug everything I'm finding about it.

Revision history for this message
Bhumika Shrimali (sbh-openerp) wrote :

Hello,
For the training module .

Client :https://code.launchpad.net/~openerp/openobject-client/5.0
Server https://code.launchpad.net/~openobject-training/+junk/server

Training module :bzr branch lp:~openobject-training/+junk/extra

I has created a new database with the training profile and I haven't got any error or client side.
Can you provide me more information.

Thanks

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

I'm using
Client :https://code.launchpad.net//~openobject-training/+junk/training-client
Server https://code.launchpad.net/~openobject-training/+junk/training-server

I don't know difference of using server and server-training since both branches contain a server, but I used training-server since it has been updated later than server so I thought last version was training-server.

I obtain same error on client side, using openobject-client/5.0 or using openobject-training/training-client

You can test on
Training Management/library/courses/courses/course structure (by product line)

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

On training/partner_view.xml

The view definition res.partner.job.with.birthdate contains refernces to non existant parent view fields. The bug produces that is impossible opening res partners jobs from contact jobs menu, so, it's not possible assigning teachers on course.
The error can be easlity solve

 DELETING THIS on partner_view.xml file:
        <record model="ir.ui.view" id="job_form">
            <field name="name">res.partner.job.with.birthdate</field>
            <field name="model">res.partner.job</field>
            <field name="inherit_id" ref="base_contact.view_partner_job_form"/>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <data>
                    <xpath expr='/form/notebook/page[@string="General"]/field[@name="name"]' position="attributes">
                        <attribute name="readonly">1</attribute>
                    </xpath>
                    <xpath expr='/form/notebook/page[@string="General"]/field[@name="address_id"]' position="attributes">
                        <attribute name="on_change">onchange_address_id(address_id)</attribute>
                    </xpath>
                </data>
            </field>
        </record>

AND ADDING THIS:
        <record model="ir.ui.view" id="job_form">
            <field name="name">res.partner.job.with.birthdate</field>
            <field name="model">res.partner.job</field>
            <field name="inherit_id" ref="base_contact.view_partner_job_form"/>
            <field name="type">form</field>
            <field name="arch" type="xml">
                <field name="address_id" position="after">
                    <field name="birthdate" string="Birth Date"/>
                    <field name="pricelist_id" string="Pricelist"/>
                </field>
            </field>
        </record>

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

Questions and exams are using same sequence, I solved it on training_exam/training_exam.py

Line 410: DELETE
        return self.pool.get('ir.sequence').get(cr, uid, 'training.exam.questionnaire')

and ADD:
        return self.pool.get('ir.sequence').get(cr, uid, 'training.exam.question')

Revision history for this message
Bhumika Shrimali (sbh-openerp) wrote :

Hello Ana,
     I have Check Training Management/library/courses/courses/course structure. It give the error.
I have attach patch for it.

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote :

Hi SHB: Thank you. It seems that patch works, there is no error now but I have got one doubt. I don't know if it must work like that or not.
On tree view, analytic account are shown and after double click appairs a new windows with list of courses included on this analytic account. It is not possible explanding the tree view. This is:

I have got 3 courses: A, B, C where their parent is ABC. All of them have got an analytic account structured as this:

Account 1:
    Account ABC

On courses structure I can see account1/account ABC and if I double click it shows 4 courses:
    ABC
    A
    B
    C

I think it is not really showing the course structure but something different. Is this the correct behavior on this functionality?

About your patch and little corrections posted by me... do you know if they are going to be refactored on modules to be downloaded? Thank you again...
Ana

Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) wrote :

@Sbh #24
You download client 5.0, empty server junk and extra junk, but what about modules like: sale, purchase, account, where did you take it, from standard 5.0 addons (what exact branch)?
I try for 2 weeks many way to install Training for a school but I have a list of errors, could you help me please, my last installation is:
training-server (empty with only base module in addons directory)
training-addons (all symbolic linked in previous addon folder)
both training-client and 5.0 client
addons ver. 5.0 (all symbolic linked without --force, so I get only an error: a folder that is yet existant, base_* module)
Thanks

Revision history for this message
Nicola Riolini - Micronaet (nicolariolini) wrote :
Download full text (14.0 KiB)

Step over, I try to install on variuos server (training-server, server, server5.13, server5.12, server5.11) in this way:
link all addons subfolderfolder (except when I download tar file version 5.12 and older)
link training* folder, base_contact_team, smtpclient
create minimal company on new DB
install all dependencies: sale, mrp, purchase etc.
when I try to install training (all dependencies look installed) got the error above (if I try to install only training module, installation stops, depending of server, on purchase, or sale, or account)

Error in logs:

[2010-09-05 00:44:41,877] INFO:init:module training: loading training_view.xml
[2010-09-05 00:44:43,318] ERROR:init:[01]:
[2010-09-05 00:44:43,320] ERROR:init:[02]: Environment Information :
[2010-09-05 00:44:43,320] ERROR:init:[03]: System : Linux-2.6.32-21-generic-i686-with-Ubuntu-10.04-lucid
[2010-09-05 00:44:43,321] ERROR:init:[04]: OS Name : posix
[2010-09-05 00:44:43,321] ERROR:init:[05]: Distributor ID: Ubuntu
[2010-09-05 00:44:43,321] ERROR:init:[06]: Description: Ubuntu 10.04.1 LTS
[2010-09-05 00:44:43,321] ERROR:init:[07]: Release: 10.04
[2010-09-05 00:44:43,321] ERROR:init:[08]: Codename: lucid
[2010-09-05 00:44:43,321] ERROR:init:[09]: Operating System Release : 2.6.32-21-generic
[2010-09-05 00:44:43,321] ERROR:init:[10]: Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
[2010-09-05 00:44:43,321] ERROR:init:[11]: Operating System Architecture : 32bit
[2010-09-05 00:44:43,322] ERROR:init:[12]: Operating System Locale : it_IT.UTF8
[2010-09-05 00:44:43,322] ERROR:init:[13]: Python Version : 2.6.5
[2010-09-05 00:44:43,322] ERROR:init:[14]: OpenERP-Server Version : 5.0.12
[2010-09-05 00:44:43,322] ERROR:init:[15]: Last revision No. & ID : 19 <email address hidden>
[2010-09-05 00:44:43,322] ERROR:init:[16]:
[2010-09-05 00:44:43,322] ERROR:init:[17]: The view does not fit the required schema !
[2010-09-05 00:44:44,048] ERROR:init:[01]:
[2010-09-05 00:44:44,050] ERROR:init:[02]: Environment Information :
[2010-09-05 00:44:44,051] ERROR:init:[03]: System : Linux-2.6.32-21-generic-i686-with-Ubuntu-10.04-lucid
[2010-09-05 00:44:44,051] ERROR:init:[04]: OS Name : posix
[2010-09-05 00:44:44,051] ERROR:init:[05]: Distributor ID: Ubuntu
[2010-09-05 00:44:44,051] ERROR:init:[06]: Description: Ubuntu 10.04.1 LTS
[2010-09-05 00:44:44,051] ERROR:init:[07]: Release: 10.04
[2010-09-05 00:44:44,051] ERROR:init:[08]: Codename: lucid
[2010-09-05 00:44:44,052] ERROR:init:[09]: Operating System Release : 2.6.32-21-generic
[2010-09-05 00:44:44,052] ERROR:init:[10]: Operating System Version : #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
[2010-09-05 00:44:44,052] ERROR:init:[11]: Operating System Architecture : 32bit
[2010-09-05 00:44:44,052] ERROR:init:[12]: Operating System Locale : it_IT.UTF8
[2010-09-05 00:44:44,052] ERROR:init:[13]: Python Version : 2.6.5
[2010-09-05 00:44:44,052] ERROR:init:[14]: OpenERP-Server Version : 5.0.12
[2010-09-05 00:44:44,052] ERROR:init:[15]: Last revision No. & ID : 19 <email address hidden>
[2010-09-05 00:44:44,053] ERROR:init:[16]:
[2010-09-05 00:44:44,053] ERROR:init:[17]: <string>:55:0:ERROR:...

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

Extra-addons modules are currently not a focus of developments.
They will be handled later.
Thanks.

Changed in openobject-addons:
importance: Undecided → Wishlist
status: New → Won't Fix
Revision history for this message
Jordi Esteve (www.zikzakmedia.com) (jesteve-zikzakmedia) wrote :

We have port three of them (training, training_exam and training_room) to work over the stable version 5.0 and trunk (6.0). You could find them in addons-extra branches.

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.