Datetime format issues preventing objects from being saved

Bug #698134 reported by Aline (OpenERP)
80
This bug affects 13 people
Affects Status Importance Assigned to Milestone
Odoo GTK Client (MOVED TO GITHUB)
Fix Released
High
OpenERP sa GTK client R&D

Bug Description

trunk, web, firefox, french db, install crm

Cannot create a phone call because of the date format (invalid).

Related branches

Changed in openobject-client-web:
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
claude dunnigan (claudedunnigan) wrote :

rc2, unbuntu server 11 lts, french language
outbound works fine
inbound on web , trying to writhe the date twice, works on gtk client

Changed in openobject-client-web:
status: Confirmed → In Progress
summary: - cannot create outbound phone because of the date format
+ Datetime format issues preventing objects from being saved
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

@claude:
Ubuntu Server 11 LTS? Don't you mean 10.4? As far as I know the LTS releases so far are 6.06, 8.04 and 10.04, there is no LTS in the 11.x series (in fact, there is no 11.x series release yet)

affects: openobject-client-web → openobject-server
Changed in openobject-server:
status: In Progress → Fix Released
Changed in openobject-server:
milestone: none → 6.0
Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote :

guys, tell me please where is the fix released, so I can update and give feedback

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

On the Open ERP server

Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote :

updated the server, client and webclient and exactly the same thing.

Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Did you create a *new* database after updating the server?

Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote : RE: [Bug 698134] Re: Datetime format issues preventing objects from being saved

nope, sorry. I will do that. Will updating the base module fix this for existing databases?

Revision history for this message
Aline (OpenERP) (apr-tinyerp) wrote :

Works for me now, after creating a new database

Revision history for this message
pitititi (pitititi) wrote :

how can we do to update an existing database ?
make a sql command or only the module ?

Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote :

yep, with a new database it works for me as well. I also managed to get it working on an existing instal by changing the res_lang setting - thanks.

Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

Still have problems with it (see attachment)

addons/ : <email address hidden> 4234
addons-community/ : <email address hidden> 295
addons-extra/ : launchpad_translations_on_behalf_of_openerp-commiter-20110113051127-wt1kd3lzj27dyt0y 5158
client/ : launchpad_translations_on_behalf_of_openerp-20110113044104-b4wuyrgyelfv1mx4 1772
server/ : launchpad_translations_on_behalf_of_openerp-20110113044043-ezsi3rqpbxq13pu2 3256
web/ : <email address hidden> 4321

Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :
Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :
Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

I think this should marked as Critical/Blocker as a lot of people cannot move on with any fields of type dates

tfr (Openerp) (tfr)
Changed in openobject-server:
importance: Medium → High
status: Fix Released → Confirmed
affects: openobject-server → openobject-client
Changed in openobject-client:
milestone: 6.0 → none
status: Confirmed → Fix Released
status: Fix Released → Confirmed
assignee: OpenERP SA's Web Client R&D (openerp-dev-web) → OpenERP sa GTK client R&D (openerp-dev-gtk)
Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello Phong,

we would like to know that after updating server, did you create new database ? because according to the screenshot you provided in comment #13 the time format has %T shown and which has been fixed at server in the recent revisions but for that you need to create new database.

secondly which locale have you installed ?

Thanks,

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

and one more thing
can you tell what is the date and time format shown in your administration/Translation/Language and the language that you have selected for your user.

Thanks,

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

For the record, this was fixed in the server to remove unsupported format pattern during the installation of a new language.
The correction was introduced in server revision 3238 <email address hidden>, and further improved in revision 3250 <email address hidden>.

For existing databases, please first update to a server revision after 3250, then modify your existing language entries by making sure that the date format and time format fields only contain allowed directives (%H, %M, etc.).
The allowed directives are displayed on the form view, and the server will not allow you to save your language with a format that uses unsupported directives.

If you are unsure how to correct your current formats, you can create a new database and look at the format that is now being used for your language. Alternatively you can also refer to the technical manual of the strftime function, to see the equivalence of your current directives with the allowed ones: http://bit.ly/g3d8dk for example %T => %H:%M:%S

After correcting all res.lang entries, please restart the server and all your clients, and you should be fine.

Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

When I say "modify your existing language entries" in previous comment, I mean go to Administration>Translations>Languages, where you can edit the languages that are installed in your database.

Revision history for this message
Naresh(OpenERP) (nch-openerp) wrote :

Hello phong,

Please follow the steps as mentioned in the comments of Olivier and me.
I would close this bug and you still face the problem do not hesitate to reopen the bug.

Thanks,

Changed in openobject-client:
status: Confirmed → Fix Released
milestone: none → 6.0
Revision history for this message
OpenBMS JSC (openbmsjsc) wrote :

I updated the res_lang table (time_format) and it's ok. Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.