ir-rule: condition --> Eval('user_id', -1)
This commit is contained in:
parent
6b94179b42
commit
0f11e9d5a1
3 changed files with 23 additions and 1 deletions
20
ir.py
Normal file
20
ir.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# This file is part of the cashbook-module from m-ds.de for Tryton.
|
||||
# The COPYRIGHT file at the top level of this repository contains the
|
||||
# full copyright notices and license terms.
|
||||
|
||||
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() + [
|
||||
'cashbook.bookcategory']
|
||||
|
||||
# end Rule
|
Loading…
Add table
Add a link
Reference in a new issue