← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 704012] Re: one2many problem

 

Hello Salvi Angjeli,

Thanks. Its fixed in trunk web-client with the following revision.
4483 sma@xxxxxxxxxxx-20110128091051-km5iyv7328r04n8u

Please update your code.


** Changed in: openobject-client-web
       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/704012

Title:
  one2many problem

Status in OpenERP Web Client:
  Fix Released

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