product onchange functions are inconsistent (translations, code)

Bug #516100 reported by Numérigraphe
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned
5.0
Fix Released
Undecided
Unassigned

Bug Description

Using the latest 5.0-bzr:
Change user to some language other than English, then on new out invoice line, select a product.
The product name is fine in "product" but the copy of the product name is wrong in "description" : it's in Englis and has no code prefix.
Lionel

Related branches

summary: - Invoice: product's onchange doesn't translate names
+ Invoice, picking: product's onchange don't translate names
Revision history for this message
Numérigraphe (numerigraphe) wrote : Re: Invoice, picking: product's onchange don't translate names

Same problem with stocks :
- outgoing packing move : the field "name" is set to English string (but this one has the code prefix).
- incoming/internal packing move : the field "name" is not visible on the form, but in the stock move the name is set to English string (but this one has the code prefix).
Lionel.

Revision history for this message
Numérigraphe (numerigraphe) wrote : Re: product onchange functions don't translate names

Same on purchase orders.
Lionel.

summary: - Invoice, picking: product's onchange don't translate names
+ product onchange functions don't translate names
Revision history for this message
Cristian Salamea (ovnicraft) wrote :

I dont know if is necesary translate the data, i think you are using the demo for your testing.

Cristian,

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

Christian,

It is important to translate.

For example

In sale order line, the name_get function doesnt get the name in the corresponding language.

Normally the user goes blank why he gets a different name when he opens the product and a different name when he sees it in the sale order description.

Revision history for this message
Cristian Salamea (ovnicraft) wrote :

It implies translate all data what is entered? related in all objects? (invoces, orders, pickings).

Revision history for this message
Numérigraphe (numerigraphe) wrote :

Oh sorry, on invoices the translation is done actually (I forgot to indicate the partner's language). The product name is not prefixed with the code however.
Lionel.

summary: - product onchange functions don't translate names
+ product onchange functions are inconsistent (translations, code)
Revision history for this message
Numérigraphe (numerigraphe) wrote :

Christian, it's very important that strings are recorded in the locale of the partner.
Accountants may well refuse to pay an invoice if it's not written in his tongue. Customers get confused and dissatisfied by foreign languages. And the users here hardly speak more English than Klingon.
Furthermore OpenERP is bad at handling translations when records are copied.
Lionel

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

Hello Lionel,

Its working with Sale,Purchase and Invoice if Partner has a language linked.

For stock, it has been fixed by revision 2579 <email address hidden>.

Thanks.

Changed in openobject-addons:
status: Confirmed → Fix Released
Revision history for this message
Numérigraphe (numerigraphe) wrote :

Thanks Jay,
The product code is still missing as a prefix on invoices.
This makes it look strange when, for example, you add a line to an invoice originating from a sale or a packing.
Can you see to it please?
Lionel.

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

Hello Lionel,

Invoice was always displaying the normal name of the product rather than the decorated name(called from name_get or partner_ref field of product).

It has been fixed by revision 2580 <email address hidden>.

Thanks.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Lionel,

Can you give me a feedback about this bug ?

Thanks

Revision history for this message
Numérigraphe (numerigraphe) wrote :

Stéphane, I didn't understand Jay's message at first, but I checked and it works.
Thanks a lot.
Lionel

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.