Odoo Help


Date field without default

on 7/5/16, 5:24 PM 442 views

The default behavior in Odoo 9 date fields type is assign the current date by giving click. Is it possible to change this behavior so that for example by giving click on the field not charge any default date ?.

Note: I'm not using the new API, I'm using version 7 compatible.

On 7/6/16, 3:39 AM

it's better for you to use the new api, I think odoo will remove the v7 api for odoo10.

with v7 it's like this:

_columns = { 'start_work': fields.datetime(string="Start Work", default='2016-07-16 02:33:25') } 

Thanks for answering; I was referring to the date that default is placed when clicking on the field in version 9.


on 7/6/16, 10:59 AM
On 7/6/16, 1:37 AM

In odoo 9 you just apply for this code,

start_work = fields.Datetime(string="Start work",default='2016-07-16 02:33:25')   

Mr.Kiruba he asked in old API version i.e 7

on 7/6/16, 3:11 AM

Your Answer

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

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 7/5/16, 5:24 PM
Seen: 442 times
Last updated: 7/6/16, 3:39 AM