← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 787428] Re: [PS] Survey bugs

 

** Project changed: openobject-addons => openobject-client-web

** Changed in: openobject-client-web
   Importance: Undecided => Low

** Changed in: openobject-client-web
       Status: New => Confirmed

** Changed in: openobject-client-web
     Assignee: (unassigned) => OpenERP SA's Web Client R&D (openerp-dev-web)

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

Title:
  [PS] Survey bugs

Status in OpenERP Web Client:
  Confirmed

Bug description:
  Survey module problems:

  With OpenERP v6.0.2 (online platform)

  Different problems encoutered:

  1° Create a Survey (+ Questions and Answer)

  With web client, several errors when I try to create a survey:

      - I create a Survey and I try to add a Page. I try to add a second page and I get the following error:
      
  Traceback (most recent call last): File "/home/odoo/openerp/server/bin/netsvc.py", line 492, in dispatch result = ExportService.getService(service_name).dispatch(method, auth, params) File "/home/odoo/openerp/server/bin/addons/use_control/services.py", line 41, in dispatch return super(recording_objects_proxy, self).dispatch(func, auth, params) File "/home/odoo/openerp/server/bin/service/web_services.py", line 608, in dispatch res = fn(db, uid, *params) File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 514, in execute res = my_fct(db, uid, model, method, *args) File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 492, in my_fct return fct_src(db, uid, model, method, *args) File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper return f(self, dbname, *args, **kwargs) File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/home/odoo/openerp/server/bin/addons/survey/survey.py", line 184, in default_get if len(context['line_order'][-1]) > 2 and type(context['line_order'][-1][2]) == type({}) and context['line_order'][-1][2].has_key('sequence'): TypeError: object of type 'int' has no len()

  But the survey is created and the first page is saved.

      - When adding a question and then an answer: it takes a long time and sometimes I can't add any answer. 
      - Before adding an answer, I save my question. Then I reopen my question to add an answer and I get a python error and no possibility to add answer!

  2° Send the survey by e-mail

  When I have created my survey (with the GTK client - it works with it), I try to send the survey to people by e-mail but several errors here too:
      
      - In the body of the mail: the URL of the DB is not correct. I get the following URL http://ns358790.ovh.net:8080 (which gives a 404 error) instead of the correct one which is test-mail.my.openerp.com
      
      - I connect to the DB to answer the survey from both web client and GTK client, here too I get some errors
              o With the web client:
                I have to answer twice at the same question and at the second time, I get the following bug:

  WARNING
  You can not read this document (survey.tbl.column.heading) ! Be sure your user belongs to one of these groups: Tools / Manager, Human Resources / Manager, Human Resources / User.

              o With the GTK client:
                I only have to answer once to the question (normal) but when I confirm my answer I get the following error:

  Environment Information : 
  System : Linux-2.6.32-31-generic-x86_64-with-Ubuntu-10.04-lucid
  OS Name : posix
  Distributor ID:	Ubuntu
  Description:	Ubuntu 10.04.2 LTS
  Release:	10.04
  Codename:	lucid
  Operating System Release : 2.6.32-31-generic
  Operating System Version : #61-Ubuntu SMP Fri Apr 8 18:25:51 UTC 2011
  Operating System Architecture : 64bit
  Operating System Locale : fr_FR.UTF8
  Python Version : 2.6.5
  OpenERP-Client Version : 6.0.2
  Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
    File "/home/odoo/openerp/server/bin/netsvc.py", line 492, in dispatch
      result = ExportService.getService(service_name).dispatch(method, auth, params)
    File "/home/odoo/openerp/server/bin/addons/use_control/services.py", line 41, in dispatch
      return super(recording_objects_proxy, self).dispatch(func, auth, params)
    File "/home/odoo/openerp/server/bin/service/web_services.py", line 608, in dispatch
      res = fn(db, uid, *params)
    File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 514, in execute
      res = my_fct(db, uid, model, method, *args)
    File "/home/odoo/openerp/server/bin/addons/audittrail/audittrail.py", line 492, in my_fct
      return fct_src(db, uid, model, method, *args)
    File "/home/odoo/openerp/server/bin/osv/osv.py", line 122, in wrapper
      return f(self, dbname, *args, **kwargs)
    File "/home/odoo/openerp/server/bin/osv/osv.py", line 176, in execute
      res = self.execute_cr(cr, uid, obj, method, *args, **kw)
    File "/home/odoo/openerp/server/bin/osv/osv.py", line 167, in execute_cr
      return getattr(object, method)(cr, uid, *args, **kw)
    File "/home/odoo/openerp/server/bin/addons/survey/wizard/survey_answer.py", line 405, in fields_view_get
      file = open(addons.get_module_resource('survey', 'report') + survey_data.title + ".pdf")
  IOError: [Errno 2] No such file or directory: u'/home/odoo/openerp/server/bin/addons/survey/reportBug test.pdf'

  (I try to define survey with and without space in the name)

  3° Answer report
      
      All of the answers are in a 'Not Finished State'


References