There is no field called fields.time in openerp 7.0 how can i achieve this to have only timeWhat is the use of context and get_default method in open erp . As i am new to this , can anyone expalin clearly with example
Note :Widget="float_time" doesnt work instead of time becoz it is allowing to type 99.00 also . Time is only 00.00 - 24.00 ???
in openerp to display time you can use field.float in python and add attribute widget="float_time for this field.
to limit to 23 hours, 59 minutes and 59 seconds, add an onchange function to test the time, return a raise if this is not the case, for convertion between float time and time date, use "import math" and method math.floor(.....).
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/23/13, 11:01 AM|
|Seen: 7143 times|
|Last updated: 4/6/16, 7:45 AM|