From 4cc8f8ddb49a39be25cf725d67e29e7135da1982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 25 Feb 2009 12:25:54 +0100 Subject: [PATCH] Change _rpc_allowed into _rpc --- invoice.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/invoice.py b/invoice.py index 3f6d41a07d..ccdb91e355 100644 --- a/invoice.py +++ b/invoice.py @@ -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'),