Browse Source

[ADD] Added new form field web timepicker widget for Odoo Version 9.0

pull/1248/head
docmfried 8 years ago
committed by Dennis Sluijk
parent
commit
50586c1ba2
  1. 1
      web_widget_timepicker/README.rst
  2. 2
      web_widget_timepicker/static/src/css/timepicker.css
  3. 27
      web_widget_timepicker/static/src/xml/time_picker.xml
  4. 2
      web_widget_timepicker/views/assets.xml

1
web_widget_timepicker/README.rst

@ -47,4 +47,3 @@ Contributors
------------
* Michael Fried

2
web_widget_timepicker/static/src/css/timepicker.css

@ -1,3 +1,3 @@
.oe_form_editable .oe_form .oe_form_field_time input {
width: 7em;
}
}

27
web_widget_timepicker/static/src/xml/time_picker.xml

@ -18,29 +18,4 @@
</t>
</span>
</t>
<!-- <t t-name="TimePickerField">
<span t-att-class="'oe_form_field '+widget.widget_class" t-att-style="widget.node.attrs.style">
<t t-if="!widget.get('effective_readonly')">
<input t-att-type="'text'"
class="o_timepicker_input"
t-att-id="widget.id_for_label"
t-att-tabindex="widget.node.attrs.tabindex"
t-att-autofocus="widget.node.attrs.autofocus"
t-att-placeholder="widget.node.attrs.placeholder"
t-att-maxlength="widget.field.size"/>
<span class="fa fa-clock-o o_timepicker_button"/>
<div class="o_timepicker">
<input type="text" class="o_timepicker_input"/>
<span class="fa fa-clock-o o_timepicker_button"/>
</div>
</t>
</span>
</t>
-->
</templates>
</templates>

2
web_widget_timepicker/views/assets.xml

@ -11,4 +11,4 @@
</xpath>
</template>
</data>
</openerp>
</openerp>
Loading…
Cancel
Save