Replace self by cls in classmethod

issue7630
review74341002
This commit is contained in:
Cédric Krier committed 2018-09-19 00:15:58 +02:00
1 parent a36f0d66c8
commit 596a1c0e1b
1 file changed
+1 -1
+1 -1
View File
@@ -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__