Replace self by cls in classmethod
issue7630 review74341002
This commit is contained in:
1 parent
a36f0d66c8
commit
596a1c0e1b
1 file changed
+1
-1
+1
-1
@@ -550,7 +550,7 @@ class Mandate(Workflow, ModelSQL, ModelView):
|
||||
return 'RCUR'
|
||||
|
||||
@classmethod
|
||||
def has_payments(self, mandates, name):
|
||||
def has_payments(cls, mandates, name):
|
||||
pool = Pool()
|
||||
Payment = pool.get('account.payment')
|
||||
payment = Payment.__table__
|
||||
|
||||
Reference in new issue
Block a user