← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 695338] Re: Assert tag contains an expr wtih wrong field of res.currency object.

 

** Changed in: openobject-server
       Status: In Progress => Fix Released

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

Title:
  Assert tag contains an expr wtih wrong field of res.currency object.

Status in OpenObject Server:
  Fix Released

Bug description:
  Steps to reproduce.

When i am changing the system date and set it to any date of year 2011 and creating new db i found the following traceback on server side.

[2011-01-29 11:53:26,971][db_test2] INFO:init:module base: loading test/test_context.xml
[2011-01-29 11:53:27,362][db_test2] ERROR:init:assertion "Indian rupee rate in 2002" failed!
 xmltag: <test expr="str(rate)">59.9739</test>
        
 expected value: '59.9739'
 obtained value: '0'

[2011-01-29 11:53:27,363][db_test2] ERROR:tools.convert.xml_import:Parse error in /home/tiny/workspace/openobject-server/bin/addons/base/test/test_context.xml:16: 
<assert model="res.currency" id="INR" string="Indian rupee rate in 2002" context="{'date': '2010-06-01'}">
            <test expr="str(rate)">59.9739</test>
        </assert>
[2011-01-29 11:53:27,363][db_test2] ERROR:test:Tests failed to execute in module base
Traceback (most recent call last):
  File "/home/tiny/workspace/openobject-server/bin/addons/__init__.py", line 665, in load_test
    _load_data(cr, module_name, id_map, mode, 'test')
  File "/home/tiny/workspace/openobject-server/bin/addons/__init__.py", line 690, in _load_data
    tools.convert_xml_import(cr, module_name, file, id_map, mode, noupdate)
  File "/home/tiny/workspace/openobject-server/bin/tools/convert.py", line 973, in convert_xml_import
    obj.parse(doc.getroot())
  File "/home/tiny/workspace/openobject-server/bin/tools/convert.py", line 863, in parse
    self._tags[rec.tag](self.cr, rec, n)
  File "/home/tiny/workspace/openobject-server/bin/tools/convert.py", line 746, in _tag_assert
    raise Exception('Severe assertion failure')
Exception: Severe assertion failure





References