diff --git a/web_widget_digital_signature_sale_order/README.rst b/web_widget_digital_signature_sale_order/README.rst new file mode 100644 index 00000000..b4912999 --- /dev/null +++ b/web_widget_digital_signature_sale_order/README.rst @@ -0,0 +1,54 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +===================================== +Web Digital Signature for sale orders +===================================== + +This module adds a signature field to sale order form. +So that salesman can let customers sign their quotations. + +Usage +===== + +Just open a quotation and sign it. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/162/8.0 + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smashing it by providing a detailed and welcomed `feedback +`_. + +Credits +======= + +Contributors +------------ + +* Lorenzo Battistini + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/web_widget_digital_signature_sale_order/__init__.py b/web_widget_digital_signature_sale_order/__init__.py new file mode 100644 index 00000000..28c331e6 --- /dev/null +++ b/web_widget_digital_signature_sale_order/__init__.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright 2015 Lorenzo Battistini - Agile Business Group +# +# About License, see __openerp__.py +# +############################################################################## + +from . import models diff --git a/web_widget_digital_signature_sale_order/__openerp__.py b/web_widget_digital_signature_sale_order/__openerp__.py new file mode 100644 index 00000000..e2b1c5e1 --- /dev/null +++ b/web_widget_digital_signature_sale_order/__openerp__.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright 2015 Lorenzo Battistini - Agile Business Group +# +# 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 . +# +############################################################################## + +{ + "name" : "Web Digital Signature for sale orders", + "version" : "8.0.1.0.0", + "author" : "Agile Business Group, " + "Odoo Community Association (OCA)", + "category": 'web', + "license": "AGPL-3", + 'complexity': "easy", + 'depends': ['web_widget_digital_signature', 'sale'], + 'data': [ + 'views/sale_order_view.xml' + ], + 'website': 'http://www.agilebg.com', + 'installable': True, + 'auto_install': False, +} diff --git a/web_widget_digital_signature_sale_order/models/__init__.py b/web_widget_digital_signature_sale_order/models/__init__.py new file mode 100644 index 00000000..36ed5cd7 --- /dev/null +++ b/web_widget_digital_signature_sale_order/models/__init__.py @@ -0,0 +1,10 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright 2015 Lorenzo Battistini - Agile Business Group +# +# About License, see __openerp__.py +# +############################################################################## + +from . import sale_order diff --git a/web_widget_digital_signature_sale_order/models/sale_order.py b/web_widget_digital_signature_sale_order/models/sale_order.py new file mode 100644 index 00000000..c92eaa55 --- /dev/null +++ b/web_widget_digital_signature_sale_order/models/sale_order.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Copyright 2015 Lorenzo Battistini - Agile Business Group +# +# About License, see __openerp__.py +# +############################################################################## + +from openerp import models, fields, api + +class Users(models.Model): + _inherit = 'sale.order' + + signature_image= fields.Binary(string='Signature') diff --git a/web_widget_digital_signature_sale_order/static/description/icon.png b/web_widget_digital_signature_sale_order/static/description/icon.png new file mode 100644 index 00000000..b9e1b8df Binary files /dev/null and b/web_widget_digital_signature_sale_order/static/description/icon.png differ diff --git a/web_widget_digital_signature_sale_order/views/sale_order_view.xml b/web_widget_digital_signature_sale_order/views/sale_order_view.xml new file mode 100644 index 00000000..d69d6ccf --- /dev/null +++ b/web_widget_digital_signature_sale_order/views/sale_order_view.xml @@ -0,0 +1,19 @@ + + + + + + view_order_form_signature + sale.order + + + +
+