Shortcut of partner address title should be translatable

Bug #651894 reported by Alexis de Lattre
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Low
Stephane Wirtel (OpenERP)

Bug Description

Thanks to commit 2111.10.10 on June 2nd 2010, the mess with the translation of partner address titles (Mr, Mss, Ms.) is mostly fixed... but not completely. The field "shortcut" of res.partner.title should be translatable !

The enclosed patch fixes it.

Could you apply it on openobject-server/trunk ?

Revision history for this message
Alexis de Lattre (alexis-via) wrote :
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Alexis,

I did not see any further use of shortcut field. i guess it does not need to be a translated field.

Can you elaborate more? We will opt the best optimal solution.

Thanks.

Revision history for this message
Alexis de Lattre (alexis-via) wrote :

The shortcut field on res.partner.title should be used in reports (sale order, invoice, etc...) to display the name of the person.

Res.partner.titre contains :
Name | Shortcut
Sir | Mr
Madam | Ms.
Miss | Mss

So we need to translate the shortcut : for example :
English | French
Mr | M.
Ms. | Mme
Mss | Mlle

That way, I will be able to print "M. Alexis de Lattre" in a report in French, instead of "Mr Alexis de Lattre".

Changed in openobject-server:
milestone: none → 5.0.15
status: New → Fix Released
assignee: nobody → Stephane Wirtel (OpenERP) (stephane-openerp)
importance: Undecided → Low
Revision history for this message
Alexis de Lattre (alexis-via) wrote :

Stéphane,

Thanks for commiting my patch, which should fix the issue in trunk.

I noticed that you also commited it in the stable branch, but, in fact, this patch won't fix the issue in the stable branch. This is because the code in stable branch is completely flawed and translation of partner shortcuts is not really possible. The behavior of stable branch is currently the following :
- there is no link from res_partner_address to res_partner_title
- on partner address creation, the field res_partner_title.shortcut is copied to res_partner_address.title and the language used in the copy process is the language of the OpenERP user which creates the partner_address ! This is quite a non-sense... but it has always been present in v5.

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.