[gen] Bugfix: getFormattedValue must produce a different value for strings with format=TEXT depending on the layout type.

This commit is contained in:
Gaetan Delannay 2015-03-06 15:54:14 +01:00
parent a4a9acfcfb
commit 4009cf824c
12 changed files with 62 additions and 46 deletions

View file

@ -93,7 +93,8 @@ class Computed(Field):
# self.method is a method that will return the field value
return self.callMethod(obj, self.method, cache=False)
def getFormattedValue(self, obj, value, showChanges=False, language=None):
def getFormattedValue(self, obj, value, layoutType='view',
showChanges=False, language=None):
if self.formatMethod:
res = self.formatMethod(obj, value)
else: