Cannot upload a report template that uses a functional field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Low
|
OpenERP's Framework R&D |
Bug Description
While designing a custom report I noticed that I'm no longer able to create new reports. On the Open Office side everything looks fine (the "live update" preview shows what I expect it to show) but when attempting to send I get
2012-03-26 21:28:57,208 12901 WARNING ? openerp.
2012-03-26 21:28:57,209 12901 INFO ? werkzeug: 127.0.0.1 - - [26/Mar/2012 21:28:57] "POST /xmlrpc/object HTTP/1.1" 200 -
2012-03-26 21:28:57,226 12901 INFO ? werkzeug: 127.0.0.1 - - [26/Mar/2012 21:28:57] "POST /xmlrpc/object HTTP/1.1" 200 -
2012-03-26 21:28:57,236 12901 WARNING ? openerp.osv.orm: No such field(s) in model ir.values: object.
2012-03-26 21:28:57,238 12901 INFO ? werkzeug: 127.0.0.1 - - [26/Mar/2012 21:28:57] "POST /xmlrpc/object HTTP/1.1" 200 -
2012-03-26 21:28:57,325 12901 ERROR ? openerp.osv.osv: Uncaught exception
Traceback (most recent call last):
File "/usr/lib/
return f(self, dbname, *args, **kwargs)
File "/usr/lib/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/
'report_
File "/usr/lib/
root = etree.XPathEval
File "xpath.pxi", line 406, in lxml.etree.
File "xpath.pxi", line 345, in lxml.etree.
File "xpath.pxi", line 267, in lxml.etree.
TypeError: Argument 'element' has incorrect type (expected lxml.etree.
I've attached a very simple sandbox addon that can be used to reproduce this.
Steps to reproduce:
1) create a database
2) add the reportBugDemons
3) This will install the base report designer but you may need to install the module in your local copy of Open Office or Libreoffice if you haven't done so
4) in OO (or LO) a) connect to the new database; b) choose "open a new report"; c) pick "A sample entity" for module inclusion; d) add a loop on "list of a sample entity"; e) a couple of lines down, add text "tester field: " then insert the tester field field
5) send to server with name "basic report"
e) error gets generated.
Note that if you do step 1 through 4, but then do export to rml instead of send to server, the exact same problem happens
oops.. when I originally started posting this I thought it only happened when a functional field was involved and I discovered it was happening for everything. Apparently I forgot to modify "short description" so it's misleading now.