Do not try to remove unexisting jaser_reports' menu_print_general_ledger.

This commit is contained in:
Albert Cervera i Areny 2023-03-05 01:33:55 +01:00
parent 35ceab045d
commit 6a338bb2b4
1 changed files with 0 additions and 12 deletions

View File

@ -56,18 +56,6 @@ class PrintGeneralLedgerStart(ModelView):
], 'Output Format', required=True)
company = fields.Many2One('company.company', 'Company', required=True)
@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_general_ledger')
@staticmethod
def default_fiscalyear():
FiscalYear = Pool().get('account.fiscalyear')