Fix typo when setting property
This commit is contained in:
1 parent
9fc21a67cd
commit
adeafe87e0
2 files changed
+3
-3
No files matched your search
@@ -96,14 +96,14 @@ class Property(OSV):
|
||||
model_field_obj = self.pool.get('ir.model.field')
|
||||
field_id = model_field_obj.search(cursor, user, [
|
||||
('name', '=', name),
|
||||
('model', '=', model),
|
||||
('model.model', '=', model),
|
||||
], limit=1, context=context)[0]
|
||||
|
||||
property_ids = self.search(cursor, user, [
|
||||
('field', '=', field_id),
|
||||
('res', '=', name + ',' + str(res_id)),
|
||||
], context=context)
|
||||
self.unlink(cursor, property_ids, context=context)
|
||||
self.unlink(cursor, user, property_ids, context=context)
|
||||
|
||||
default_id = self.search(cursor, user, [
|
||||
('field', '=', field_id),
|
||||
|
||||
@@ -617,7 +617,7 @@ class Property(Function):
|
||||
|
||||
def __init__(self, obj_prop, **args):
|
||||
function.__init__(self, '', False, self._fnct_write,
|
||||
(obj_prop, ), **args)
|
||||
obj_prop, **args)
|
||||
|
||||
def get(self, cursor, obj, ids, name, user=None, offset=0, context=None,
|
||||
values=None):
|
||||
|
||||
Reference in new issue
Block a user