From b38120bf2f197ceaf007fdbca0d65ba4a5fd2f3f Mon Sep 17 00:00:00 2001 From: Frederik Jaeckel Date: Sun, 10 Dec 2023 15:32:12 +0100 Subject: [PATCH] merge... --- __init__.py | 3 +-- ir.py | 15 +-------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/__init__.py b/__init__.py index 00d2404..969900a 100644 --- a/__init__.py +++ b/__init__.py @@ -10,7 +10,7 @@ from .currency import Currency from .evaluation_context import EvaluationContext from .evaluation_wizard import OpenChartWizard from .investment import InvestmentEvaluation, InvestmentLine -from .ir import Rule, IrActWindow +from .ir import IrActWindow def register(): @@ -19,7 +19,6 @@ def register(): Evaluation, EvaluationLine, EvaluationContext, - Rule, IrActWindow, module='cashbook_report', type_='model') Pool.register( diff --git a/ir.py b/ir.py index 1573ebf..d0fcbd8 100644 --- a/ir.py +++ b/ir.py @@ -7,19 +7,6 @@ from trytond.transaction import Transaction from trytond.pool import PoolMeta -class Rule(metaclass=PoolMeta): - __name__ = 'ir.rule' - - @classmethod - def _context_modelnames(cls): - """ list of models to add 'user_id' to context - """ - return super(Rule, cls)._context_modelnames() + [ - 'ir.action.act_window', 'cashbook_report.evaluation'] - -# end Rule - - class IrActWindow(metaclass=PoolMeta): __name__ = 'ir.action.act_window' @@ -27,7 +14,7 @@ class IrActWindow(metaclass=PoolMeta): def __register__(cls, module_name): super(IrActWindow, cls).__register__(module_name) - # migrate (6.0 --> 7.0): domain --> context_domain + # migrate: domain --> context_domain records = cls.search([ ('res_model', '=', 'cashbook_report.eval_line'), ('domain', '!=', None),