2024-02-24 22:43:59 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# This file is part of the cashbook-planner from m-ds for Tryton.
|
|
|
|
# The COPYRIGHT file at the top level of this repository contains the
|
|
|
|
# full copyright notices and license terms.
|
|
|
|
|
|
|
|
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
|
|
|
|
"""
|
|
|
|
result = super(Rule, cls)._context_modelnames()
|
2024-03-10 06:45:24 +00:00
|
|
|
result.extend([
|
|
|
|
'cashbook.planner',
|
|
|
|
'cashbook.planner.nextrun'])
|
2024-02-24 22:43:59 +00:00
|
|
|
return result
|
|
|
|
|
|
|
|
# end Rule
|