import openerp
from openerp.tools.translate import _

class m(openerp.osv.osv.Model):
    """ A model to provide source strings.
    """
    _name = 'test.translation.import'

    _columns = {
        'name': openerp.osv.fields.char(
            '1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB',
            size=32, help='Efgh'),
    }

    _('Ijkl')

    # With the name label above, this source string should be generated twice.
    _('1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB')

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

import openerp
from openerp.tools.translate import _

class m(openerp.osv.orm.TransientModel):
    """ A model to provide source strings.
    """
    _name = 'test.translation.import'

    _columns = {
        'name': openerp.osv.fields.char(
            '1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB',
            size=32, help='Efgh'),
    }

    _('Ijkl')

    # With the name label above, this source string should be generated twice.
    _('1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB')

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

Use TransientModel for the dummy model used in translation testing
[IMP] Use TransientModel for the dummy model used in translation testing

  import openerp
  from openerp.tools.translate import _
  
- class m(openerp.osv.osv.Model):
+ class m(openerp.osv.orm.TransientModel):
      """ A model to provide source strings.
      """
      _name = 'test.translation.import'
  
      _columns = {
          'name': openerp.osv.fields.char(
              '1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB',
              size=32, help='Efgh'),
      }
  
      _('Ijkl')
  
      # With the name label above, this source string should be generated twice.
      _('1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB')
  
  # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
  
Use TransientModel for the dummy model used in translation testing
## Code Before:
import openerp
from openerp.tools.translate import _

class m(openerp.osv.osv.Model):
    """ A model to provide source strings.
    """
    _name = 'test.translation.import'

    _columns = {
        'name': openerp.osv.fields.char(
            '1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB',
            size=32, help='Efgh'),
    }

    _('Ijkl')

    # With the name label above, this source string should be generated twice.
    _('1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB')

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

## Instruction:
Use TransientModel for the dummy model used in translation testing
## Code After:
import openerp
from openerp.tools.translate import _

class m(openerp.osv.orm.TransientModel):
    """ A model to provide source strings.
    """
    _name = 'test.translation.import'

    _columns = {
        'name': openerp.osv.fields.char(
            '1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB',
            size=32, help='Efgh'),
    }

    _('Ijkl')

    # With the name label above, this source string should be generated twice.
    _('1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB')

# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
