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

Urgent: How to view a field in one format and store it in a different format ?

By
salman
on 3/26/15, 3:50 AM 290 views

I want to view a field in one format and store field in database in different format , for example for field date type ?

I think this is done through javascript.

Your help is really appreciated

0

deep

--deep--
1617
| 5 4 7
Bengaluru, India
--deep--

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

deep
On 3/27/15, 7:36 AM

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"/

 

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: 3/26/15, 3:50 AM
Seen: 290 times
Last updated: 3/27/15, 6:18 PM