Skip to content

Commit 2c884ca

Browse files
author
Sébastien Alix
committed
Fix for Bug #1167796 (Dictionary interface of OSV/Model class conflicts with OSV methods)
1 parent be71636 commit 2c884ca

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

oerplib/service/osv/osv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from oerplib.service.osv import fields, browse
1010

1111

12-
class Model(collections.Mapping):
12+
class Model(object):
1313
""".. versionadded:: 0.5
1414
1515
Represent a data model from the `OpenERP` server.

tests/test_osv.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def test_model_method(self):
2626
# Check the result returned
2727
model = self.oerp.get('res.users')
2828
model.name_get(self.user.id)
29+
self.oerp.get('ir.sequence').get('fake.code') # Return False
2930

3031
def test_model_method_without_args(self):
3132
# Handle exception (execute a 'name_get' with without args)

0 commit comments

Comments
 (0)