Skip to content

Commit

Permalink
[11.0][IMP] l10n_es_aeat_mod111: IRPF AEE 7% y 15%
Browse files Browse the repository at this point in the history
  • Loading branch information
ACheung-FactorLibre committed Jul 25, 2023
1 parent 26b31ed commit 58c4173
Show file tree
Hide file tree
Showing 6 changed files with 311 additions and 65 deletions.
4 changes: 3 additions & 1 deletion l10n_es_aeat_mod111/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{
'name': 'AEAT modelo 111',
'version': '11.0.1.1.0',
'version': '11.0.2.1.0',
'category': "Localisation/Accounting",
'author': "AvanzOSC,"
"RGB Consulting SL,"
Expand All @@ -17,6 +17,8 @@
'l10n_es_aeat',
],
'data': [
'data/account_tax_group_data.xml',
'data/account_tax_data.xml',
'data/aeat_export_mod111_data.xml',
'data/tax_code_map_mod111_data.xml',
'views/mod111_view.xml',
Expand Down
81 changes: 81 additions & 0 deletions l10n_es_aeat_mod111/data/account_tax_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="mod_111_11" model="account.account.tag">
<field name="name">mod111[11]</field>
<field name="applicability">taxes</field>
<field name="country_id" ref="base.es"/>
</record>
<record id="mod_111_12" model="account.account.tag">
<field name="name">mod111[12]</field>
<field name="applicability">taxes</field>
<field name="country_id" ref="base.es"/>
</record>
<record id="account_tax_template_p_irpf15e" model="account.tax.template">
<field name="description"/> <!-- for resetting the value on existing DBs -->
<field name="type_tax_use">purchase</field>
<field name="name">Retenciones IRPF 15% en especie</field>
<field name="chart_template_id" ref="l10n_es.account_chart_template_common"/>
<field name="amount" eval="-15"/>
<field name="amount_type">percent</field>
<field name="tax_group_id" ref="tax_group_retenciones_15"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'repartition_type': 'base',
'tag_ids': [ref('mod_111_11')],
}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('l10n_es.account_common_4751'),
'tag_ids': [ref('mod_111_12')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'repartition_type': 'base',
'tag_ids': [ref('mod_111_11')],
}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('l10n_es.account_common_4751'),
'tag_ids': [ref('mod_111_12')],
}),
]"/>
</record>
<record id="account_tax_template_p_irpf7e" model="account.tax.template">
<field name="description"/> <!-- for resetting the value on existing DBs -->
<field name="type_tax_use">purchase</field>
<field name="name">Retenciones IRPF 7% en especie</field>
<field name="chart_template_id" ref="l10n_es.account_chart_template_common"/>
<field name="amount" eval="-7"/>
<field name="amount_type">percent</field>
<field name="tax_group_id" ref="tax_group_retenciones_7"/>
<field name="invoice_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'repartition_type': 'base',
'tag_ids': [ref('mod_111_11')],
}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('l10n_es.account_common_4751'),
'tag_ids': [ref('mod_111_12')],
}),
]"/>
<field name="refund_repartition_line_ids" eval="[(5, 0, 0),
(0,0, {
'repartition_type': 'base',
'tag_ids': [ref('mod_111_11')],
}),
(0,0, {
'repartition_type': 'tax',
'account_id': ref('l10n_es.account_common_4751'),
'tag_ids': [ref('mod_111_12')],
}),
]"/>
</record>
</odoo>
11 changes: 11 additions & 0 deletions l10n_es_aeat_mod111/data/account_tax_group_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="tax_group_retenciones_15" model="account.tax.group">
<field name="name">Retenciones 15%</field>
<field name="country_id" ref="base.es"/>
</record>
<record id="tax_group_retenciones_7" model="account.tax.group">
<field name="name">Retenciones 7%</field>
<field name="country_id" ref="base.es"/>
</record>
</odoo>
19 changes: 19 additions & 0 deletions l10n_es_aeat_mod111/data/tax_code_map_mod111_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,24 @@
P_IRPF20, P_IRPF21P -->
<field name="tax_ids" eval="[(6, False, [ref('l10n_es.account_tax_template_p_irpf1'), ref('l10n_es.account_tax_template_p_irpf2'), ref('l10n_es.account_tax_template_p_irpf7'), ref('l10n_es.account_tax_template_p_irpf9'), ref('l10n_es.account_tax_template_p_irpf15'), ref('l10n_es.account_tax_template_p_irpf18'), ref('l10n_es.account_tax_template_p_irpf19'), ref('l10n_es.account_tax_template_p_irpf20'), ref('l10n_es.account_tax_template_p_irpf21p')])]"/>
</record>
<record id="aeat_mod111_map_line_11" model="l10n.es.aeat.map.tax.line">
<field name="map_parent_id" ref="aeat_mod111_map" />
<field name="field_number">11</field>
<field name="name">Rendimientos de actividades económicas (en especie) - Importe de las percepciones</field>
<field name="field_type">base</field>
<field name="sum_type">both</field>
<field name="inverse" eval="True" />
<field name="tax_ids" eval="[(6, False, [ref('l10n_es_aeat_mod111.account_tax_template_p_irpf7e'), ref('l10n_es_aeat_mod111.account_tax_template_p_irpf15e')])]"
/>
</record>
<record id="aeat_mod111_map_line_12" model="l10n.es.aeat.map.tax.line">
<field name="map_parent_id" ref="aeat_mod111_map" />
<field name="field_number">12</field>
<field name="name">Rendimientos de actividades económicas (en especie) - Importe de los ingresos a cuenta</field>
<field name="field_type">amount</field>
<field name="sum_type">both</field>
<field name="inverse" eval="False" />
<field name="tax_ids" eval="[(6, False, [ref('l10n_es_aeat_mod111.account_tax_template_p_irpf7e'), ref('l10n_es_aeat_mod111.account_tax_template_p_irpf15e')])]"/>
</record>

</odoo>
Loading

0 comments on commit 58c4173

Please sign in to comment.