[IMP] ir_translation: added help messages and comments.
authorVo Minh Thu <vmt@openerp.com>
Thu, 6 Jan 2011 13:28:30 +0000 (14:28 +0100)
committerVo Minh Thu <vmt@openerp.com>
Thu, 6 Jan 2011 13:28:30 +0000 (14:28 +0100)
bzr revid: vmt@openerp.com-20110106132830-l0jynvpdd49xurm6

bin/addons/base/ir/ir_translation.py

index a19a355..de4fd52 100644 (file)
@@ -61,8 +61,10 @@ class ir_translation(osv.osv):
         '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={}):