Odoo Help

Welcome!

This community 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.

0

Date field without default

By
Gustavo
on 7/5/16, 5:24 PM 298 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.

0
wizardz
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.

https://dl.dropboxusercontent.com/u/49982149/OpenERP/event_onclick_date_field.gif.gif

Gustavo
on 7/6/16, 10:59 AM
0
kirubanidhi
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

Annadurai
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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