openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #23779
[Bug 1132705] Re: [6.1] Object undefined when generating report after pool refresh
Hello ,
I have checked this issue but I did not face this problem with trunk ,
I have followed steps as your given , Open Object form view in Model,
create a new model . delete model , Open Previous model
and print report but I did not face any problem like yours.
So would you please provide detail information regarding this issue.
Thanks and waiting for reply!
** Changed in: openobject-server
Status: New => Incomplete
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1132705
Title:
[6.1] Object undefined when generating report after pool refresh
Status in OpenERP Server:
Incomplete
Bug description:
Open an object in form view, then create a new model through the web
interface, then delete the model to trigger a pool refresh, go back to
the object you opened earlier and try to generate a report from it.
Get the following exception:
Rendu Webkit
Traceback (most recent call last):
File "/home/odoo/openerp/server/openerp/addons/report_webkit/webkit_report.py", line 258, in create_single_pdf
**self.parser_instance.localcontext)
File "/usr/lib/python2.7/dist-packages/mako/template.py", line 296, in render
return runtime._render(self, self.callable_, args, data)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 660, in _render
**_kwargs_for_callable(callable_, data))
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 692, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/usr/lib/python2.7/dist-packages/mako/runtime.py", line 718, in _exec_template
callable_(context, *args, **kwargs)
File "memory:0x1a32da10", line 202, in render_body
<td>${_('Conditions of Order')} : ${evaluate(get_selection_item(o,cr,'x_order_condition',x_order_condition))}</td>
File "memory:0x1a32da10", line 1, in get_selection_item
<%
File "/home/odoo/openerp/server/openerp/osv/orm.py", line 3364, in fields_get
res_trans = translation_obj._get_source(cr, user, self._name + ',' + f, 'field', context.get('lang', False) or 'en_US')
File "/home/odoo/openerp/server/openerp/tools/cache.py", line 18, in lookup
r = self.lookup(self2, cr, *args)
File "/home/odoo/openerp/server/openerp/tools/cache.py", line 46, in lookup
value = d[key] = self.method(self2, cr, *args)
File "/home/odoo/openerp/server/openerp/addons/base/ir/ir_translation.py", line 279, in _get_source
cr.execute("""SELECT value
AttributeError: 'Undefined' object has no attribute 'execute'
Refreshing the object page after the pool refresh lets you generate
reports again.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1132705/+subscriptions
References