[IMP][8.0] account_banking_mandate: Pep8 fixes

This commit is contained in:
Sergio Incaser
2016-04-06 10:58:38 +02:00
parent 6451618527
commit bf807e998b

View File

@@ -77,14 +77,14 @@ class AccountBankingMandate(models.Model):
def _check_dates(self):
for mandate in self:
if (mandate.signature_date and
mandate.signature_date > fields.Date.context_today(
mandate.signature_date > fields.Date.context_today(
mandate)):
raise exceptions.Warning(
_("The date of signature of mandate '%s' "
"is in the future !")
% mandate.unique_mandate_reference)
if (mandate.signature_date and mandate.last_debit_date and
mandate.signature_date > mandate.last_debit_date):
mandate.signature_date > mandate.last_debit_date):
raise exceptions.Warning(
_("The mandate '%s' can't have a date of last debit "
"before the date of signature."