From 5e4f6ef65b4782ba5ade4a88e3c2edc7aa71e0d3 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Wed, 5 Mar 2008 00:02:28 +0100 Subject: [PATCH] Added get_default to rpc allowed functions --- trytond/ir/default.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trytond/ir/default.py b/trytond/ir/default.py index 9e823dcc1f..78495a07d2 100644 --- a/trytond/ir/default.py +++ b/trytond/ir/default.py @@ -15,6 +15,10 @@ class Default(OSV): clause = fields.Text('Clause') user = fields.Many2One('res.user', 'User', ondelete='cascade') + def __init__(self): + super(Default, self).__init__() + self._rpc_allowed += ['get_default',] + def get_default(self, cursor, user, model, clause, context=None): res = {} test_user = user