Change _rpc_allowed into _rpc
This commit is contained in:
1 parent
6e09ef62eb
commit
4cc8f8ddb4
1 file changed
+3
-3
+3
-3
@@ -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'),
|
||||
|
||||
Reference in new issue
Block a user