Wrong country localization in report Overdue Payments

Bug #426243 reported by Ruud Riem-Vis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

If you change the user preference language, the country of a partner contact will change accordingly.
This change is visible if select a partner in the window "Partners->Partners" and then print "Labels" but the localization is not modified if you print "Overdue Statements" from the same window.

Related branches

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

Thank you a lot for reporting.
 its fixed by revision 2386 <email address hidden>.

Due to this, we came to know about one important issue.

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
Ruud Riem-Vis (ruud-riem-vis) wrote :

I upgrade to 2386 but the problem is not completely solved. If you change the user preference language, which changes the partner's country language and print the "Overdue Payments", the country does not follow.

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

Hi,

Changing the preferred language does never change partner's country language.
Its just the translated values is printed.

Thanks.

Revision history for this message
Ruud Riem-Vis (ruud-riem-vis) wrote : Re: [Bug 426243] Re: Wrong country localization in report Overdue Payments

Still if you change the user's preferred language, the country locale in the partner's contact changes to reflect the user's preferred language.
This change is transmitted to the print "Labels" action which prints the partner's country name in the user preference language. However, this change does not apply to the "Overdue Payments" action.

I would expect the same behavior for both the "Overdue Payment" and "Labels" printing.

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

Hello Ruud Riem-Vis,

Did you update your server?

The latest revno is 1859.

Thanks

Revision history for this message
Ruud Riem-Vis (ruud-riem-vis) wrote :

Yes, the server revision is 1859 but I still get the same behavior:
 - User language preferences in english
 - Partner language preferences in french
Result
 - Partner country displayed on screen in english (ok)
 - Country name in labels displayed in english
 - Country name in Overdue payment in french

Revision history for this message
Ruud Riem-Vis (ruud-riem-vis) wrote :

The "Overdue payments" follow the partner's locale.
The "Labels" follow the user preference locale.

A fundamental question is now: "What is correct?".
If you send a letter to a partner in the Netherlands for example, do you want to see on the letter the country name in the user's locale ("Pays-Bas") or in the partner's locale ("Nederland")? As the letter will be sent from the user's location, it seems more logical to me to put "Pays-Bas" on the letter's address as the postal office may not know the dutch version of the country name.

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

Hello Ruud Riem-Vis ,

In the overdue payment report it has set priority for partner locale.
This report is used to send report to the partner. So the report will always be in the partner locale.

In the Overdue payments report rml file, set the partner locale as
<para style="terp_default_8">[[ setLang(o.lang) ]]</para>

The Label report is used for company's purpose not for the partner. So will not set the partner locale in label it will always be in preference locale.

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.