← Back to team overview

openerp-dev-web team mailing list archive

[Bug 704012] [NEW] one2many problem

 

Devishree Brahmbhatt (OpenERP) (dbr-openerp) has assigned this bug to you for OpenObject Web Client:

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

** Affects: openobject-client-web
     Importance: Undecided
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web)
         Status: Triaged

-- 
one2many problem
https://bugs.launchpad.net/bugs/704012
You received this bug notification because you are a member of OpenERP SA's Web Client R&D, which is a bug assignee.