summaryrefslogtreecommitdiff
path: root/addons/l10n_sa
diff options
context:
space:
mode:
authorRohan Patel <rop@odoo.com>2016-05-24 11:55:16 +0530
committerYannick Tivisse <yti@odoo.com>2016-07-06 11:01:26 +0200
commitad7ca14d1b8efb5c1a4d574012bb2492914fb446 (patch)
tree12d4be9df9349160a0389508de7619c5c32a6385 /addons/l10n_sa
parent180126755e7969559f719d6f445f0c4414dfcaad (diff)
[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.
Diffstat (limited to 'addons/l10n_sa')
-rw-r--r--addons/l10n_sa/__init__.py9
-rw-r--r--addons/l10n_sa/__openerp__.py7
-rw-r--r--addons/l10n_sa/data/account_chart_template_data.xml6
3 files changed, 9 insertions, 13 deletions
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 @@
<?xml version="1.0" encoding="utf-8"?>
-<openerp>
- <data>
+<odoo>
<record id="transfer_account" model="account.account.template">
<field name="name">Transfer Account</field>
<field name="code">18</field>
@@ -21,5 +20,4 @@
<record id="transfer_account" model="account.account.template">
<field name="chart_template_id" ref="account_arabic_coa_general"/>
</record>
- </data>
-</openerp>
+</odoo>