diff options
| author | Laurent Stukkens (LTU) <ltu@odoo.com> | 2020-03-27 10:08:43 +0000 |
|---|---|---|
| committer | Laurent Stukkens (LTU) <ltu@odoo.com> | 2020-05-08 07:56:09 +0000 |
| commit | 68584351e4be49b0b0085e582271c655bdfb1585 (patch) | |
| tree | e95d377c568aee8e44432b2be41a29b794660153 /addons/web/static/src/js/widgets | |
| parent | 7c00503008d9e5e9e17e62bfefc267ce87aa78d1 (diff) | |
[IMP] web: Allow hide/show stroke in signature
In the sign application, it appeared that when using the default signature
in a signature SignItem that was higher the stroke at the bottom was doubbled.
This was caused by the fact that the bottom stroke is always added to the
template and that the default signature image had it already.
In order to solve this, we have added a setting 'show-stroke' that allows
controlling the stroke presence in the signature.
Task Id 2216067
Closes #48529
Related odoo/enterprise#9538
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/widgets')
| -rw-r--r-- | addons/web/static/src/js/widgets/name_and_signature.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/web/static/src/js/widgets/name_and_signature.js b/addons/web/static/src/js/widgets/name_and_signature.js index 5a20ea4fa22..9d2ae3bff8c 100644 --- a/addons/web/static/src/js/widgets/name_and_signature.js +++ b/addons/web/static/src/js/widgets/name_and_signature.js @@ -250,7 +250,8 @@ var NameAndSignature = Widget.extend({ .empty() .jSignature({ 'decor-color': '#D1D0CE', - 'background-color': '#FFF', + 'background-color': 'rgba(255,255,255,0)', + 'show-stroke': false, 'color': this.fontColor, 'lineWidth': 2, 'width': width, |
