14 lines
542 B
YAML
14 lines
542 B
YAML
-
|
|
Load the french translation.
|
|
-
|
|
!python {model: ir.translation }: |
|
|
import openerp
|
|
openerp.tools.trans_load(cr, 'test_translation_import/i18n/fr.po', 'fr_FR', verbose=False)
|
|
-
|
|
Assert we have loaded the correct number of entries for the given source string.
|
|
-
|
|
!python {model: ir.translation }: |
|
|
ids = self.search(cr, uid,
|
|
[('src', '=', '1XBUO5PUYH2RYZSA1FTLRYS8SPCNU1UYXMEYMM25ASV7JC2KTJZQESZYRV9L8CGB')])
|
|
assert len(ids) == 2, "2 entries are expected, got %s instead." % len(ids)
|