Skip to content

Commit

Permalink
Merge PR #3744 into 15.0
Browse files Browse the repository at this point in the history
Signed-off-by pedrobaeza
  • Loading branch information
OCA-git-bot committed Sep 30, 2024
2 parents 7ca538c + 9d5dd4a commit bc43630
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions l10n_es_aeat/models/l10n_es_aeat_report_tax_mapping.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
# Copyright 2016-2017 Tecnativa - Pedro M. Baeza <pedro.baeza@tecnativa.com>
# Copyright 2016 Tecnativa - Antonio Espinosa
# Copyright 2016,2024 Tecnativa - Pedro M. Baeza
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from odoo import _, api, exceptions, fields, models
Expand Down Expand Up @@ -31,6 +31,7 @@ def calculate(self):
tax_code_map = (
self.env["l10n.es.aeat.map.tax"]
.sudo()
.with_context(active_test=False)
.search(
[
("model", "=", report.number),
Expand Down
4 changes: 2 additions & 2 deletions l10n_es_aeat/views/aeat_tax_code_mapping_view.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2016 Antonio Espinosa <antonio.espinosa@tecnativa.com>
Copyright 2018 Tecnativa - Pedro M. Baeza
Copyright 2018,2024 Tecnativa - Pedro M. Baeza
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="l10n_es_aeat_map_tax_tree" model="ir.ui.view">
Expand All @@ -23,7 +23,7 @@
<field name="date_to" />
</group>
<separator string="Mapping Lines" />
<field name="map_line_ids" />
<field name="map_line_ids" context="{'active_test': False}" />
</form>
</field>
</record>
Expand Down

0 comments on commit bc43630

Please sign in to comment.