Browse Source

ADD web_widget_digital_signature_sale_order

pull/267/head
eLBati 9 years ago
parent
commit
7b8186e6eb
  1. 54
      web_widget_digital_signature_sale_order/README.rst
  2. 10
      web_widget_digital_signature_sale_order/__init__.py
  3. 36
      web_widget_digital_signature_sale_order/__openerp__.py
  4. 10
      web_widget_digital_signature_sale_order/models/__init__.py
  5. 15
      web_widget_digital_signature_sale_order/models/sale_order.py
  6. BIN
      web_widget_digital_signature_sale_order/static/description/icon.png
  7. 19
      web_widget_digital_signature_sale_order/views/sale_order_view.xml
  8. 2
      web_widget_digital_signature_user/views/users_view.xml

54
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
<https://github.com/OCA/web/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
<https://github.com/OCA/
web/issues/new?body=module:%20
web_widget_digital_signature%0Aversion:%20
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======
Contributors
------------
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
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.

10
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

36
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 <http://www.gnu.org/licenses/>.
#
##############################################################################
{
"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,
}

10
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

15
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')

BIN
web_widget_digital_signature_sale_order/static/description/icon.png

After

Width: 128  |  Height: 128  |  Size: 5.6 KiB

19
web_widget_digital_signature_sale_order/views/sale_order_view.xml

@ -0,0 +1,19 @@
<?xml version="1.0" ?>
<openerp>
<data>
<record id="view_order_form_signature" model="ir.ui.view">
<field name="name">view_order_form_signature</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='note']" position="after">
<div class="oe_clear"/>
<label for="signature_image" class="oe_edit_only"/>
<h2><field name="signature_image" widget="signature"/></h2>
</xpath>
</field>
</record>
</data>
</openerp>

2
web_widget_digital_signature_user/views/users_view.xml

@ -7,7 +7,7 @@
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='signature']" position="replace">
<xpath expr="//field[@name='signature']" position="after">
<label for="signature_image" class="oe_edit_only"/>
<h2><field name="signature_image" widget="signature"/></h2>
</xpath>

Loading…
Cancel
Save