Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][IMP] l10n_es_aeat_mod303_oss: include lines oss in map mod303 2024-10 #3808

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -13,6 +13,7 @@
"data": [
"data/2021-07/l10n_es_aeat_map_tax_line.xml",
"data/2023/l10n_es_aeat_map_tax_line.xml",
"data/2024-10/l10n_es_aeat_map_tax_line.xml",
],
"installable": True,
"autoinstall": True,
Expand Down
50 changes: 50 additions & 0 deletions l10n_es_aeat_mod303_oss/data/2024-10/l10n_es_aeat_map_tax_line.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?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 @@ -15,6 +15,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
Loading