Change _rpc_allowed into _rpc
This commit is contained in:
1 parent
6b5db54b5a
commit
026c7caa5e
1 file changed
+3
-3
+3
-3
@@ -39,9 +39,9 @@ class Forecast(OSV):
|
||||
|
||||
def __init__(self):
|
||||
super(Forecast, self).__init__()
|
||||
self._rpc_allowed += [
|
||||
'button_draft',
|
||||
]
|
||||
self._rpc.update({
|
||||
'button_draft': True,
|
||||
})
|
||||
self._sql_constraints += [
|
||||
('check_from_to_date',
|
||||
'CHECK(to_date >= from_date)',
|
||||
|
||||
Reference in new issue
Block a user