c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #12971
[Bug 704012] Re: one2many problem
** Attachment added: "web-o2m.patch"
https://bugs.launchpad.net/bugs/704012/+attachment/1796889/+files/web-o2m.patch
--
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/704012
Title:
one2many problem
Status in OpenObject Web Client:
New
Bug description:
This problem is connected with the field current. ITis TinyDict but
when ids is a list of tuple the field current is tranformed in a tuple
so then we have the following error
openerp-web/addons/openerp/widgets/form/_o2m.py in __init__(self=O2M, **attrs={'context': {'bin_size': True, 'client': 'web', 'lang': u'it_IT', 'tz': False}, 'editable': True, 'link': 1, 'model': 'wizard.account.asset.compute', 'name': u'move_ids', 'nolabel': u'1', 'prefix': '', 'readonly': u'1', 'relation': u'account.move', 'required': False, ...})
136
137
138 current.model = self.model
139 current.id = id
140 current.ids = ids
current = (1, 40L, {}), current.model undefined, self = O2M, self.model = u'account.move'
<type 'exceptions.AttributeError'>: 'tuple' object has no attribute 'model'
args = ("'tuple' object has no attribute 'model'",)
message = "'tuple' object has no attribute 'model'"
References