21
21
###############################################################################
24
23
from openerp.osv import fields, orm
26
26
class account_bank_statement(orm.Model):
27
27
_inherit = "account.bank.statement"
30
30
'file_id': fields.many2one('file.document', string='File Document', readonly=True)
34
35
_inherit = "account.statement.profile"
36
37
def _attach_file_stream(self, cr, uid, statement_id, file_stream, ftype, context=None):
37
38
if context.get('default_file_id'):
41
42
uid, statement_id, file_stream, ftype, context=context)