c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #21759
[Bug 759456] Re: [6.0.2] Point of sale, object is unsubscriptabe
Hello arnaud,
I have checked your issue the problem generated from your end problem.
You might have a problem in your server and addons configuration.
You are working on trunk addons and your server and client from stable
6.0.2 version or you already updated trunk addons but you did not update
trunk server and client
Because in latest trunk server revision has been changed the behavior
for osv memory wizard.
Therefore If your server revision is old then all yml test case you have
faced this type of traceback.
So would you please update your server or don't mis-configure with trunk
and stable and then check it.
For now I am closing this bug if you will still face the problem then
you can reopen this with proper steps .
Thanks.
** Changed in: openobject-addons
Status: New => Invalid
--
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/759456
Title:
[6.0.2] Point of sale, object is unsubscriptabe
Status in OpenERP Modules (addons):
Invalid
Bug description:
Hello all,
I just made a fresh new install with the 6.0.2 version and when trying to create a new database, here's what I get :
[2011-04-13 07:39:21,166][mwp_02] ERROR:tests.point_of_sale:'int' object is unsubscriptable
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 729, in process
self._process_node(node)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 744, in _process_node
self.process_python(node)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 414, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/point_of_sale/test/point_of_sale_test.yml", line 3, in <module>
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/point_of_sale/wizard/pos_payment.py", line 153, in check
data[m2o_field] = data.get(m2o_field, False) and data[m2o_field][0] or False
TypeError: 'int' object is unsubscriptable
[2011-04-13 07:39:21,168][mwp_02] ERROR:test:Tests failed to execute in module point_of_sale
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 670, in load_test
_load_data(cr, module_name, id_map, mode, 'test')
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/__init__.py", line 693, in _load_data
tools.convert_yaml_import(cr, module_name, file, id_map, mode, noupdate)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 794, in yaml_import
yaml_interpreter.process(yaml_string)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 729, in process
self._process_node(node)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 744, in _process_node
self.process_python(node)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/tools/yaml_import.py", line 414, in process_python
unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/point_of_sale/test/point_of_sale_test.yml", line 3, in <module>
File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/point_of_sale/wizard/pos_payment.py", line 153, in check
data[m2o_field] = data.get(m2o_field, False) and data[m2o_field][0] or False
TypeError: 'int' object is unsubscriptable
References