mirror of https://github.com/OCA/social.git
fixup! [ADD] mail_activity_form
parent
c0a216300a
commit
0a34864269
|
@ -31,7 +31,10 @@
|
|||
>It can also make sense to add some constants to the template to use in formulas, here we add some factor: <span
|
||||
data-form-id="factor"
|
||||
data-form-type="float"
|
||||
>42</span></div>
|
||||
>42</span>. And you can use dotted paths and items: <span
|
||||
data-form-id="user_name"
|
||||
data-form-compute="object.create_uid['name']"
|
||||
/></div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ class ModelProxy(object):
|
|||
|
||||
def __getitem__(self, key):
|
||||
if isinstance(key, str):
|
||||
return self.__getattribute__(key)
|
||||
return getattr(self, key)
|
||||
return ModelProxy(object.__getattribute__(self, "__model__")[key])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue