Skip to content

Commit

Permalink
[FIX] pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed Oct 29, 2014
1 parent f024fdd commit 95178c0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions account_partner_required/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ def _check_partner_required_msg(self, cr, uid, ids, context=None):
"with account %s '%s' but the "
"partner is missing in the account "
"move line with label '%s'." %
(move_line.account_id.code,
move_line.account_id.name,
move_line.name))
(move_line.account_id.code,
move_line.account_id.name,
move_line.name))
elif policy == 'never' and move_line.partner_id:
return _("Partner policy is set to 'Never' "
"with account %s '%s' but the "
"account move line with label '%s' "
"has a partner '%s'." %
(move_line.account_id.code,
move_line.account_id.name,
move_line.name,
move_line.partner_id.name))
(move_line.account_id.code,
move_line.account_id.name,
move_line.name,
move_line.partner_id.name))

def _check_partner_required(self, cr, uid, ids, context=None):
return not self._check_partner_required_msg(cr, uid, ids,
Expand Down

0 comments on commit 95178c0

Please sign in to comment.