← Back to team overview

openerp-india team mailing list archive

[Bug 1053970] [NEW] [6.1/trunk] Translations: creation of a record does not generate translation lines

 

Public bug reported:

Hello,

Actually, the original behavior for the translations is quite strange. 
Here it is:
    I'm logged in with en_US language.
    I create a record, with a (translatable) title 'My title'
    I check the source in database (table of the object), that's 'My title'
    I check the translation lines for the en_US language, no line
    I write on my record the title 'My title updated'
    I check the source in database, that's 'My title updated'
    I check the translation lines for the en_US language, no line

    I'm logged in with fr_FR language
    I create a record, with a (translatable) title 'Mon titre'
    I check the source in database (table of the object), that's 'Mon titre'
    I check the translation lines for the fr_FR language, no line
    I write on my record the title 'Mon titre mis à jour'
    I check the source in database, that's 'Mon titre' (unchanged)
    I check the translation lines for the fr_FR language, I have a line with 'Mon titre mis à jour'

OpenERP assumes that the en_US is the reference
language, so lets assume it completely, and generate the french
translation line directly when we enter the value.

As we can see, the write method creates translation lines for other
languages than en_US, that's correct. 
The create method does not, it has to do it.

That's weird, because, if I create a record in french, the source
will be the french value (of course), but programmatically, we do not
have any means to know that someone entered a french translation.

A simple scenario where the bug will occurs:

    User A is logged in with fr_FR
    User A creates a product with a name 'Marteau'
    User B is logged in with en_US
    User B modifies the product 'Marteau' to be 'Hammer'
    => The french translation is lost.

It won't occurs in this slightly modified scenario:

    User A is logged in with fr_FR
    User A creates a product with a name 'Martea' (typo)
    User A modifies the product 'Martea' to be 'Marteau'
    User B is logged in with en_US
    User B modifies the product 'Marteau' to be 'Hammer'
    => The french translation isn't lost, because the write has
    correctly generated the french translation line

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
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/1053970

Title:
  [6.1/trunk] Translations: creation of a record does not generate
  translation lines

Status in OpenERP Server:
  New

Bug description:
  Hello,

  Actually, the original behavior for the translations is quite strange. 
  Here it is:
      I'm logged in with en_US language.
      I create a record, with a (translatable) title 'My title'
      I check the source in database (table of the object), that's 'My title'
      I check the translation lines for the en_US language, no line
      I write on my record the title 'My title updated'
      I check the source in database, that's 'My title updated'
      I check the translation lines for the en_US language, no line

      I'm logged in with fr_FR language
      I create a record, with a (translatable) title 'Mon titre'
      I check the source in database (table of the object), that's 'Mon titre'
      I check the translation lines for the fr_FR language, no line
      I write on my record the title 'Mon titre mis à jour'
      I check the source in database, that's 'Mon titre' (unchanged)
      I check the translation lines for the fr_FR language, I have a line with 'Mon titre mis à jour'

  OpenERP assumes that the en_US is the reference
  language, so lets assume it completely, and generate the french
  translation line directly when we enter the value.

  As we can see, the write method creates translation lines for other
  languages than en_US, that's correct. 
  The create method does not, it has to do it.

  That's weird, because, if I create a record in french, the source
  will be the french value (of course), but programmatically, we do not
  have any means to know that someone entered a french translation.

  A simple scenario where the bug will occurs:

      User A is logged in with fr_FR
      User A creates a product with a name 'Marteau'
      User B is logged in with en_US
      User B modifies the product 'Marteau' to be 'Hammer'
      => The french translation is lost.

  It won't occurs in this slightly modified scenario:

      User A is logged in with fr_FR
      User A creates a product with a name 'Martea' (typo)
      User A modifies the product 'Martea' to be 'Marteau'
      User B is logged in with en_US
      User B modifies the product 'Marteau' to be 'Hammer'
      => The french translation isn't lost, because the write has
      correctly generated the french translation line

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


Follow ups

References