Rohan Nayani(Open ERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-l10n-control-dev-multilang-yml-ron into 
lp:~openerp-dev/openobject-addons/trunk-l10n-control-dev.

Requested reviews:
  Rucha (Open ERP) (rpa-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-l10n-control-dev-multilang-yml-ron/+merge/74402

Hello,

      Created YML for l10_multilang module.

Thanks
RON 
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-l10n-control-dev-multilang-yml-ron/+merge/74402
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-l10n-control-dev.
=== modified file 'l10n_multilang/__openerp__.py'
--- l10n_multilang/__openerp__.py	2011-09-05 13:28:36 +0000
+++ l10n_multilang/__openerp__.py	2011-09-07 11:48:20 +0000
@@ -37,6 +37,10 @@
     'update_xml': [
                    'l10n_multilang.xml',
                 ],
+    'test': [
+             'test/l10n_multilang_copy_translations.yml',
+            ],
+
     'demo_xml': [
             'l10n_multilang_demo.xml' 
                 ],

=== added directory 'l10n_multilang/test'
=== added file 'l10n_multilang/test/l10n_multilang_copy_translations.yml'
--- l10n_multilang/test/l10n_multilang_copy_translations.yml	1970-01-01 00:00:00 +0000
+++ l10n_multilang/test/l10n_multilang_copy_translations.yml	2011-09-07 11:48:20 +0000
@@ -0,0 +1,81 @@
+-
+  In order to test the traslation flow,I start by creating a account account type.
+-
+  !record {model: account.account.type, id: account_account_type_view}:
+    name: 'View'
+    code: 'view001'
+    close_method: none
+-
+  I creating a account account template.
+-
+  !record {model: account.account.template, id: account_account_template_test_root}:
+    name: 'Chart of Account Test Root'
+    code: T0005
+    type: view
+    parent_id: chart_a_root
+    user_type: account_account_type_view
+-
+  I creating a account account child template.
+-
+  !record {model: account.account.template, id: account_account_template_test}:
+    name: 'Chart of Account Test'
+    parent_id: account_account_template_test_root
+    code: T00056
+    type: view
+    user_type: account_account_type_view
+
+-
+  I creating a account Tax code template.
+-
+  !record {model: account.tax.code.template, id: account_tax_code_template_test}:
+    name: 'Tax Template Test'
+-
+  I creating a account chart template.
+-
+  !record {model: account.chart.template, id: account_chart_template_test}:
+    name: 'Chart template Test'
+    account_root_id: account_account_template_test_root
+    tax_code_root_id: account_tax_code_template_test
+    bank_account_view_id: account_account_template_test_root
+-
+   In order to assign language first I will create Language FR
+-
+  !record {model: res.lang, id: res_lang_french0}:
+    code: fr_FR
+    date_format: '%m/%d/%Y'
+    decimal_point: '.'
+    direction: ltr
+    grouping: '[]'
+    name: French
+    time_format: '%H:%M:%S'
+    translatable: True
+-
+   Create record of translation.
+-
+  !record {model: ir.translation, id: ir_translation_french}:
+    lang: fr_FR
+    name: "account.account.template,name"
+    src: "Chart of Account Test Root"
+    value: "Tableau de Root Test du compte"
+    res_id: !eval ref("account_account_template_test")
+    type: model
+-
+  I creating a wizard record.
+-
+  !record {model: wizard.multi.charts.accounts, id: wizard_multi_charts_accounts_data}:
+    company_id: base.main_company 
+    chart_template_id: account_chart_template_test
+    lang_ids: 
+        - res_lang_french0
+-
+  Execute wizard for copy translation.
+-
+  !python {model: wizard.multi.charts.accounts}: |
+    self.execute(cr, uid, [ref("wizard_multi_charts_accounts_data")])
+-
+  Checking for translation is created or not.
+-
+  !python {model: ir.translation}: |
+    from tools.translate import _
+    search_ids = self.search(cr, uid, [('res_id', '=', ref("account_account_template_test")), ('name', '=', 'account.account.template,name')])
+    assert search_ids, _('Translation is not created!')
\ No newline at end of file

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to