web
web copied to clipboard
[MIG] migrate `web_widget_digitized_signature` to 13.0
Here is the diff :
diff --git a/web_widget_digitized_signature/models/res_users.py b/web_widget_digitized_signature/models/res_users.py
index 48cc0fae..7e74f302 100644
--- a/web_widget_digitized_signature/models/res_users.py
+++ b/web_widget_digitized_signature/models/res_users.py
@@ -20,7 +20,6 @@ class ResUsers(models.Model):
res._track_signature(vals, 'digital_signature')
return res
- @api.multi
def write(self, vals):
self._track_signature(vals, 'digital_signature')
return super(ResUsers, self).write(vals)
diff --git a/web_widget_digitized_signature/static/src/js/digital_sign.js b/web_widget_digitized_signature/static/src/js/digital_sign.js
index 6df41d87..046c31d8 100644
--- a/web_widget_digitized_signature/static/src/js/digital_sign.js
+++ b/web_widget_digitized_signature/static/src/js/digital_sign.js
@@ -106,7 +106,7 @@ odoo.define('web_widget_digitized_signature.web_digital_sign', function(require)
model: this.model,
method: 'read',
args: [this.res_id, [field_name]]
- }).done(function(data) {
+ }).then(function(data) {
if (data) {
var field_desc = _.values(_.pick(data[0], field_name));
self.$(".signature").jSignature("clear");
Hi @mgosai, some modules you are maintaining are being modified, check this out!
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.