[FIX] core: adapt method api
Forward-port problem, once again
This commit is contained in:
+2
-2
@@ -1749,10 +1749,10 @@ class Many2one(_Relational):
|
|||||||
def convert_to_display_name(self, value, record):
|
def convert_to_display_name(self, value, record):
|
||||||
return ustr(value.display_name)
|
return ustr(value.display_name)
|
||||||
|
|
||||||
def convert_to_onchange(self, value, fnames=None):
|
def convert_to_onchange(self, value, record, fnames=()):
|
||||||
if not value.id:
|
if not value.id:
|
||||||
return False
|
return False
|
||||||
return super(Many2one, self).convert_to_onchange(value, fnames)
|
return super(Many2one, self).convert_to_onchange(value, record, fnames)
|
||||||
|
|
||||||
class UnionUpdate(SpecialValue):
|
class UnionUpdate(SpecialValue):
|
||||||
""" Placeholder for a value update; when this value is taken from the cache,
|
""" Placeholder for a value update; when this value is taken from the cache,
|
||||||
|
|||||||
Reference in New Issue
Block a user