|
@ -177,6 +177,7 @@ class ResPartnerRelationAll(models.AbstractModel): |
|
|
def write(self, vals): |
|
|
def write(self, vals): |
|
|
"""divert non-problematic writes to underlying table""" |
|
|
"""divert non-problematic writes to underlying table""" |
|
|
underlying_objs = self.get_underlying_object() |
|
|
underlying_objs = self.get_underlying_object() |
|
|
|
|
|
underlying_objs = underlying_objs and underlying_objs[0] |
|
|
vals = { |
|
|
vals = { |
|
|
key: val |
|
|
key: val |
|
|
for key, val in vals.iteritems() |
|
|
for key, val in vals.iteritems() |
|
@ -209,4 +210,6 @@ class ResPartnerRelationAll(models.AbstractModel): |
|
|
@api.one |
|
|
@api.one |
|
|
def unlink(self): |
|
|
def unlink(self): |
|
|
"""divert non-problematic creates to underlying table""" |
|
|
"""divert non-problematic creates to underlying table""" |
|
|
return self.get_underlying_object().unlink() |
|
|
|
|
|
|
|
|
underlying_objs = self.get_underlying_object() |
|
|
|
|
|
underlying_objs = underlying_objs and underlying_objs[0] |
|
|
|
|
|
return underlying_objs.unlink() |