[trunk/7.0]Unrecognize translated month names in date fields

Bug #1128572 reported by Ahmad Khayyat
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Confirmed
Low
OpenERP R&D Web Team

Bug Description

In a date field, after choosing a date from the date picker, the chosen date is inserted into the date text field after translation. The system does not recognize the translated date and validation fails, preventing any action on those date fields.

Example:
Using the Arabic language..
Create a new Sales Order, fill in a customer and a product, leave the default date or pick one using the date picker, then click "Update" next to the total.
I get:

The following fields are invalid:
التاريخ (Translation: Date)

When the English language is used, dates are all numeric.
When the Arabic language is used, months are strings (month name).

If I manually change the month name to the English name (string), it is accepted.

Related branches

Revision history for this message
Ahmad Khayyat (akhayyat) wrote :

Actually this is not the same bug as bug #1101072.

Bug #1101072 is about the date picker dialog being untranslated.

This bug is about the result of the date picker (after picking a date) being translated but unrecognized by the system as a date.

Revision history for this message
Ahmad Khayyat (akhayyat) wrote :

The branch mentioned in bug #1101072 does not exist (Launchpad message: No such branch: 'trunk-bug-1101072-bth').

Given that the buggy symptom reported in this bug is different from that reported in bug #1101072, why is this bug considered a duplicate?

I'm still seeing this bug in an up-to-date bzr checkout.

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello Ahmad Khayyat,

I have checked you issue with latest trunk as well as with 7.0, but its working fine for me. So, Would you please try with latest code and also provide more information regarding your issue.

I hope you understand.

Thanks & Waiting for your answer.

Changed in openerp-web:
status: New → Incomplete
Revision history for this message
Ahmad Khayyat (akhayyat) wrote :

I'm still seeing this issue in a fresh 7.0 checkout:

server:
  parent branch: http://bazaar.launchpad.net/~openerp/openobject-server/7.0/
  revno: 4878

web:
  parent branch: http://bazaar.launchpad.net/~openerp/openerp-web/7.0/
  revno: 3817

addons:
  parent branch: http://bazaar.launchpad.net/~openerp/openobject-addons/7.0/
  revno: 8813

Steps to reproduce:
-----------------------

1. Install the Arabic language:
    Settings > Translations > Load a Translation > Languate: Arabic

2. Change the user's language to Arabic in user Preferences

3. Navigate to a form that has a date field. For example, create a new Sales Order:
    Sales (المبيعات) > Sales Orders (أوامر المبيعات) > Create (إنشاء)

4. Fill in any required fields to pass validation. In a Sales Order, choose an arbitrary customer and a product.

5. Trigger form validation. In a Sales Order, click Update (تحديث) next to the total (المجموع) at the bottom of the form.

You will get a message stating that the date field is invalid. Screenshot attached. The field listed in the message is the date field.

You will notice that the date field has the month _name_ in Arabic, which the system does not recognize as a valid date.

When using the English language, the month is numeric. When using the Arabic language, the month name is used instead of its number.

Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :

Hello Ahmad Khayyat,

Thanks for your quick replay.

I have tested your issue and currently its working fine in runbot for both trunk and 7.0.But when I checked it with localhost:8069 I have faced same issue as you define in your bug report. So, For that I am confirming this issue.

Thank You.

Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: Incomplete → Confirmed
summary: - Unrecognize translated month names in date fields
+ [trunk/7.0]Unrecognize translated month names in date fields
Revision history for this message
Cubic ERP (cubicerp) wrote :

Hello, check this patch.

Best Regards

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.