Incorrect use of partner title and shortcut

Bug #558422 reported by Ruud Riem-Vis
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Medium
Unassigned

Bug Description

When you define partner titles in "Partner->Configuration->Partner Titles", you can localize the title and give a shortcut to the partner title.
However, when you create an invoice, the title shortcut is used instead of the title itself. This creates a problem for localization as the shortcut is not localized.

It seems to me that the correct approach would be to use the localized partner title in all reports

The implementation in base/res/partner/partner.py shows indeed that the shortcut is preferred in the method _partner_title_get.
As the shortcut is a mandatory field, it will always use the shortcut.

By the way, the same reasoning holds for the _contact_title_get method.

description: updated
description: updated
Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

How about name,name key-value pair?
Thanks.

affects: openobject-addons → openobject-server
Revision history for this message
Ruud Riem-Vis (ruud-riem-vis) wrote : Re: [Bug 558422] Re: Incorrect use of partner title and shortcut

On 09.04.2010 16:06, Jay (Open ERP) wrote:
> How about name,name key-value pair?
> Thanks.
>
> ** Project changed: openobject-addons => openobject-server
>
>
That seems much better as this solves the localization issue. It also
avoids changes elsewhere. The shortcut should only be used internally
(non localized).
Thanks

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

We need a global solution here.
Better to go for browse() related changes.

Changed in openobject-server:
assignee: nobody → Olivier Dony (OpenERP) (odo)
importance: Undecided → Medium
milestone: none → 6.0
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

It has been fixed in trunk.
Thanks.

Changed in openobject-server:
assignee: Olivier Dony (OpenERP) (odo) → nobody
status: Confirmed → Fix Released
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

The title field has been set to be Many2one.
Thanks.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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