Skip to content

Commit

Permalink
[FIX] l10n_es_mis_report: Fix 1146 account
Browse files Browse the repository at this point in the history
The account code 1146 [1] is not yet on the Spanish CoA, but it was created
due to a 2014 law [2] for a special provision case.

By chance, a mistake putting the same balance code as expression, that
inexisting account was mapped to an incorrect place.

On this commit, we remove the incorrect expression, and add a new section
under "III. Reservas" for reflecting this balance according [3].

[1] https://www.supercontable.com/informacion/Contabilidad/Cuenta_1146_Reserva_de_Capitalizacion..html
[2] https://www.supercontable.com/informacion/impuesto_sociedades/Articulo_25_Ley_27-2014-_de_27_de_noviembre-_del_.html
[3] https://www.supercontable.com/envios/articulos/BOLETIN_SUPERCONTABLE_12_2017_Contenido_General_2.htm
  • Loading branch information
pedrobaeza committed Jun 30, 2021
1 parent 765cae1 commit 0acb912
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion l10n_es_mis_report/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"author": "ForgeFlow, Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-spain",
"category": "Reporting",
"version": "13.0.1.1.0",
"version": "13.0.1.2.0",
"license": "AGPL-3",
"depends": ["l10n_es", "mis_builder"], # OCA/mis-builder
"data": [
Expand Down
23 changes: 21 additions & 2 deletions l10n_es_mis_report/data/mis_report_balance_normal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,8 @@
<field name="sequence">230</field>
<field name="name">es11460</field>
<field name="description">6. Otras inversiones</field>
<field name="expression">+bale[11460%]</field>
<!-- For emptying previous value -->
<field name="expression" />
<field name="auto_expand_accounts">True</field>
<field
name="auto_expand_accounts_style_id"
Expand Down Expand Up @@ -1422,7 +1423,7 @@
name="style_id"
ref="l10n_es_mis_report.mis_report_style_l10n_es_l3"
/>
<field name="expression"> +es21310 +es21320</field>
<field name="expression"> +es21310 +es21320 +es21330</field>
</record>
<record id="mis_report_kpi_es_balance_normal_21310" model="mis.report.kpi">
<field name="report_id" ref="mis_report_es_balance_normal" />
Expand Down Expand Up @@ -1462,6 +1463,24 @@
ref="l10n_es_mis_report.mis_report_style_l10n_es_l4"
/>
</record>
<record id="mis_report_kpi_es_balance_normal_21330" model="mis.report.kpi">
<field name="report_id" ref="mis_report_es_balance_normal" />
<field name="type">num</field>
<field name="compare_method">pct</field>
<field name="sequence">835</field>
<field name="name">es21330</field>
<field name="description">3. Reserva de capitalización</field>
<field name="expression">-bale[1146%]</field>
<field name="auto_expand_accounts">True</field>
<field
name="auto_expand_accounts_style_id"
ref="l10n_es_mis_report.mis_report_style_l10n_es_l4i"
/>
<field
name="style_id"
ref="l10n_es_mis_report.mis_report_style_l10n_es_l4"
/>
</record>
<record id="mis_report_kpi_es_balance_normal_21400" model="mis.report.kpi">
<field name="report_id" ref="mis_report_es_balance_normal" />
<field name="type">num</field>
Expand Down

0 comments on commit 0acb912

Please sign in to comment.