changeset 11b4c938a0b9 in trytond:default
details: https://hg.tryton.org/trytond?cmd=changeset;node=11b4c938a0b9
description:
Add search and read RPC access to ir.calendar*
Those access are needed by the client to display the selection widget
related
to those models. They do not have it by default because they do not
inherit
from ModelView.
issue7996
diffstat:
trytond/ir/calendar_.py | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diffs (24 lines):
diff -r a83631f4ba67 -r 11b4c938a0b9 trytond/ir/calendar_.py
--- a/trytond/ir/calendar_.py Fri Jan 18 11:57:11 2019 +0100
+++ b/trytond/ir/calendar_.py Tue Jan 22 14:15:31 2019 +0100
@@ -3,6 +3,7 @@
from ..cache import Cache
from ..model import ModelSQL, fields, Unique
+from ..rpc import RPC
from ..transaction import Transaction
@@ -15,6 +16,12 @@
def __setup__(cls):
super().__setup__()
t = cls.__table__()
+ cls.__rpc__.update({
+ 'read': RPC(),
+ 'search': RPC(),
+ 'search_count': RPC(),
+ 'search_read': RPC(),
+ })
cls.index.domain = [
('index', '>=', cls._min_index),
('index', '<=', cls._max_index),