base_report_creator error while pressing action when custom report is open

Bug #431827 reported by Peter Langenberg
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
Mantavya Gajjar (Open ERP)

Bug Description

1) Create a report
2) Press on ACTION (next to PRINT)
3) Get this error

Environment Information :
System : Linux-2.6.27-14-generic-x86_64-with-debian-lenny-sid
OS Name : posix
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:languages-3.2-amd64:languages-3.2-noarch:multimedia-3.2-amd64:multimedia-3.2-noarch:printing-3.2-amd64:printing-3.2-noarch:qt4-3.1-amd64:qt4-3.1-noarch
Distributor ID: Ubuntu
Description: Ubuntu 8.10
Release: 8.10
Codename: intrepid
Operating System Release : 2.6.27-14-generic
Operating System Version : #1 SMP Mon Aug 31 12:58:38 UTC 2009
Operating System Architecture : 64bit
Operating System Locale : en_US.UTF8
Python Version : 2.5.2
OpenERP-Client Version : 5.0.5-bzr
Last revision No. & ID :992 <email address hidden>
Traceback (most recent call last):
  File "/home/peter/openerp-server-5.0bzr/bin/netsvc.py", line 244, in dispatch
    result = LocalService(service_name)(method, *params)
  File "/home/peter/openerp-server-5.0bzr/bin/netsvc.py", line 73, in __call__
    return getattr(self, method)(*params)
  File "/home/peter/openerp-server-5.0bzr/bin/service/web_services.py", line 639, in execute
    return self._execute(db, uid, wiz_id, datas, action, context)
  File "/home/peter/openerp-server-5.0bzr/bin/service/web_services.py", line 619, in _execute
    return wiz.execute(db, uid, self.wiz_datas[wiz_id], action, context)
  File "/home/peter/openerp-server-5.0bzr/bin/wizard/__init__.py", line 178, in execute
    res = self.execute_cr(cr, uid, data, state, context)
  File "/home/peter/openerp-server-5.0bzr/bin/wizard/__init__.py", line 83, in execute_cr
    res['action'] = result_def['action'](self, cr, uid, data, context)
  File "/home/peter/openerp-server-5.0bzr/bin/addons/base_report_creator/wizard/base_report_creator_open.py", line 37, in _open_report
    view_mode = rep.view_type1
  File "/home/peter/openerp-server-5.0bzr/bin/osv/orm.py", line 229, in __getattr__
    return self[name]
  File "/home/peter/openerp-server-5.0bzr/bin/osv/orm.py", line 225, in __getitem__
    return self._data[self._id][name]
KeyError: 'view_type1'

Revision history for this message
Mantavya Gajjar (Open ERP) (mga) wrote :

Hello,

i am not able to generate this error, can you please specify the version which you are using ? so that i will check on that version

currently i am heaving from last stable branch 5.0/
Server : 1852
Client : 994

thanks

Revision history for this message
Mantavya Gajjar (Open ERP) (mga) wrote :

Hello,

ok i am able to generate this error now

1 create a report
2. run report -> it will display the list of records
3. on that list view try to run action - this will generate the error

Changed in openobject-addons:
status: New → Confirmed
assignee: nobody → mga (Open ERP) (mga)
Revision history for this message
Mantavya Gajjar (Open ERP) (mga) wrote :

Hello,

The problem is we are trying to run the wizard on result of the base report designer, actually which was design for the base report creator only

apply this attached patch, then check and reply

thanks

Changed in openobject-addons:
status: Confirmed → In Progress
importance: Undecided → Low
Revision history for this message
Mantavya Gajjar (Open ERP) (mga) wrote :

fix in to the trunk

Changed in openobject-addons:
status: In Progress → Fix Committed
status: Fix Committed → Fix Released
Revision history for this message
Mantavya Gajjar (Open ERP) (mga) wrote :

will be realised in the 5.2

Changed in openobject-addons:
milestone: none → 5.2
Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

Hello mga?

If this is a bug, ot a new improvement, why didn't put in the stable version??, i'm trying to use it in a production enviroment and i can not use it whe the trunk is on stable.
IIMHO, if there aren't technical reason, it must be on stable.

Thanks.

Revision history for this message
Nhomar - Vauxoo (nhomar) wrote :

Sorry mga...

I made a diff between the actual stable version and the production and the patch is applied.
But I need to say that the error is presented aplying this patch!, there are one aditional change for apply???

In production I have the revno 2530
I compared with revno 2571

and the diff command said:

----------------
29c29
< from tools.translate import _
---
>
36,37d35
< if context.get('report_id',False):
< raise wizard.except_wizard(_('UserError'),_('No Wizards available for this object!'))
--------------

I compared with your patch and the change appear like had the intention of correct the error....

Can you check please!

I think this bug is important, because this tool is the only way to Human beens analyse some simple data without codding...

Thanks

PD: I tried applying the patch on tis bug report too and it doesn't work... Thanks!

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.