fixup! [ADD] mail_activity_form

pull/784/head
Holger Brunn 2021-10-05 05:46:05 +02:00
parent c0a216300a
commit 0a34864269
2 changed files with 5 additions and 2 deletions

View File

@ -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>

View File

@ -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])