Browse Source

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

pull/357/head
docmfried 9 years ago
parent
commit
bc468c2506
  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 * 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 { .oe_form_editable .oe_form .oe_form_field_time input {
width: 7em; width: 7em;
}
}

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

@ -18,29 +18,4 @@
</t> </t>
</span> </span>
</t> </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> </xpath>
</template> </template>
</data> </data>
</openerp>
</openerp>
Loading…
Cancel
Save