Set procedure name field as translatable

This commit is contained in:
Nicolás López 2016-09-13 14:14:51 +02:00
parent 3f95040f82
commit 2ba6117c29
2 changed files with 9 additions and 9 deletions

View File

@ -54,7 +54,7 @@ class YieldAllocationProcedure(ModelSQL, ModelView):
"""Labor Yield Allocation Procedure"""
__name__ = 'labor.yield.allocation.procedure'
name = fields.Char('Name', required=True, select=True)
name = fields.Char('Name', required=True, select=True, translate=True)
work = fields.Many2One('timesheet.work', 'Work',
select=True, ondelete='RESTRICT',
domain=[('yield_available', '=', True)])

View File

@ -82,6 +82,14 @@ msgctxt "model:labor.yield.allocation.procedure,name:"
msgid "Labor Yield Allocation Procedure"
msgstr "Procedimiento de asignación de productividad"
msgctxt "view:labor.yield.allocate.procedure:"
msgid "Labor Yield Allocate"
msgstr "Asignar Productividad"
msgctxt "view:labor.yield.allocation.procedure:"
msgid "Labor Yield Allocation Procedure"
msgstr "Procedimiento Asignación Productividad"
msgctxt "wizard_button:labor.yield.allocate,procedure,end:"
msgid "Cancel"
msgstr "Cancelar"
@ -89,11 +97,3 @@ msgstr "Cancelar"
msgctxt "wizard_button:labor.yield.allocate,procedure,go_params:"
msgid "OK"
msgstr "Aceptar"
msgctxt "view:labor.yield.allocate.procedure:"
msgid "Labor Yield Allocate"
msgstr "Asignar Productividad"
msgctxt "view:labor.yield.allocation.procedure:"
msgid "Labor Yield Allocation Procedure"
msgstr "Procedimiento Asignación Productividad"