[IMP] l10n_my: add tax report
Adds the SST-02 tax report to the Malaysian localisation Task id # 2868179 closes odoo/odoo#140030 Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
'icon': '/account/static/description/l10n.png',
|
||||
'countries': ['my'],
|
||||
'author': 'Odoo PS',
|
||||
'version': '1.0',
|
||||
'version': '1.1',
|
||||
'category': 'Accounting/Localizations/Account Charts',
|
||||
'description': """
|
||||
This is the base module to manage the accounting chart for Malaysia in Odoo.
|
||||
@@ -14,6 +14,9 @@ This is the base module to manage the accounting chart for Malaysia in Odoo.
|
||||
'depends': [
|
||||
'account',
|
||||
],
|
||||
'data': [
|
||||
'data/account_tax_report_data.xml',
|
||||
],
|
||||
'demo': [
|
||||
'demo/demo_company.xml',
|
||||
],
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="tax_report_vat" model="account.report">
|
||||
<field name="name">SST-02 (B2)</field>
|
||||
<field name="root_report_id" ref="account.generic_tax_report"/>
|
||||
<field name="country_id" ref="base.my"/>
|
||||
<field name="filter_fiscal_position" eval="True"/>
|
||||
<field name="availability_condition">country</field>
|
||||
<field name="column_ids">
|
||||
<record id="l10n_my_tax_report_balance" model="account.report.column">
|
||||
<field name="name">Balance</field>
|
||||
<field name="expression_label">balance</field>
|
||||
</record>
|
||||
</field>
|
||||
<field name="line_ids">
|
||||
<record id="l10n_my_sst_taxable_per_rate" model="account.report.line">
|
||||
<field name="name">11) Total Value of Tax Payable as Per Tax Rate</field>
|
||||
<field name="hierarchy_level">0</field>
|
||||
<field name="children_ids">
|
||||
<record id="l10n_my_sst_taxable_5" model="account.report.line">
|
||||
<field name="name">a) Taxable Goods at 5% Rate</field>
|
||||
<field name="code">SST_5</field>
|
||||
<field name="expression_ids">
|
||||
<record id="l10n_my_sst_taxable_5_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">A</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_taxable_10" model="account.report.line">
|
||||
<field name="name">b) Taxable Goods at 10% Rate</field>
|
||||
<field name="code">SST_10</field>
|
||||
<field name="expression_ids">
|
||||
<record id="l10n_my_sst_taxable_10_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">B</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_services_other_than_group_h" model="account.report.line">
|
||||
<field name="name">c) Taxable Services other than from Group H</field>
|
||||
<field name="code">SST_6</field>
|
||||
<field name="expression_ids">
|
||||
<record id="l10n_my_sst_services_other_than_group_h_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">C</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_services_group_h" model="account.report.line">
|
||||
<field name="name">d) Taxable Services from Group H</field>
|
||||
<field name="code">SST_H</field>
|
||||
<field name="expression_ids">
|
||||
<record id="l10n_my_sst_services_group_h_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">D</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_tax_payable_total_value" model="account.report.line">
|
||||
<field name="name">12) Total Value of Tax Payable</field>
|
||||
<field name="hierarchy_level">0</field>
|
||||
<field name="code">SST_PTV</field>
|
||||
<field name="aggregation_formula">SST_5.balance + SST_10.balance + SST_6.balance + SST_H.balance</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_tax_deduction" model="account.report.line">
|
||||
<field name="name">13) Amount of Tax Deduction</field>
|
||||
<field name="hierarchy_level">0</field>
|
||||
<field name="children_ids">
|
||||
<record id="l10n_my_sst_tax_deduction_from_cn" model="account.report.line">
|
||||
<field name="name">a) Tax Deduction from Credit Note</field>
|
||||
<field name="code">SST_CN</field>
|
||||
<field name="expression_ids">
|
||||
<record id="l10n_my_sst_tax_deduction_cn_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">CN</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_sale_tax_deduction" model="account.report.line">
|
||||
<field name="name">b) Sales Tax Deduction</field>
|
||||
<field name="code">SST_SAD</field>
|
||||
<field name="expression_ids">
|
||||
<record id="l10n_my_sst_sale_tax_deduction_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">SAD</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_service_tax_deduction" model="account.report.line">
|
||||
<field name="name">c) Service Tax Deduction</field>
|
||||
<field name="code">SST_SED</field>
|
||||
<field name="expression_ids">
|
||||
<record id="l10n_my_sst_service_tax_deduction_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">SED</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_tax_deduction_adjustment" model="account.report.line">
|
||||
<field name="name">13A) Adjustment under Sales Tax Deduction</field>
|
||||
<field name="hierarchy_level">0</field>
|
||||
<field name="code">SST_TDA</field>
|
||||
<field name="expression_ids">
|
||||
<record id="l10n_my_sst_ttax_deduction_adjustment_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">DA</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_tax_payable_total_before_penalty" model="account.report.line">
|
||||
<field name="name">14) Total Tax Payable Before Penalty Imposed</field>
|
||||
<field name="hierarchy_level">0</field>
|
||||
<field name="code">SST_PTBP</field>
|
||||
<field name="aggregation_formula">SST_PTV.balance - SST_CN.balance + SST_SAD.balance + SST_SED.balance + SST_TDA.balance</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_penalty_amount" model="account.report.line">
|
||||
<field name="name">15) Penalty Rate / Penalty Amount</field>
|
||||
<field name="hierarchy_level">0</field>
|
||||
<field name="code">SST_P</field>
|
||||
<field name="expression_ids">
|
||||
<record id="l10n_my_sst_penalty_amount_tag" model="account.report.expression">
|
||||
<field name="label">balance</field>
|
||||
<field name="engine">tax_tags</field>
|
||||
<field name="formula">P</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
<record id="l10n_my_sst_total_including_penalty" model="account.report.line">
|
||||
<field name="name">16) Total of Tax Payable Inclusive Penalty</field>
|
||||
<field name="hierarchy_level">0</field>
|
||||
<field name="aggregation_formula">SST_PTBP.balance + SST_P.balance</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
@@ -1,13 +1,13 @@
|
||||
"id","description","sequence","name","invoice_label","type_tax_use","amount_type","tax_scope","amount","price_include","tax_group_id","repartition_line_ids/factor_percent","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/account_id"
|
||||
"id","description","sequence","name","invoice_label","type_tax_use","amount_type","tax_scope","amount","price_include","tax_group_id","repartition_line_ids/factor_percent","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/account_id","repartition_line_ids/tag_ids"
|
||||
"l10n_my_tax_sale_5","SST 5%","1","5%","5%","sale","percent","consu","5.0","False","tax_group_sst","100","base","invoice",""
|
||||
"","","","","","","","","","","","100","tax","invoice","l10n_my_2213"
|
||||
"","","","","","","","","","","",100,"tax","invoice","l10n_my_2213","+A"
|
||||
"","","","","","","","","","","","100",base,"refund",
|
||||
"","","","","","","","","","","","100","tax","refund","l10n_my_2213","+CN"
|
||||
"l10n_my_tax_sale_6","SST 6%","1","6%","6%","sale","percent","service","6.0","False","tax_group_sst",100,"base","invoice",""
|
||||
"","","","","","","","","","","","100","tax","invoice","l10n_my_2213","+C"
|
||||
"","","","","","","","","","","","100","base","refund",""
|
||||
"","","","","","","","","","","","100","tax","refund","l10n_my_2213"
|
||||
"l10n_my_tax_sale_6","SST 6%","1","6%","6%","sale","percent","service","6.0","False","tax_group_sst","100","base","invoice",""
|
||||
"","","","","","","","","","","","100","tax","invoice","l10n_my_2213"
|
||||
"","","","","","","","","","","","100","base","refund",""
|
||||
"","","","","","","","","","","","100","tax","refund","l10n_my_2213"
|
||||
"","","","","","","","","","","","100","tax","refund","l10n_my_2213","+CN"
|
||||
"l10n_my_tax_sale_10","SST 10%","1","10%","10%","sale","percent","consu","10.0","False","tax_group_sst","100","base","invoice",""
|
||||
"","","","","","","","","","","","100","tax","invoice","l10n_my_2213"
|
||||
"","","","","","","","","","","","100","tax","invoice","l10n_my_2213","+B"
|
||||
"","","","","","","","","","","","100","base","refund",""
|
||||
"","","","","","","","","","","","100","tax","refund","l10n_my_2213"
|
||||
"","","","","","","","","","","","100","tax","refund","l10n_my_2213","+CN"
|
||||
|
||||
|
@@ -0,0 +1,101 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * l10n_my
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 17.0+e\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-11-02 11:38+0000\n"
|
||||
"PO-Revision-Date: 2023-11-02 11:38+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_taxable_per_rate
|
||||
msgid "11) Total Value of Tax Payable as Per Tax Rate"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_payable_total_value
|
||||
msgid "12) Total Value of Tax Payable"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_deduction
|
||||
msgid "13) Amount of Tax Deduction"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_deduction_adjustment
|
||||
msgid "13A) Adjustment under Sales Tax Deduction"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_payable_total_before_penalty
|
||||
msgid "14) Total Tax Payable Before Penalty Imposed"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_penalty_amount
|
||||
msgid "15) Penalty Rate / Penalty Amount"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_total_including_penalty
|
||||
msgid "16) Total of Tax Payable Inclusive Penalty"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:ir.model,name:l10n_my.model_account_chart_template
|
||||
msgid "Account Chart Template"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.column,name:l10n_my.l10n_my_tax_report_balance
|
||||
msgid "Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report,name:l10n_my.tax_report_vat
|
||||
msgid "SST-02 (B2)"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_deduction_from_cn
|
||||
msgid "a) Tax Deduction from Credit Note"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_taxable_5
|
||||
msgid "a) Taxable Goods at 5% Rate"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_sale_tax_deduction
|
||||
msgid "b) Sales Tax Deduction"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_taxable_10
|
||||
msgid "b) Taxable Goods at 10% Rate"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_service_tax_deduction
|
||||
msgid "c) Service Tax Deduction"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_services_other_than_group_h
|
||||
msgid "c) Taxable Services other than from Group H"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_services_group_h
|
||||
msgid "d) Taxable Services from Group H"
|
||||
msgstr ""
|
||||
@@ -0,0 +1,101 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * l10n_my
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 17.0+e\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-11-02 11:39+0000\n"
|
||||
"PO-Revision-Date: 2023-11-02 11:39+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_taxable_per_rate
|
||||
msgid "11) Total Value of Tax Payable as Per Tax Rate"
|
||||
msgstr "11) Jumlah Nilai Jualan dan Cukai Yang Kena dibayar Mengikut Kadar Cukai"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_payable_total_value
|
||||
msgid "12) Total Value of Tax Payable"
|
||||
msgstr "12) Jumlah Nilai Cukai Yang Kena Dibayar"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_deduction
|
||||
msgid "13) Amount of Tax Deduction"
|
||||
msgstr "13) Amaun Potongan Cukai"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_deduction_adjustment
|
||||
msgid "13A) Adjustment under Sales Tax Deduction"
|
||||
msgstr "13A) Pelarasan di bawah Potong Cukai Jualan"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_payable_total_before_penalty
|
||||
msgid "14) Total Tax Payable Before Penalty Imposed"
|
||||
msgstr "14) Jumlah Cukai Yang Kena Dibayar Seblum Penalti Dikenakan"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_penalty_amount
|
||||
msgid "15) Penalty Rate / Penalty Amount"
|
||||
msgstr "15) Kadar Penalti"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_total_including_penalty
|
||||
msgid "16) Total of Tax Payable Inclusive Penalty"
|
||||
msgstr "16) Jumlah Cukai Kena Dibayar Termasuk Penalti"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:ir.model,name:l10n_my.model_account_chart_template
|
||||
msgid "Account Chart Template"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.column,name:l10n_my.l10n_my_tax_report_balance
|
||||
msgid "Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report,name:l10n_my.tax_report_vat
|
||||
msgid "SST-02 (B2)"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_tax_deduction_from_cn
|
||||
msgid "a) Tax Deduction from Credit Note"
|
||||
msgstr "a) Potongan Cukai Melalui Nota Kredit"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_taxable_5
|
||||
msgid "a) Taxable Goods at 5% Rate"
|
||||
msgstr "a) Barang Bercukai Berkadar 5%"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_sale_tax_deduction
|
||||
msgid "b) Sales Tax Deduction"
|
||||
msgstr "b) Potongan Cukai Jualan"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_taxable_10
|
||||
msgid "b) Taxable Goods at 10% Rate"
|
||||
msgstr "b) Barang Bercukai Berkadar 10%"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_service_tax_deduction
|
||||
msgid "c) Service Tax Deduction"
|
||||
msgstr "c) Potongan Cukai Perkhidmatan"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_services_other_than_group_h
|
||||
msgid "c) Taxable Services other than from Group H"
|
||||
msgstr "c) Perkhidmatan Bercukai selain dari Kumpulan H"
|
||||
|
||||
#. module: l10n_my
|
||||
#: model:account.report.line,name:l10n_my.l10n_my_sst_services_group_h
|
||||
msgid "d) Taxable Services from Group H"
|
||||
msgstr "d) Perkhidmatan Bercukai dari Kumpulan H"
|
||||
@@ -0,0 +1,9 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import api, SUPERUSER_ID
|
||||
|
||||
|
||||
def migrate(cr, version):
|
||||
""" Update taxes for existing companies, in order to apply the new tags to them. """
|
||||
env = api.Environment(cr, SUPERUSER_ID, {})
|
||||
for company in env['res.company'].search([('chart_template', '=', 'my')]):
|
||||
env['account.chart.template'].try_loading('my', company)
|
||||
Reference in New Issue
Block a user