c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #04508
[Bug 675906] Re: Delete tag and function tag do not respect 'ref'
Hello, I don't think using "dotted" names syntax for references outside
of the current module is supported. Is there any other case where you've
seen this (or in the documentation?)
My intuition would be that you should use the ref( ) method instead, for
example like this:
<value model="ir.values"
search="[('value','=','ir.actions.wizard,%s' % ref('sale.advance_payment'))]"/>
Doesn't this work?
--
Delete tag and function tag do not respect 'ref'
https://bugs.launchpad.net/bugs/675906
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Server: Confirmed
Status in OpenObject Server 5.0 series: Confirmed
Status in OpenObject Server trunk series: Confirmed
Bug description:
<function model="ir.values" name="unlink">
<value model="ir.values"
search="[('value','=','ir.actions.wizard,'+str(sale.advance_payment))]"/>
</function>
AND
<delete....>
Both the tags do fail with traceback of ref unrecognized.
Traceback :
[2010-10-11 12:01:54,004] ERROR:web-services:[01]:
[2010-10-11 12:01:54,005] ERROR:web-services:[02]: Environment Information :
[2010-10-11 12:01:54,005] ERROR:web-services:[03]: System :
Linux-2.6.26-2-amd64-x86_64-with-debian-5.0.5
[2010-10-11 12:01:54,005] ERROR:web-services:[04]: OS Name : posix
[2010-10-11 12:01:54,005] ERROR:web-services:[05]: Distributor ID:
Debian
[2010-10-11 12:01:54,005] ERROR:web-services:[06]: Description: Debian
GNU/Linux 5.0.5 (lenny)
[2010-10-11 12:01:54,005] ERROR:web-services:[07]: Release: 5.0.5
[2010-10-11 12:01:54,005] ERROR:web-services:[08]: Codename: lenny
[2010-10-11 12:01:54,005] ERROR:web-services:[09]: Operating System Release
: 2.6.26-2-amd64
[2010-10-11 12:01:54,006] ERROR:web-services:[10]: Operating System Version
: #1 SMP Sun Jun 20 20:16:30 UTC 2010
[2010-10-11 12:01:54,006] ERROR:web-services:[11]: Operating System
Architecture : 64bit
[2010-10-11 12:01:54,006] ERROR:web-services:[12]: Operating System Locale :
en_US.UTF8
[2010-10-11 12:01:54,006] ERROR:web-services:[13]: Python Version : 2.5.2
[2010-10-11 12:01:54,006] ERROR:web-services:[14]: OpenERP-Server Version :
5.0.12
[2010-10-11 12:01:54,006] ERROR:web-services:[15]: Last revision No. & ID :
[2010-10-11 12:01:54,006] ERROR:web-services:[16]: Traceback (most recent
call last):
[2010-10-11 12:01:54,006] ERROR:web-services:[17]: File
"/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 56, in
wrapper
[2010-10-11 12:01:54,006] ERROR:web-services:[18]: if not
pooler.get_pool(dbname)._ready:
[2010-10-11 12:01:54,006] ERROR:web-services:[19]: File
"/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 81, in
get_pool
[2010-10-11 12:01:54,007] ERROR:web-services:[20]: pool =
get_db_and_pool(db_name, force_demo, status, update_module)[1]
[2010-10-11 12:01:54,007] ERROR:web-services:[21]: File
"/usr/lib/python2.5/site-packages/openerp-server/pooler.py", line 40, in
get_db_and_pool
[2010-10-11 12:01:54,007] ERROR:web-services:[22]:
addons.load_modules(db, force_demo, status, update_module)
[2010-10-11 12:01:54,007] ERROR:web-services:[23]: File
"/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line
741, in load_modules
[2010-10-11 12:01:54,007] ERROR:web-services:[24]: r =
load_module_graph(cr, graph, status, report=report)
[2010-10-11 12:01:54,007] ERROR:web-services:[25]: File
"/usr/lib/python2.5/site-packages/openerp-server/addons/__init__.py", line
631, in load_module_graph
[2010-10-11 12:01:54,007] ERROR:web-services:[26]:
tools.convert_xml_import(cr, m, fp, idref, mode=mode, **kwargs)
[2010-10-11 12:01:54,007] ERROR:web-services:[27]: File
"/usr/lib/python2.5/site-packages/openerp-server/tools/convert.py", line
874, in convert_xml_import
[2010-10-11 12:01:54,007] ERROR:web-services:[28]:
obj.parse(doc.getroot())
[2010-10-11 12:01:54,007] ERROR:web-services:[29]: File
"/usr/lib/python2.5/site-packages/openerp-server/tools/convert.py", line
771, in parse
[2010-10-11 12:01:54,007] ERROR:web-services:[30]:
self._tags[rec.tag](self.cr, rec, n)
[2010-10-11 12:01:54,008] ERROR:web-services:[31]: File
"/usr/lib/python2.5/site-packages/openerp-server/tools/convert.py", line
314, in _tag_function
[2010-10-11 12:01:54,008] ERROR:web-services:[32]: _eval_xml(self,rec,
self.pool, cr, uid, self.idref, context=context)
[2010-10-11 12:01:54,008] ERROR:web-services:[33]: File
"/usr/lib/python2.5/site-packages/openerp-server/tools/convert.py", line
147, in _eval_xml
[2010-10-11 12:01:54,008] ERROR:web-services:[34]: return_val =
_eval_xml(self,n, pool, cr, uid, idref, context)
[2010-10-11 12:01:54,008] ERROR:web-services:[35]: File
"/usr/lib/python2.5/site-packages/openerp-server/tools/convert.py", line 67,
in _eval_xml
[2010-10-11 12:01:54,008] ERROR:web-services:[36]: q = eval(f_search,
idref)
[2010-10-11 12:01:54,008] ERROR:web-services:[37]: File "<string>", line
1, in <module>
[2010-10-11 12:01:54,008] ERROR:web-services:[38]: NameError: name 'sale' is
not defined
References