Do not try to remove unexisting jaser_reports' menu_print_taxes_by_invoice.

This commit is contained in:
Albert Cervera i Areny 2023-03-05 01:37:48 +01:00
parent 36ac43dbd3
commit 15a3e3737a
1 changed files with 0 additions and 15 deletions

View File

@ -9,14 +9,10 @@ from trytond.model import ModelView, fields
from trytond.wizard import Wizard, StateView, StateReport, Button
from trytond.pyson import Eval, If, Bool
from trytond.rpc import RPC
from trytond.modules.html_report.html_report import HTMLReport
from trytond.modules.html_report.engine import DualRecord
from babel.dates import format_datetime
from ..common import deactivate_menu_entry
_ZERO = Decimal(0)
@ -96,17 +92,6 @@ class PrintTaxesByInvoiceAndPeriodStart(ModelView):
], depends=['partner_type'])
include_cancel = fields.Boolean('Include cancel')
@classmethod
def __register__(cls, module_name):
pool = Pool()
Modules = pool.get('ir.module')
super().__register__(module_name)
account_jasper_report_activated = Modules.search([
('name', '=', 'account_jasper_reports'),
('state', '=', 'activated')], limit=1)
if account_jasper_report_activated:
deactivate_menu_entry('account_jasper_reports', 'menu_print_taxes_by_invoice')
@staticmethod
def default_partner_type():
return 'customers'