diff --git a/web_digital_sign/__init__.py b/web_digital_sign/__init__.py index 433663e6..e14f6294 100644 --- a/web_digital_sign/__init__.py +++ b/web_digital_sign/__init__.py @@ -20,4 +20,5 @@ # ############################################################################## +import users # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/web_digital_sign/__openerp__.py b/web_digital_sign/__openerp__.py index 22a09d85..6e872a2f 100644 --- a/web_digital_sign/__openerp__.py +++ b/web_digital_sign/__openerp__.py @@ -29,8 +29,9 @@ 'depends': ['web'], "description": """ This module provides the functionality to store digital signature image for a record. + The example can be seen into the User's form view where we have added a test field under signature. """, - 'data': [], + 'data': ['users_view.xml'], 'js':[ "static/lib/excanvas.js", "static/lib/jquery.signature.js", diff --git a/web_digital_sign/users.py b/web_digital_sign/users.py new file mode 100644 index 00000000..cf641f67 --- /dev/null +++ b/web_digital_sign/users.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2010 OpenERP SA () +# Copyright (C) 2011-2015 Serpent Consulting Services Pvt. Ltd. (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## + +from openerp.osv import osv, fields + +class Users(osv.Model): + _inherit = 'res.users' + + _columns = { + 'signature_image': fields.binary('Signature') + } + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/web_digital_sign/users_view.xml b/web_digital_sign/users_view.xml new file mode 100644 index 00000000..ef0c0d8f --- /dev/null +++ b/web_digital_sign/users_view.xml @@ -0,0 +1,18 @@ + + + + + + inherited.res.users.form + res.users + + + + + + + + + \ No newline at end of file