-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] account_tax_settlement: Se borra boton tax closing en tax report
Task: 29975
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
account_tax_settlement/models/account_generic_tax_report.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |