From ad7ca14d1b8efb5c1a4d574012bb2492914fb446 Mon Sep 17 00:00:00 2001 From: Rohan Patel Date: Tue, 24 May 2016 11:55:16 +0530 Subject: [MIG] l10n_* : Migrated to new API [MIG] l10n_ae : Migrated to new API. [MIG] l10n_ar : Migrated to new API. [MIG] l10n_at : Migrated to new API. [MIG] l10n_au : Migrated to new API. [MIG] l10n_be : Migrated to new API. [MIG] l10n_bo : Migrated to new API. [MIG] l10n_br : Migrated to new API. [MIG] l10n_ca : Migrated to new API. [MIG] l10n_ch : Migrated to new API. [MIG] l10n_cl : Migrated to new API. [MIG] l10n_cn : Migrated to new API. [MIG] l10n_co : Migrated to new API. [MIG] l10n_cr : Migrated to new API. [MIG] l10n_de : Migrated to new API. [MIG] l10n_de_skr03 : Migrated to new API. [MIG] l10n_de_skr04 : Migrated to new API. [MIG] l10n_cn_small_business : Migrated to new API. [MIG] l10n_cn_standard : Migrated to new API. [MIG] l10n_do : Migrated to new API. [MIG] l10n_ec : Migrated to new API. [MIG] l10n_es : Migrated to new API. [MIG] l10n_et : Migrated to new API. [MIG] l10n_fr : Migrated to new API. [MIG] l10n_generic_coa : Migrated to new API. [MIG] l10n_gr : Migrated to new API. [MIG] l10n_gt : Migrated to new API. [MIG] l10n_hn : Migrated to new API. [MIG] l10n_hr : Migrated to new API. [MIG] l10n_hu : Migrated to new API. [MIG] l10n_in : Migrated to new API. [MIG] l10n_it : Migrated to new API. [MIG] l10n_jp : Migrated to new API. [MIG] l10n_lu : Migrated to new API. [MIG] l10n_ma : Migrated to new API. [MIG] l10n_mx : Migrated to new API. [MIG] l10n_nl : Migrated to new API. [MIG] l10n_no : Migrated to new API. [MIG] l10n_nz : Migrated to new API. [MIG] l10n_pa : Migrated to new API. [MIG] l10n_pe : Migrated to new API. [MIG] l10n_pl : Migrated to new API. [MIG] l10n_ro : Migrated to new API. [MIG] l10n_sa : Migrated to new API. [MIG] l10n_sg : Migrated to new API. [MIG] l10n_si : Migrated to new API. [MIG] l10n_syscohada : Migrated to new API. [MIG] l10n_th : Migrated to new API. [MIG] l10n_tr : Migrated to new API. [MIG] l10n_uk : Migrated to new API. [MIG] l10n_us : Migrated to new API. [MIG] l10n_uy : Migrated to new API. [MIG] l10n_ve : Migrated to new API. [MIG] l10n_vn : Migrated to new API. --- addons/l10n_sa/__init__.py | 9 +++++---- addons/l10n_sa/__openerp__.py | 7 ++----- addons/l10n_sa/data/account_chart_template_data.xml | 6 ++---- 3 files changed, 9 insertions(+), 13 deletions(-) (limited to 'addons/l10n_sa') diff --git a/addons/l10n_sa/__init__.py b/addons/l10n_sa/__init__.py index 924ad495ebb..3b04000c548 100644 --- a/addons/l10n_sa/__init__.py +++ b/addons/l10n_sa/__init__.py @@ -1,7 +1,8 @@ -# coding: utf-8 +# -*- encoding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. -from openerp import SUPERUSER_ID +from odoo import api, SUPERUSER_ID def load_translations(cr, registry): - chart_template = registry['ir.model.data'].xmlid_to_object(cr, SUPERUSER_ID, 'l10n_sa.account_arabic_coa_general') - chart_template.process_coa_translations() \ No newline at end of file + env = api.Environment(cr, SUPERUSER_ID, {}) + env.ref('l10n_sa.account_arabic_coa_general').process_coa_translations() diff --git a/addons/l10n_sa/__openerp__.py b/addons/l10n_sa/__openerp__.py index d7c6b74203a..1a1e0bcc8d9 100644 --- a/addons/l10n_sa/__openerp__.py +++ b/addons/l10n_sa/__openerp__.py @@ -1,4 +1,5 @@ -# coding: utf-8 +# -*- encoding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'Saudi Arabia - Accounting', @@ -20,9 +21,5 @@ In future this module will include some payroll rules for ME . 'data/l10n_sa_chart_data.xml', 'data/account_chart_template_data.yml', ], - 'demo': [], - 'test': [], - 'installable': True, - 'auto_install': False, 'post_init_hook': 'load_translations', } diff --git a/addons/l10n_sa/data/account_chart_template_data.xml b/addons/l10n_sa/data/account_chart_template_data.xml index d90eaa1779f..6038be6a328 100644 --- a/addons/l10n_sa/data/account_chart_template_data.xml +++ b/addons/l10n_sa/data/account_chart_template_data.xml @@ -1,6 +1,5 @@ - - + Transfer Account 18 @@ -21,5 +20,4 @@ - - + -- cgit v1.2.3