Skip to content

Commit

Permalink
[IMP] account_tax_settlement: Se borra boton tax closing en tax report
Browse files Browse the repository at this point in the history
Task: 29975
  • Loading branch information
Maximiliano Mezzavilla authored and mem-adhoc committed Apr 17, 2023
1 parent 657e08c commit bde57e6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions account_tax_settlement/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
from . import account_journal_dashboard
from . import account_report
from . import account_payment_group
from . import account_generic_tax_report
20 changes: 20 additions & 0 deletions account_tax_settlement/models/account_generic_tax_report.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from collections import defaultdict

from odoo import models, api, fields, Command, _
from odoo.addons.web.controllers.utils import clean_action
from odoo.exceptions import UserError, RedirectWarning
from odoo.osv import expression
from odoo.tools.misc import get_lang


class GenericTaxReportCustomHandler(models.AbstractModel):
_inherit = 'account.report.custom.handler'
_description = 'Generic Tax Report Custom Handler'

def _custom_options_initializer(self, report, options, previous_options=None):
super()._custom_options_initializer(report, options, previous_options=previous_options)
for x in (options['buttons']):
if x.get('action') == 'action_periodic_vat_entries':
options['buttons'].remove(x)

0 comments on commit bde57e6

Please sign in to comment.