33< head >
44< meta http-equiv ="Content-Type " content ="text/html; charset=utf-8 " />
55< meta name ="generator " content ="Docutils: https://docutils.sourceforge.io/ " />
6- < title > Web Datetime Picker Default Time </ title >
6+ < title > README.rst </ title >
77< style type ="text/css ">
88
99/*
360360</ style >
361361</ head >
362362< body >
363- < div class ="document " id ="web-datetime-picker-default-time ">
364- < h1 class ="title "> Web Datetime Picker Default Time</ h1 >
363+ < div class ="document ">
365364
365+
366+ < a class ="reference external image-reference " href ="https://odoo-community.org/get-involved?utm_source=readme ">
367+ < img alt ="Odoo Community Association " src ="https://odoo-community.org/readme-banner-image " />
368+ </ a >
369+ < div class ="section " id ="web-datetime-picker-default-time ">
370+ < h1 > Web Datetime Picker Default Time</ h1 >
366371<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372!! This file is generated by oca-gen-addon-readme !!
368373!! changes will be overwritten. !!
369374!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370- !! source digest: sha256:a5ffb697bdf4c26817212f783a9d4d617e91fcdc912a7750382d3eddaff05f7b
375+ !! source digest: sha256:57ed080d68dcc33c99d25c23549366d7703114c6c61f803e30e21f2c01fd0141
371376!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372- < p > < a class ="reference external image-reference " href ="https://odoo-community.org/page/development-status "> < img alt ="Beta " src ="https://img.shields.io/badge/maturity-Beta-yellow.png " /> </ a > < a class ="reference external image-reference " href ="http://www.gnu.org/licenses/agpl-3.0-standalone.html "> < img alt ="License: AGPL-3 " src ="https://img.shields.io/badge/licence-AGPL--3-blue.png " /> </ a > < a class ="reference external image-reference " href ="https://github.com/OCA/web/tree/18.0/web_datetime_picker_default_time "> < img alt ="OCA/web " src ="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github " /> </ a > < a class ="reference external image-reference " href ="https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_datetime_picker_default_time "> < img alt ="Translate me on Weblate " src ="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png " /> </ a > < a class ="reference external image-reference " href ="https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0 "> < img alt ="Try me on Runboat " src ="https://img.shields.io/badge/runboat-Try%20me-875A7B.png " /> </ a > </ p >
377+ < p > < a class ="reference external image-reference " href ="https://odoo-community.org/page/development-status "> < img alt ="Beta " src ="https://img.shields.io/badge/maturity-Beta-yellow.png " /> </ a > < a class ="reference external image-reference " href ="http://www.gnu.org/licenses/agpl-3.0-standalone.html "> < img alt ="License: AGPL-3 " src ="https://img.shields.io/badge/license-AGPL--3-blue.png " /> </ a > < a class ="reference external image-reference " href ="https://github.com/OCA/web/tree/18.0/web_datetime_picker_default_time "> < img alt ="OCA/web " src ="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github " /> </ a > < a class ="reference external image-reference " href ="https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_datetime_picker_default_time "> < img alt ="Translate me on Weblate " src ="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png " /> </ a > < a class ="reference external image-reference " href ="https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0 "> < img alt ="Try me on Runboat " src ="https://img.shields.io/badge/runboat-Try%20me-875A7B.png " /> </ a > </ p >
373378< p > This module customizes the datetime picker widget and allows to define a
374379default time to be applied in case the user selects only a Date.</ p >
375380< p > For example, if a user wants to define a commitment date without having
@@ -393,7 +398,7 @@ <h1 class="title">Web Datetime Picker Default Time</h1>
393398</ ul >
394399</ div >
395400< div class ="section " id ="usage ">
396- < h1 > < a class ="toc-backref " href ="#toc-entry-1 "> Usage</ a > </ h1 >
401+ < h2 > < a class ="toc-backref " href ="#toc-entry-1 "> Usage</ a > </ h2 >
397402< p > < strong > Static Default Time</ strong > You can define the default time as follows for a
398403static value For < tt class ="docutils literal "> < span class ="pre "> widget="datetime"</ span > </ tt > :</ p >
399404< pre class ="code xml literal-block ">
@@ -409,7 +414,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
409414< pre class ="code python literal-block ">
410415< span class ="n "> start_time</ span > < span class ="o "> =</ span > < span class ="n "> field</ span > < span class ="o "> .</ span > < span class ="n "> Json</ span > < span class ="p "> (</ span > < span class ="n "> compute</ span > < span class ="o "> =</ span > < span class ="s2 "> "_compute_start_time"</ span > < span class ="p "> )</ span > < span class ="w ">
411416
412- </ span > < span class ="k "> def</ span > < span class ="nf "> _compute_start_time</ span > < span class ="p "> (</ span > < span class ="bp "> self</ span > < span class ="p "> ):</ span > < span class ="w ">
417+ </ span > < span class ="k "> def</ span > < span class =" w " > </ span > < span class ="nf "> _compute_start_time</ span > < span class ="p "> (</ span > < span class ="bp "> self</ span > < span class ="p "> ):</ span > < span class ="w ">
413418</ span > < span class ="k "> for</ span > < span class ="n "> rec</ span > < span class ="ow "> in</ span > < span class ="bp "> self</ span > < span class ="p "> :</ span > < span class ="w ">
414419</ span > < span class ="n "> rec</ span > < span class ="o "> .</ span > < span class ="n "> start_time</ span > < span class ="o "> =</ span > < span class ="p "> {</ span > < span class ="s1 "> 'hour'</ span > < span class ="p "> :</ span > < span class ="mi "> 8</ span > < span class ="p "> ,</ span > < span class ="s1 "> 'minute'</ span > < span class ="p "> :</ span > < span class ="mi "> 30</ span > < span class ="p "> ,</ span > < span class ="s1 "> 'second'</ span > < span class ="p "> :</ span > < span class ="mi "> 15</ span > < span class ="p "> }</ span >
415420</ pre >
@@ -419,29 +424,29 @@ <h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
419424</ pre >
420425</ div >
421426< div class ="section " id ="known-issues-roadmap ">
422- < h1 > < a class ="toc-backref " href ="#toc-entry-2 "> Known issues / Roadmap</ a > </ h1 >
427+ < h2 > < a class ="toc-backref " href ="#toc-entry-2 "> Known issues / Roadmap</ a > </ h2 >
423428< ul class ="simple ">
424429< li > Handle Timezone related to the default time</ li >
425430</ ul >
426431</ div >
427432< div class ="section " id ="bug-tracker ">
428- < h1 > < a class ="toc-backref " href ="#toc-entry-3 "> Bug Tracker</ a > </ h1 >
433+ < h2 > < a class ="toc-backref " href ="#toc-entry-3 "> Bug Tracker</ a > </ h2 >
429434< p > Bugs are tracked on < a class ="reference external " href ="https://github.com/OCA/web/issues "> GitHub Issues</ a > .
430435In case of trouble, please check there if your issue has already been reported.
431436If you spotted it first, help us to smash it by providing a detailed and welcomed
432437< a class ="reference external " href ="https://github.com/OCA/web/issues/new?body=module:%20web_datetime_picker_default_time%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** "> feedback</ a > .</ p >
433438< p > Do not contact contributors directly about support or help with technical issues.</ p >
434439</ div >
435440< div class ="section " id ="credits ">
436- < h1 > < a class ="toc-backref " href ="#toc-entry-4 "> Credits</ a > </ h1 >
441+ < h2 > < a class ="toc-backref " href ="#toc-entry-4 "> Credits</ a > </ h2 >
437442< div class ="section " id ="authors ">
438- < h2 > < a class ="toc-backref " href ="#toc-entry-5 "> Authors</ a > </ h2 >
443+ < h3 > < a class ="toc-backref " href ="#toc-entry-5 "> Authors</ a > </ h3 >
439444< ul class ="simple ">
440445< li > Camptocamp</ li >
441446</ ul >
442447</ div >
443448< div class ="section " id ="contributors ">
444- < h2 > < a class ="toc-backref " href ="#toc-entry-6 "> Contributors</ a > </ h2 >
449+ < h3 > < a class ="toc-backref " href ="#toc-entry-6 "> Contributors</ a > </ h3 >
445450< ul class ="simple ">
446451< li > Akim Juillerat < a class ="reference external " href ="mailto:akim.juillerat@camptocamp.com "> akim.juillerat@camptocamp.com</ a > </ li >
447452< li > Iván Todorovich < a class ="reference external " href ="mailto:ivan.todorovich@camptocamp.com "> ivan.todorovich@camptocamp.com</ a > </ li >
@@ -452,12 +457,12 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
452457</ ul >
453458</ div >
454459< div class ="section " id ="other-credits ">
455- < h2 > < a class ="toc-backref " href ="#toc-entry-7 "> Other credits</ a > </ h2 >
460+ < h3 > < a class ="toc-backref " href ="#toc-entry-7 "> Other credits</ a > </ h3 >
456461< p > The migration of this module from 16.0 to 18.0 was financially supported
457462by Camptocamp.</ p >
458463</ div >
459464< div class ="section " id ="maintainers ">
460- < h2 > < a class ="toc-backref " href ="#toc-entry-8 "> Maintainers</ a > </ h2 >
465+ < h3 > < a class ="toc-backref " href ="#toc-entry-8 "> Maintainers</ a > </ h3 >
461466< p > This module is maintained by the OCA.</ p >
462467< a class ="reference external image-reference " href ="https://odoo-community.org ">
463468< img alt ="Odoo Community Association " src ="https://odoo-community.org/logo.png " />
@@ -472,5 +477,6 @@ <h2><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h2>
472477</ div >
473478</ div >
474479</ div >
480+ </ div >
475481</ body >
476482</ html >
0 commit comments