[IMP] account: set company_id field on statement line as readonly
bzr revid: qdp-launchpad@tinyerp.com-20100916132614-rq53szvhorkl0p11
This commit is contained in:
parent
fbfcb5c00c
commit
ecd9e1f71f
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue