← Back to team overview

openerp-india team mailing list archive

[Bug 1137101] Re: On Sale Order Lines, it is rendered the product_template.name and the English Translation of product name instead of the current translation

 

*** This bug is a duplicate of bug 1102269 ***
    https://bugs.launchpad.net/bugs/1102269

** Project changed: openobject-addons => openobject-server

** This bug has been marked a duplicate of bug 1102269
   [trunk/7.0] Reception description not in local language

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1137101

Title:
  On Sale Order Lines, it is rendered the product_template.name and the
  English Translation of product name instead of the current translation

Status in OpenERP Server:
  New

Bug description:
  On OpenERP 6.0.4, running on Ubuntu 12.04 32bits, python 2.7, Postgres
  8.4, with Sales module installed.

  When working will multiple languages (lets say English and Spanish),
  if user's language is Spanish, after the user creates a new product by
  duplicating an existing one (click on duplicate on product form and
  change the name). Then, when the users create a sales order with that
  product specific product the sale order line gets a wrong product
  description!... the product description corresponds to the english
  translation instead of the spanish translation.

  Right now we tried correcting this by use of the module
  base_translation_copy but this one is not working.

  So far we found a temporary solution by the following SQL query (we
  already had several hundreds of products affected) which should work
  when only one language is considered important (in my case only
  spanish was considered important). Maybe we should put this in the
  scheduler like the base_translation_copy module was supposed to work.

  UPDATE public.ir_translation
  SET src = value
  WHERE name = 'product.template,name'
  AND type = 'model'
  AND res_id != 0
  AND lang = 'es_ES'

  UPDATE product_template
  SET name = name_template
  FROM product_product
  WHERE product_template.id = product_tmpl_id
  AND name_template != name

  It gets worst when copying or renaming objects due user dont imputing
  english translation

  Best Regards,

  Andres Calle
  andres.calle@xxxxxxxxxxxxx
  TRESCLOUD Cía Ltda

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1137101/+subscriptions