[IMP] account_statement_ext - rename profil to profile

This commit is contained in:
Yannick Vaucher
2013-06-28 12:26:57 +02:00
parent 91f68ad7e8
commit ab44bf61aa

View File

@@ -38,7 +38,7 @@ def fixed_write(self, cr, uid, ids, vals, context=None):
stat_mod.account_bank_statement.write = fixed_write stat_mod.account_bank_statement.write = fixed_write
class AccountStatementProfil(Model): class AccountStatementProfile(Model):
""" """
A Profile will contain all infos related to the type of A Profile will contain all infos related to the type of
bank statement, and related generated entries. It defines the bank statement, and related generated entries. It defines the
@@ -47,7 +47,7 @@ class AccountStatementProfil(Model):
_name = "account.statement.profile" _name = "account.statement.profile"
_inherit = ['mail.thread'] _inherit = ['mail.thread']
_description = "Statement Profil" _description = "Statement Profile"
_columns = { _columns = {
'name': fields.char('Name', required=True), 'name': fields.char('Name', required=True),
@@ -138,7 +138,7 @@ class AccountBankSatement(Model):
_columns = { _columns = {
'profile_id': fields.many2one( 'profile_id': fields.many2one(
'account.statement.profile', 'account.statement.profile',
'Profil', 'Bank Account Profile',
required=True, required=True,
readonly=True, readonly=True,
states={'draft': [('readonly', False)]}), states={'draft': [('readonly', False)]}),
@@ -283,7 +283,7 @@ class AccountBankSatement(Model):
uid, uid,
st_line, st_line,
context=context) context=context)
# get the right partner according to the chosen profil # get the right partner according to the chosen profile
if st_line.statement_id.profile_id.force_partner_on_bank: if st_line.statement_id.profile_id.force_partner_on_bank:
bank_partner_id = st_line.statement_id.profile_id.partner_id.id bank_partner_id = st_line.statement_id.profile_id.partner_id.id
return bank_partner_id return bank_partner_id