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

refactor exeption name

parent e775530c
......@@ -20,5 +20,5 @@ class SequenceMissingError(ValidationError):
pass
class MemberUnpaiedFeeError(ValidationError):
class MemberUnpaidFeeError(ValidationError):
pass
......@@ -8,7 +8,7 @@ from trytond.pool import Pool
from trytond.i18n import gettext
from trytond.wizard import Wizard, StateView, Button, StateReport
from trytond.report 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 = Fee.search([('member', 'in', members)])
if not all(x.paid for x in pending_fees):
raise MemberUnpaiedFeeError(
raise MemberUnpaidFeeError(
gettext('association.msg_unpaid_fee',
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