[IMP] BaseModel: new `_translate` attribute to disable translations
authorOlivier Dony <odo@openerp.com>
Mon, 14 Jul 2014 14:36:48 +0000 (16:36 +0200)
committerOlivier Dony <odo@openerp.com>
Wed, 30 Jul 2014 11:24:39 +0000 (13:24 +0200)
commit77769ce74d9c659cad7ccc4757c24ebf389d3de0
tree24d7455a6420f9aea08b37ab9aa05928bf4ffa69
parent9a9ef37c65463959c5a69e560ed3e05beab2d58d
[IMP] BaseModel: new `_translate` attribute to disable translations

Can be defined to False in any model to completely
disable translations for this model, when they are
irrelevant. This is useful e.g. for test classes
that use attributes that would normally be translatable.
openerp/models.py
openerp/tools/translate.py