Bug in openerp-server/bin/osv/orm.py

Bug #462753 reported by Moisés López - http://www.vauxoo.com
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openerp-server (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: openerp-server

I had a problem in the use of OpenERP-Server, since client.
I bugfix the problem, i attach it the bugfix:

Index: openerp-server/bin/osv/orm.py
#Bugfix in get data of dict.
===================================================================
--- ../openerp-server/bin/osv/orm.py (revisión: original)
+++ ../openerp-server/bin/osv/orm.py (revisión: bugfix)
@@ -222,7 +222,7 @@
                     elif f._type in ('one2many', 'many2many') and len(data[n]):
                         data[n] = self._list_class([browse_record(self._cr, self._uid, id, self._table.pool.get(f._obj), self._cache, context=self._context, list_class=self._list_class, fields_process=self._fields_process) for id in data[n]], self._context)
                 self._data[data['id']].update(data)
- return self._data[self._id][name]
+ return self._data[self._id].get(name, False)

     def __getattr__(self, name):
 # raise an AttributeError exception.

Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) wrote :

Is a patch for the bugfix

Changed in openerp-server (Ubuntu):
status: New → Invalid
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.