Browse Source
Added attachment in field definition
pull/1325/head
Mayank Gosai
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
web_widget_digitized_signature/models/res_users.py
|
|
@ -10,8 +10,7 @@ class ResUsers(models.Model): |
|
|
|
_name = 'res.users' |
|
|
|
_inherit = ['res.users', 'mail.thread'] |
|
|
|
|
|
|
|
digital_signature = fields.Binary(string='Digital Signature', |
|
|
|
oldname="signature_image") |
|
|
|
digital_signature = fields.Binary(string='Digital Signature',oldname="signature_image",attachment=True) |
|
|
|
|
|
|
|
@api.model |
|
|
|
def create(self, vals): |
|
|
|