← Back to team overview

openerp-india team mailing list archive

[Bug 974241] [NEW] When inheriting and changing a field name the translation file does not pick this up.

 

Public bug reported:

Simple module:

from osv import osv, fields
class my_stock_move(osv.osv):
    _inherit = 'stock.move'

    _columns = {
        'product_qty': fields.float('Incoming Qty', digits=(16,2)),
    }

Install this module then make the module pot file (via
Translations->Import/Export->Export Translation) pick no language and PO
file format.

The file generated will *not* contain following lines as we would
expect:

#. module: my_module_name
#: field:stock.move,product_qty:0
msgid "Incoming Qty"
msgstr ""

When adding this manually and updating the module again the translations
work (when this section is added to a language .po file)

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

** Project changed: openobject-client-web => openobject-server

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

Title:
  When inheriting and changing a field name the translation file does
  not pick this up.

Status in OpenERP Server:
  New

Bug description:
  Simple module:

  from osv import osv, fields
  class my_stock_move(osv.osv):
      _inherit = 'stock.move'

      _columns = {
          'product_qty': fields.float('Incoming Qty', digits=(16,2)),
      }

  Install this module then make the module pot file (via
  Translations->Import/Export->Export Translation) pick no language and
  PO file format.

  The file generated will *not* contain following lines as we would
  expect:

  #. module: my_module_name
  #: field:stock.move,product_qty:0
  msgid "Incoming Qty"
  msgstr ""

  When adding this manually and updating the module again the
  translations work (when this section is added to a language .po file)

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


Follow ups

References