mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_widget_digitized_signature: Migration to 12.0
This commit is contained in:
committed by
Maxime Chambreuil
parent
9b20580c65
commit
7008038559
@@ -1,18 +1,19 @@
|
||||
# Copyright 2004-2010 OpenERP SA (<http://www.openerp.com>)
|
||||
# Copyright 2011-2015 Serpent Consulting Services Pvt. Ltd.
|
||||
# Copyright 2017 Tecnativa - Vicent Cubells
|
||||
# Copyright 2019 Open Source Integrators
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
{
|
||||
"name": "Web Widget Digitized Signature",
|
||||
"version": "11.0.1.0.0",
|
||||
"author": "Serpent Consulting Services Pvt. Ltd., "
|
||||
"Agile Business Group, "
|
||||
"Tecnativa, "
|
||||
"Odoo Community Association (OCA)",
|
||||
'name': 'Web Widget Digitized Signature',
|
||||
'version': '12.0.1.0.0',
|
||||
'author': 'Serpent Consulting Services Pvt. Ltd., '
|
||||
'Agile Business Group, '
|
||||
'Tecnativa, '
|
||||
'Odoo Community Association (OCA)',
|
||||
'website': 'https://github.com/OCA/web',
|
||||
"license": "AGPL-3",
|
||||
"category": 'Web',
|
||||
'license': 'AGPL-3',
|
||||
'category': 'Web',
|
||||
'depends': [
|
||||
'web',
|
||||
'mail',
|
||||
@@ -25,4 +26,6 @@
|
||||
'static/src/xml/digital_sign.xml',
|
||||
],
|
||||
'installable': True,
|
||||
'development_status': 'Stable',
|
||||
'maintainers': ['mgosai'],
|
||||
}
|
||||
|
||||
@@ -10,10 +10,9 @@ class ResUsers(models.Model):
|
||||
_name = 'res.users'
|
||||
_inherit = ['res.users', 'mail.thread']
|
||||
|
||||
digital_signature = fields.Binary(
|
||||
string='Signature',
|
||||
oldname="signature_image",
|
||||
)
|
||||
digital_signature = fields.Binary(string='Digital Signature',
|
||||
oldname="signature_image",
|
||||
attachment=True)
|
||||
|
||||
@api.model
|
||||
def create(self, vals):
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
* Jay Vora <jay.vora@serpentcs.com>
|
||||
* Tecnativa <https://www.tecnativa.com>:
|
||||
|
||||
* Vicent Cubells
|
||||
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
|
||||
* Pedro M. Baeza <pedro.baeza@gmail.com>
|
||||
* Vicent Cubells <vicent@vcubells.net>
|
||||
* Mayank Gosai <mgosai@opensourceintegrators.com>
|
||||
* Maxime Chambreuil <mchambreuil@opensourceintegrators.com>
|
||||
|
||||
1
web_widget_digitized_signature/readme/CREDITS.rst
Normal file
1
web_widget_digitized_signature/readme/CREDITS.rst
Normal file
@@ -0,0 +1 @@
|
||||
* Tecnativa <https://www.tecnativa.com>
|
||||
@@ -420,6 +420,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
<li>Serpent Consulting Services Pvt. Ltd.</li>
|
||||
<li>Agile Business Group</li>
|
||||
<li>Tecnativa</li>
|
||||
<li>Open Source Integrators</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="contributors">
|
||||
@@ -429,6 +430,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
||||
<li>Tecnativa <<a class="reference external" href="https://www.tecnativa.com">https://www.tecnativa.com</a>>:<ul>
|
||||
<li>Vicent Cubells</li>
|
||||
</ul>
|
||||
<li>Mayank Gosai <<a class="reference external" href="mailto:mgosai@opensourceintegrators.com">mgosai@opensourceintegrators.com</a>></li>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -22,8 +22,6 @@ odoo.define('web_widget_digitized_signature.web_digital_sign', function(require)
|
||||
placeholder: "/web/static/src/img/placeholder.png",
|
||||
init: function() {
|
||||
this._super.apply(this, arguments);
|
||||
this.$('> img').remove();
|
||||
this.$('.signature > canvas').remove();
|
||||
this.sign_options = {
|
||||
'decor-color': '#D1D0CE',
|
||||
'color': '#000',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" ?>
|
||||
<odoo>
|
||||
|
||||
|
||||
<record id="inherited_res_users_form" model="ir.ui.view">
|
||||
<field name="name">inherited.res.users.form</field>
|
||||
<field name="model">res.users</field>
|
||||
@@ -14,6 +14,7 @@
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="inherited_res_users_preferences_form" model="ir.ui.view">
|
||||
<field name="name">inherited.res.users.preferences.form</field>
|
||||
<field name="model">res.users</field>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="web_widget_digitized_signature_backend" name="web_widget_digitized_signature assets" inherit_id="web.assets_backend">
|
||||
<xpath expr="." position="inside">
|
||||
<script type="text/javascript" src="/web_widget_digitized_signature/static/src/js/digital_sign.js"></script>
|
||||
<script type="text/javascript"
|
||||
src="/web_widget_digitized_signature/static/src/js/digital_sign.js"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user