Skip to content

Commit

Permalink
[IMP] l10n_ru: pre-commit execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Katulos committed Jan 16, 2025
1 parent cbe8295 commit 5149e78
Show file tree
Hide file tree
Showing 19 changed files with 655 additions and 0 deletions.
86 changes: 86 additions & 0 deletions l10n_ru/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
===================
Russia - Accounting
===================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:14dc1ff1f7f0e1de65a54397de16f2347d6f579da80b0d2acd6359b20f824230
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--russia-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-russia/tree/17.0/l10n_ru
:alt: OCA/l10n-russia
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-russia-17-0/l10n-russia-17-0-l10n_ru
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-russia&target_branch=17.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This is the base module to manage the accounting chart for Russia in Odoo.
--------------------------------------------------------------------------

Возможности:

- План счетов бухгалтерского учёта финансово-хозяйственной
деятельности организаций, утверждённый Приказом Минфина РФ от
31.10.2000 года № 94н

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-russia/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-russia/issues/new?body=module:%20l10n_ru%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* CodUP
* Katulos

Contributors
------------

- CodUP <[email protected]> (<`http://codup.com\\> <http://codup.com\>>`__)
- Katulos <[email protected]>
(<`http://github.com/Katulos\\> <http://github.com/Katulos\>>`__)

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/l10n-russia <https://github.com/OCA/l10n-russia/tree/17.0/l10n_ru>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file added l10n_ru/__init__.py
Empty file.
20 changes: 20 additions & 0 deletions l10n_ru/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Russia - Accounting",
"version": "16.0.1.0.0",
"category": "Accounting/Localizations/Account Charts",
"author": "CodUP, Katulos, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-russia",
"license": "AGPL-3",
"depends": ["account"],
"data": [
"data/account_account_tag_data.xml",
"data/account_chart_template_data.xml",
"data/account.account.template.csv",
"data/account_tax_report_line.xml",
"data/account_tax_group_data.xml", #
"data/account_tax_template_data.xml",
"data/l10n_ru_chart_post_data.xml",
"data/account_fiscal_position_template_data.xml",
"data/account_chart_template_configuration_data.xml",
],
}
337 changes: 337 additions & 0 deletions l10n_ru/data/account.account.template.csv

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions l10n_ru/data/account_account_tag_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Tags for accounts -->
</odoo>
6 changes: 6 additions & 0 deletions l10n_ru/data/account_chart_template_configuration_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<function model="account.chart.template" name="try_loading">
<value eval="[ref('l10n_ru_account_chart_template')]" />
</function>
</odoo>
25 changes: 25 additions & 0 deletions l10n_ru/data/account_chart_template_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- pylint:disable=duplicate-xml-record-id -->
<!-- oca-hooks:disable=xml-duplicate-record-id -->
<odoo>
<!-- Chart template -->
<record id="ru_acc_000" model="account.account.template">
<field name="code">000</field>
<field name="name">Вспомогательный счет</field>
<field name="reconcile" eval='True' />
<field name="user_type_id" ref="account.data_account_type_current_assets" />
</record>

<record id="l10n_ru_account_chart_template" model="account.chart.template">
<field name="name">План счетов РФ</field>
<field name="code_digits">1</field>
<field name="bank_account_code_prefix">999</field>
<field name="cash_account_code_prefix">999</field>
<field name="transfer_account_code_prefix">000</field>
<field name="currency_id" ref="base.RUB" />
</record>

<record id="ru_acc_000" model="account.account.template">
<field name="chart_template_id" ref="l10n_ru_account_chart_template" />
</record>
</odoo>
12 changes: 12 additions & 0 deletions l10n_ru/data/account_fiscal_position_template_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<!-- # Fiscal positions -->
<record id="russia" model="account.fiscal.position.template">
<field name="name">Россйская Федерация</field>
<field name="chart_template_id" ref="l10n_ru_account_chart_template" />
<field name="country_id" ref="base.ru" />
<field name="auto_apply" eval="True" />
<field name="vat_required" eval="True" />
<field name="sequence">1</field>
</record>
</odoo>
16 changes: 16 additions & 0 deletions l10n_ru/data/account_tax_group_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Account Tax Group -->
<record id="tax_group_vat_0" model="account.tax.group">
<field name="name">НДС 0%</field>
</record>
<record id="tax_group_vat_10" model="account.tax.group">
<field name="name">НДС 10%</field>
</record>
<record id="tax_group_vat_20" model="account.tax.group">
<field name="name">НДС 20%</field>
</record>
<record id="tax_group_usn_6" model="account.tax.group">
<field name="name">УСН 6%</field>
</record>
</odoo>
13 changes: 13 additions & 0 deletions l10n_ru/data/account_tax_report_line.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="vat_report" model="account.tax.report">
<field name="name">Отчет по НДС</field>
<field name="country_id" ref="base.ru" />
</record>

<record id="tax_report_sales_title" model="account.tax.report.line">
<field name="name">Налог на продажи</field>
<field name="sequence">0</field>
<field name="report_id" ref="vat_report" />
</record>
</odoo>
80 changes: 80 additions & 0 deletions l10n_ru/data/account_tax_template_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo noupdate="0">
<!-- account.tax.template -->
<record id="purchase_nds_0" model="account.tax.template">
<field name="chart_template_id" ref="l10n_ru_account_chart_template" />
<field name="name">НДС 0%</field>
<field name="price_include" eval="1" />
<field name="amount">0</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">purchase</field>
<field name="tax_group_id" ref="tax_group_vat_0" />
<field name="active" eval="False" />
</record>

<record id="sale_nds_0" model="account.tax.template">
<field name="chart_template_id" ref="l10n_ru_account_chart_template" />
<field name="name">НДС 0%</field>
<field name="price_include" eval="1" />
<field name="amount">0</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">sale</field>
<field name="tax_group_id" ref="tax_group_vat_0" />
<field name="active" eval="False" />
</record>

<record id="purchase_nds_10" model="account.tax.template">
<field name="chart_template_id" ref="l10n_ru_account_chart_template" />
<field name="name">НДС 10%</field>
<field name="price_include" eval="1" />
<field name="amount">10</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">purchase</field>
<field name="tax_group_id" ref="tax_group_vat_10" />
<field name="active" eval="False" />
</record>

<record id="sale_nds_10" model="account.tax.template">
<field name="chart_template_id" ref="l10n_ru_account_chart_template" />
<field name="name">НДС 10%</field>
<field name="price_include" eval="1" />
<field name="amount">10</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">sale</field>
<field name="tax_group_id" ref="tax_group_vat_10" />
<field name="active" eval="False" />
</record>

<record id="purchase_nds_20" model="account.tax.template">
<field name="chart_template_id" ref="l10n_ru_account_chart_template" />
<field name="name">НДС 20%</field>
<field name="price_include" eval="1" />
<field name="amount">20</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">purchase</field>
<field name="tax_group_id" ref="tax_group_vat_20" />
<field name="active" eval="False" />
</record>

<record id="sale_nds_20" model="account.tax.template">
<field name="chart_template_id" ref="l10n_ru_account_chart_template" />
<field name="name">НДС 20%</field>
<field name="price_include" eval="1" />
<field name="amount">20</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">sale</field>
<field name="tax_group_id" ref="tax_group_vat_20" />
<field name="active" eval="False" />
</record>

<record id="sale_usn_6" model="account.tax.template">
<field name="chart_template_id" ref="l10n_ru_account_chart_template" />
<field name="name">УСН 6%</field>
<field name="price_include" eval="1" />
<field name="amount">6</field>
<field name="amount_type">percent</field>
<field name="type_tax_use">sale</field>
<field name="tax_group_id" ref="tax_group_usn_6" />
</record>

</odoo>
9 changes: 9 additions & 0 deletions l10n_ru/data/l10n_ru_chart_post_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="l10n_ru_account_chart_template" model="account.chart.template">
<field name="property_account_receivable_id" ref="ru_acc_62_01" />
<field name="property_account_payable_id" ref="ru_acc_60_01" />
<field name="property_account_expense_categ_id" ref="ru_acc_41_01" />
<field name="property_account_income_categ_id" ref="ru_acc_90_01_1" />
</record>
</odoo>
14 changes: 14 additions & 0 deletions l10n_ru/i18n/l10n_ru.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \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"

3 changes: 3 additions & 0 deletions l10n_ru/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
2 changes: 2 additions & 0 deletions l10n_ru/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- CodUP \<[email protected]\> (\<http://codup.com\>)
- Katulos \<[email protected]\> (\<http://github.com/Katulos\>)
7 changes: 7 additions & 0 deletions l10n_ru/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## This is the base module to manage the accounting chart for Russia in Odoo.

Возможности:

> - План счетов бухгалтерского учёта финансово-хозяйственной
> деятельности организаций, утверждённый Приказом Минфина РФ от
> 31.10.2000 года № 94н
Binary file added l10n_ru/static/description/account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added l10n_ru/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions l10n_ru/static/description/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<section class="oe_container">
<div class="oe_row oe_spaced">
<h2 class="oe_slogan">Бухгалтерия для РФ</h2>
<div class="oe_span6">
<p class="oe_mt32">
Модуль управления планом счетов РФ в Odoo.
</p>
<p class="oe_mt32">
Возможности:
<ul>
<li>План счетов бухгалтерского учёта финансово-хозяйственной деятельности организаций, утверждённый Приказом Минфина РФ от 31.10.2000 года № 94н</li>
</ul>
</p>
</div>
<div class="oe_span6">
<div class="oe_row_img oe_centered">
<img class="oe_picture" src="plan.png">
</div>
</div>
</div>
</section>

0 comments on commit 5149e78

Please sign in to comment.