Change _rpc_allowed into _rpc

This commit is contained in:
Cédric Krier committed 2009-02-25 12:25:54 +01:00
1 parent 6e09ef62eb
commit 4cc8f8ddb4
1 file changed
+3 -3
+3 -3
View File
@@ -103,9 +103,9 @@ class Invoice(ModelWorkflow, OSV):
def __init__(self):
super(Invoice, self).__init__()
self._rpc_allowed += [
'button_draft',
]
self._rpc.update({
'button_draft': True,
})
self._constraints += [
('check_account', 'account_different_company'),
('check_account2', 'same_account_on_line'),