'type': fields.selection(TRANSLATION_TYPE, string='Type', size=16, select=True),
'src': fields.text('Source'),
'value': fields.text('Translation Value'),
- 'module': fields.char('Module', size=64), # TODO foreign key to ir_model_data
- 'xml_id': fields.char('XML Id', size=128), # idem
+ # These two columns map to ir_model_data.module and ir_model_data.name.
+ # They are used to resolve the res_id above after loading is done.
+ 'module': fields.char('Module', size=64, help='Maps to the ir_model_data for which this translation is provided.'),
+ 'xml_id': fields.char('XML Id', size=128, help='Maps to the ir_model_data for which this translation is provided.'),
}
def _auto_init(self, cr, context={}):