summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorLaurent Stukkens (LTU) <ltu@odoo.com>2020-03-27 10:08:43 +0000
committerLaurent Stukkens (LTU) <ltu@odoo.com>2020-05-08 07:56:09 +0000
commit68584351e4be49b0b0085e582271c655bdfb1585 (patch)
treee95d377c568aee8e44432b2be41a29b794660153 /addons/web/static/src/xml
parent7c00503008d9e5e9e17e62bfefc267ce87aa78d1 (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/xml')
-rw-r--r--addons/web/static/src/xml/name_and_signature.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/name_and_signature.xml b/addons/web/static/src/xml/name_and_signature.xml
index ff891e04a39..aecffdfa295 100644
--- a/addons/web/static/src/xml/name_and_signature.xml
+++ b/addons/web/static/src/xml/name_and_signature.xml
@@ -49,7 +49,7 @@
border, but we remove the padding from the body, so the canvas
will overflow on the corners without this rule.
-->
- <div class="o_web_sign_signature_group card mt-3" style="overflow: hidden;">
+ <div class="o_web_sign_signature_group bg-white card mt-3" style="overflow: hidden;">
<div class="card-header">
<div class="row no-gutters">
<div class="col-auto">
@@ -83,7 +83,9 @@
</div>
</div>
- <div class="o_web_sign_signature card-body p-0"/>
+ <div class="o_signature_stroke position-absolute"/>
+
+ <div class="o_web_sign_signature p-0 bg-transparent position-relative"/>
<div t-attf-class="o_web_sign_load_invalid card-footer d-none">
<div class="alert alert-danger mb-0" role="alert">