Remove _() from fields

This commit is contained in:
Carlos Almeida 2017-06-02 10:14:40 +01:00
parent caf5856266
commit ca0eed717a
2 changed files with 4 additions and 4 deletions

View File

@ -126,14 +126,14 @@ OCR_LANGUAGE = [('afr', 'Afrikaans'),
class IrAttachment(models.Model): class IrAttachment(models.Model):
_inherit = 'ir.attachment' _inherit = 'ir.attachment'
language = fields.Selection(OCR_LANGUAGE, _('Language')) language = fields.Selection(OCR_LANGUAGE, 'Language')
# We need to redefine index_content field to be able to update it # We need to redefine index_content field to be able to update it
# on the onchange_language() # on the onchange_language()
index_content = fields.Text(_('Indexed Content'), index_content = fields.Text('Indexed Content',
readonly=False, readonly=False,
prefetch=False) prefetch=False)
index_content_rel = fields.Text(related='index_content', index_content_rel = fields.Text(related='index_content',
string=_('Indexed Content Rel')) string='Indexed Content Rel')
@api.onchange('language') @api.onchange('language')
def onchange_language(self): def onchange_language(self):

View File

@ -5,7 +5,7 @@
from StringIO import StringIO from StringIO import StringIO
from PIL import Image, ImageDraw, ImageFont from PIL import Image, ImageDraw, ImageFont
from models.ir_attachment import _MARKER_PHRASE from document_ocr.models.ir_attachment import _MARKER_PHRASE
from odoo.tests.common import TransactionCase from odoo.tests.common import TransactionCase