one2many problem

Bug #704012 reported by Salvi Angjeli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
OpenERP R&D Web Team

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'"

Revision history for this message
Salvi Angjeli (salvi-angjeli) wrote :
Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
status: New → Triaged
Revision history for this message
DBR (OpenERP) (dbr-openerp) wrote :

Hello Salvi,

Would you please elaborate with more information?

Thanks.

Changed in openobject-client-web:
status: Triaged → In Progress
Revision history for this message
Sananaz (Open ERP) (sma-tiny) wrote :

Hello Salvi Angjeli,

Thanks. Its fixed in trunk web-client with the following revision.
4483 <email address hidden>

Please update your code.

Changed in openobject-client-web:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.