[FIX] Correction to fit coding standard

This commit is contained in:
Vincent Renaville
2013-01-18 09:20:22 +01:00
parent d4f4442509
commit 8964e0a05b
4 changed files with 21 additions and 42 deletions

View File

@@ -1,10 +1,7 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2012 Camptocamp (http://www.camptocamp.com)
# All Right Reserved
#
# Author : Vincent Renaville (Camptocamp)
# Author Vincent Renaville. Copyright 2012 Camptocamp SA
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
@@ -21,20 +18,20 @@
#
##############################################################################
import time
from openerp.osv.orm import TransientModel, fields
from openerp.osv import fields, orm
from tools.translate import _
class account_bank_statement(TransientModel):
class account_bank_statement(orm.Model):
_inherit = "account.bank.statement"
def create_move_from_st_line(self, cr, uid, st_line_id, company_currency_id, st_line_number, context=None):
move_ids = super(account_bank_statement,self).create_move_from_st_line(cr, uid, st_line_id, company_currency_id, st_line_number, context)
move_ids = super(account_bank_statement,self).create_move_from_st_line(cr, uid, st_line_id,
company_currency_id,
st_line_number, context)
## We receive the move created for the bank statement, we set it to draft
if move_ids:
move_obj = self.pool.get('account.move')
move_obj.write(cr, uid, move_ids, {'state': 'draft'}, context=context)
return move_ids
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: