PEP8 fixes.

This commit is contained in:
Albert Cervera i Areny 2013-04-29 09:47:51 +02:00
parent 8dfda6d42c
commit 9066efb293
2 changed files with 8 additions and 8 deletions

12
bank.py
View File

@ -17,13 +17,13 @@ class Bank(ModelSQL, ModelView):
party = fields.Many2One('party.party', 'Party', required=True,
ondelete='CASCADE')
bank_code = fields.Char('National Code', select=1,
states={
'required': Not(Bool(Eval('bic')))
}, depends=['bic'])
states={
'required': Not(Bool(Eval('bic')))
}, depends=['bic'])
bic = fields.Char('BIC/SWIFT', select=1,
states={
'required': Not(Bool(Eval('bank_code')))
}, depends=['bank_code'])
states={
'required': Not(Bool(Eval('bank_code')))
}, depends=['bank_code'])
def get_rec_name(self, name):
code = self.bank_code if self.bank_code else self.bic

View File

@ -1,5 +1,5 @@
#This file is part party_bank module for Tryton.
#The COPYRIGHT file at the top level of this repository contains
#The COPYRIGHT file at the top level of this repository contains
#the full copyright notices and license terms.
from trytond.model import fields
from trytond.pool import PoolMeta
@ -7,8 +7,8 @@ from trytond.pool import PoolMeta
__all__ = ['Party']
__metaclass__ = PoolMeta
class Party:
__name__ = 'party.party'
bank_accounts = fields.One2Many('bank.account', 'party', 'Bank Accounts')