Hi
any one knows how to get only time in a field like fields.Time() to store only time that i select
i want a field which can store only time .
Hi
any one knows how to get only time in a field like fields.Time() to store only time that i select
i want a field which can store only time .
Hi,
You can add Time fields through this way
Python:
time = fields.Float(string='Time', compute="_compute_time") |
Xml:
<field name="time" widget="float_time"/> |
You can calculate the time using the compute function.
Thank you.
you can try it
python
time = fields.float('Duration in hours ')
view
<field name='time' widget='float_time' />
thank you but
<field name="time" widget="float_time"/>
i try it before ,it shows value in formate like (11:56) and want to store value in like (11:52:12) format, and value is selected by user like happening in datetime field.
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
1
ago. 17
|
7683 | |||
|
field does not exist PROBLEM
Resolvido
|
1
dez. 16
|
7799 | ||
|
2
abr. 26
|
6042 | |||
|
2
dez. 25
|
5280 | |||
|
trying to match fields for products
Resolvido
|
2
mar. 26
|
1803 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.