[FIX] odex25_sign: user could update some fields
This commit is contained in:
parent
8b72c963ef
commit
0967a37da1
|
|
@ -8,3 +8,12 @@ class ResUsers(models.Model):
|
||||||
|
|
||||||
sign_signature = fields.Binary(string="Digital Signature", )
|
sign_signature = fields.Binary(string="Digital Signature", )
|
||||||
sign_initials = fields.Binary(string="Digitial Initials",)
|
sign_initials = fields.Binary(string="Digitial Initials",)
|
||||||
|
|
||||||
|
|
||||||
|
def __init__(self, pool, cr):
|
||||||
|
"""Custom initialization of the model"""
|
||||||
|
super(ResUsers, self).__init__(pool, cr)
|
||||||
|
|
||||||
|
# Dynamically add fields to SELF_WRITEABLE_FIELDS and SELF_READABLE_FIELDS
|
||||||
|
type(self).SELF_WRITEABLE_FIELDS = list(self.SELF_WRITEABLE_FIELDS) + ['sign_signature', 'sign_initials']
|
||||||
|
type(self).SELF_READABLE_FIELDS = list(self.SELF_READABLE_FIELDS) + ['sign_signature', 'sign_initials']
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue