Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
3 Risposte
4892 Visualizzazioni

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.

Avatar
Abbandona
Risposta migliore

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') } 
Avatar
Abbandona
Autore

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

Risposta migliore

In odoo 9 you just apply for this code,

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

Avatar
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
4
dic 23
24229
0
mar 15
6654
0
set 16
2494
2
mar 15
5277
2
mar 22
3467