[IMP] account: set company_id field on statement line as readonly

bzr revid: qdp-launchpad@tinyerp.com-20100916132614-rq53szvhorkl0p11
This commit is contained in:
qdp-launchpad@tinyerp.com 2010-09-16 15:26:14 +02:00
parent fbfcb5c00c
commit ecd9e1f71f
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ class account_bank_statement_line(osv.osv):
'reconcile_amount': fields.function(_reconcile_amount,
string='Amount reconciled', method=True, type='float'),
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of bank statement lines."),
'company_id': fields.related('statement_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True),
'company_id': fields.related('statement_id', 'company_id', type='many2one', relation='res.company', string='Company', store=True, readonly=True),
}
_defaults = {
'name': lambda self,cr,uid,context={}: self.pool.get('ir.sequence').get(cr, uid, 'account.bank.statement.line'),