Skip to content

Commit

Permalink
[11.0][IMP] l10n_es_aeat_mod303_oss: 2024/10
Browse files Browse the repository at this point in the history
Depends on #3785
  • Loading branch information
ljsalvatierra-factorlibre committed Nov 19, 2024
1 parent abc897b commit 49b6377
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions l10n_es_aeat_mod303_oss/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"data": [
"data/2021-07/l10n_es_aeat_map_tax_line.xml",
"data/2023/l10n_es_aeat_map_tax_line.xml",
"data/2024/l10n_es_aeat_map_tax_line.xml",
],
"installable": True,
'autoinstall': True,
Expand Down
46 changes: 46 additions & 0 deletions l10n_es_aeat_mod303_oss/data/2024/l10n_es_aeat_map_tax_line.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2021 PESOL - Angel Moya
Copyright 2021 FactorLibre - Rodrigo Bonilla
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="aeat_mod303_2024_10_map_line_123" model="l10n.es.aeat.map.tax.line">
<field name="map_parent_id" ref="l10n_es_aeat_mod303.aeat_mod303_2024_10_map"/>
<field name="field_number">123</field>
<field name="name">Operaciones no sujetas por reglas de localización acogidas a la OSS</field>
<field name="move_type">all</field>
<field name="field_type">base</field>
<field name="sum_type">both</field>
<field name="inverse" eval="False"/>
<field name="tax_ids" eval="False"/>
</record>
<record id="aeat_mod303_2024_10_map_line_124" model="l10n.es.aeat.map.tax.line">
<field name="map_parent_id" ref="l10n_es_aeat_mod303.aeat_mod303_2024_10_map"/>
<field name="field_number">124</field>
<field name="name">OSS. Operaciones sujetas y acogidas a la OSS</field>
<field name="move_type">all</field>
<field name="field_type">base</field>
<field name="sum_type">both</field>
<field name="inverse" eval="False"/>
<field name="tax_ids" eval="False"/>
</record>
<record id="aeat_mod303_2024_10_map_line_126" model="l10n.es.aeat.map.tax.line">
<field name="map_parent_id" ref="l10n_es_aeat_mod303.aeat_mod303_2024_10_map"/>
<field name="field_number">126</field>
<field name="name">Operaciones no sujetas por reglas de localización acogidas a la OSS</field>
<field name="move_type">all</field>
<field name="field_type">base</field>
<field name="sum_type">both</field>
<field name="inverse" eval="False"/>
<field name="tax_ids" eval="False"/>
</record>
<record id="aeat_mod303_2024_10_map_line_127" model="l10n.es.aeat.map.tax.line">
<field name="map_parent_id" ref="l10n_es_aeat_mod303.aeat_mod303_2024_10_map"/>
<field name="field_number">127</field>
<field name="name">OSS. Operaciones sujetas y acogidas a la OSS</field>
<field name="move_type">all</field>
<field name="field_type">base</field>
<field name="sum_type">both</field>
<field name="inverse" eval="False"/>
<field name="tax_ids" eval="False"/>
</record>
</odoo>
2 changes: 2 additions & 0 deletions l10n_es_aeat_mod303_oss/models/mod303.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def get_taxes_from_map(self, map_line):
self.env.ref('l10n_es_aeat_mod303_oss.aeat_mod303_202107_map_line_126'),
self.env.ref('l10n_es_aeat_mod303_oss.aeat_mod303_2023_map_line_123'),
self.env.ref('l10n_es_aeat_mod303_oss.aeat_mod303_2023_map_line_126'),
self.env.ref('l10n_es_aeat_mod303_oss.aeat_mod303_2024_10_map_line_123'),
self.env.ref('l10n_es_aeat_mod303_oss.aeat_mod303_2024_10_map_line_126'),
]
if map_line in oss_map_lines:
return self.env['account.tax'].search([
Expand Down

0 comments on commit 49b6377

Please sign in to comment.