Browse Source

Added attachment in field definition

pull/1325/head
Mayank Gosai 5 years ago
committed by GitHub
parent
commit
6b62ce9661
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      web_widget_digitized_signature/models/res_users.py

3
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):

Loading…
Cancel
Save