Remove pass in button methods
This commit is contained in:
parent
99eaa46bf3
commit
698400395d
|
@ -281,7 +281,6 @@ class AccountPaymentGatewayTransaction(Workflow, ModelSQL, ModelView):
|
|||
method_name = 'draft_%s' % transaction.gateway.method
|
||||
if hasattr(transaction, method_name):
|
||||
getattr(transaction, method_name)()
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
@ModelView.button
|
||||
|
@ -291,7 +290,6 @@ class AccountPaymentGatewayTransaction(Workflow, ModelSQL, ModelView):
|
|||
method_name = 'pending_%s' % transaction.gateway.method
|
||||
if hasattr(transaction, method_name):
|
||||
getattr(transaction, method_name)()
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
@ModelView.button
|
||||
|
@ -301,7 +299,6 @@ class AccountPaymentGatewayTransaction(Workflow, ModelSQL, ModelView):
|
|||
method_name = 'authorized_%s' % transaction.gateway.method
|
||||
if hasattr(transaction, method_name):
|
||||
getattr(transaction, method_name)()
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
@ModelView.button
|
||||
|
@ -311,7 +308,6 @@ class AccountPaymentGatewayTransaction(Workflow, ModelSQL, ModelView):
|
|||
method_name = 'confirm_%s' % transaction.gateway.method
|
||||
if hasattr(transaction, method_name):
|
||||
getattr(transaction, method_name)()
|
||||
pass
|
||||
|
||||
@classmethod
|
||||
@ModelView.button
|
||||
|
@ -321,4 +317,3 @@ class AccountPaymentGatewayTransaction(Workflow, ModelSQL, ModelView):
|
|||
method_name = 'refund_%s' % transaction.gateway.method
|
||||
if hasattr(transaction, method_name):
|
||||
getattr(transaction, method_name)()
|
||||
pass
|
||||
|
|
Loading…
Reference in New Issue