c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #22561
[Bug 768106] Re: Got an error When one2many or many2many inside a one2many wizard
Hi,
Thank you for your response.
When i add one2many or many2many inside a one2many wizard.
For example i need to add serial numbers in product at the time of receiving in warehouse .So i create a one2many in "process" wizard
model. When i add data into that record i got error as mentioned before.
Here i am attaching demo module (stock customization) example , where i changed in "stock_partial_move.py" and "stock_partial_move_view.xml" .
I add new field
'test_many' : fields.many2many('res.currency', 'rel_currr','ass','ssa', help="Currency in which Unit cost is expressed"),
}
in "stock_partial_move.py".
?field.comment=Hi,
Thank you for your response.
When i add one2many or many2many inside a one2many wizard.
For example i need to add serial numbers in product at the time of receiving in warehouse .So i create a one2many in "process" wizard
model. When i add data into that record i got error as mentioned before.
Here i am attaching demo module (stock customization) example , where i changed in "stock_partial_move.py" and "stock_partial_move_view.xml" .
I add new field
'test_many' : fields.many2many('res.currency', 'rel_currr','ass','ssa', help="Currency in which Unit cost is expressed"),
}
in "stock_partial_move.py".
** Attachment added: "stock.zip"
https://bugs.launchpad.net/openobject-client-web/+bug/768106/+attachment/2087666/+files/stock.zip
--
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/768106
Title:
Got an error When one2many or many2many inside a one2many wizard
Status in OpenERP Web Client:
Incomplete
Bug description:
Got an error When one2many or many2many inside a one2many wizard .When
select data into the many2many , i got the below error .
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cprequest.py", line 606, in respond
cherrypy.response.body = self.handler()
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/anoop/Desktop/openerp6 documents/openerp 6_0_2/openerp-web-6.0.2/openobject/tools/_expose.py", line 182, in func_wrapper
res = func(*args, **kw)
File "/home/anoop/Desktop/openerp6 documents/openerp 6_0_2/openerp-web-6.0.2/openobject/controllers/_root.py", line 87, in default
return request.handler()
File "/usr/local/lib/python2.6/dist-packages/CherryPy-3.1.2-py2.6.egg/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/home/anoop/Desktop/openerp6 documents/openerp 6_0_2/openerp-web-6.0.2/addons/openerp/controllers/utils.py", line 112, in wrapper
return fn(*args, **kw)
File "/home/anoop/Desktop/openerp6 documents/openerp 6_0_2/openerp-web-6.0.2/openobject/tools/_expose.py", line 182, in func_wrapper
res = func(*args, **kw)
File "/home/anoop/Desktop/openerp6 documents/openerp 6_0_2/openerp-web-6.0.2/addons/openerp/controllers/listgrid.py", line 285, in get
wid = frm.screen.get_widgets_by_name(source, kind=listgrid.List)[0]
IndexError: list index out of range
/usr/lib/python2.6/cgitb.py:173: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
value = pydoc.html.repr(getattr(evalue, name))
References