Commit 40018f3f authored by Luca Cristaldi's avatar Luca Cristaldi

refactor exeption name

parent e775530c
......@@ -20,5 +20,5 @@ class SequenceMissingError(ValidationError):
class MemberUnpaiedFeeError(ValidationError):
class MemberUnpaidFeeError(ValidationError):
......@@ -8,7 +8,7 @@ from trytond.pool import Pool
from trytond.i18n import gettext
from trytond.wizard import Wizard, StateView, Button, StateReport
from import Report
from .exceptions import MemberUnpaiedFeeError
from .exceptions import MemberUnpaidFeeError
__all__ = [
'Member', 'MembersBookWizard', 'PrintMembersBookStart', 'MembersBookReport'
......@@ -197,7 +197,7 @@ class Member(Workflow, ModelSQL, ModelView):
pending_fees =[('member', 'in', members)])
if not all(x.paid for x in pending_fees):
raise MemberUnpaiedFeeError(
raise MemberUnpaidFeeError(
member=", ".join([x.party_name for x in members])))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment