[FIX] web: simplify the datepicker template

The library needs to have a 'relative' positioned parent to place
the datetimepicker correctly.
We don't do that in the template
anymore because it was not working in all the cases.
The template which instantiates the datepicker should define
a parent in position 'relative'.
This commit is contained in:
fwi-odoo
2017-02-07 15:42:25 +01:00
parent a27d826ee2
commit 64a0ece649
2 changed files with 6 additions and 16 deletions
@@ -12,13 +12,7 @@
border: 0;
}
.o_bootstrap_datepicker_parent{
position: relative;
}
.o_datepicker {
position: relative;
.o_datepicker_input {
width: 100%;
}
+6 -10
View File
@@ -831,17 +831,13 @@
<t t-name="web.datepicker">
<t t-set="placeholder" t-value="widget.getParent().node and widget.getParent().node.attrs.placeholder"/>
<div>
<div class="o_bootstrap_datepicker_parent"></div>
<div class="o_datepicker">
<input type="text"
class="o_datepicker_input"
t-att-name="widget.name"
t-att-placeholder="placeholder"/>
<span class="o_datepicker_button"/>
</div>
<div class="o_datepicker">
<input type="text"
class="o_datepicker_input"
t-att-name="widget.name"
t-att-placeholder="placeholder"/>
<span class="o_datepicker_button"/>
</div>
</t>
<t t-name="FieldSelection">
<span t-if="widget.get('effective_readonly')"/>