You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
652 B

  1. In the form view declaration, put widget='timepicker' attribute in the field tag::
  2. ...
  3. <field name="arch" type="xml">
  4. <form string="View name">
  5. ...
  6. <field name="name"/>
  7. <field name="mytimefieldname" widget="timepicker"/>
  8. ...
  9. </form>
  10. </field>
  11. ...
  12. Additional bootstrap datetime-picker plugin options can be specified by an options attribute::
  13. ...
  14. <field name="mytimefieldname" widget="timepicker" options="{'datepicker': {'stepping': 15}}"/>
  15. ...
  16. See the available options at `datetime-picker <https://eonasdan.github.io/bootstrap-datetimepicker/Options/>`_.