I want to view a field in one format and store field in database in different format , for example for field date type ?
Your help is really appreciated
1. If you are meaning that you want to set the format of date, say '03/26/2015' or so, then you can set it under Settings => Translations => Languages..
You can set the style of format, in whichever way you want but Odoo will always store the date in its database in one single format only, and you need not worry about it...
2. And also If you are meaning, you want to change the GUI widget of a field, then yes you can do it in XML..
Say for Instance, you have a field Many2one, In XML you can set the property as widget="selection", this will change appear are selection field..
similarly if you have a datetime field, but you would to prefer to show just date, then set the widget in xml as widget="date"/
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: 3/26/15, 3:50 AM|
|Seen: 287 times|
|Last updated: 3/27/15, 6:18 PM|