[IMP] account: remove inexistant sequence get
authorMartin Trigaux <mat@openerp.com>
Wed, 1 Oct 2014 08:36:43 +0000 (10:36 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 1 Oct 2014 08:36:43 +0000 (10:36 +0200)
There is no sequence for account.bank.statement.line to prefill the field name (Communication), better remove it.

addons/account/account_bank_statement.py

index f3d6ce9..ba9b26a 100644 (file)
@@ -781,7 +781,6 @@ class account_bank_statement_line(osv.osv):
         'currency_id': fields.many2one('res.currency', 'Currency', help="The optional other currency if it is a multi-currency entry."),
     }
     _defaults = {
-        'name': lambda self,cr,uid,context={}: self.pool.get('ir.sequence').get(cr, uid, 'account.bank.statement.line'),
         'date': lambda self,cr,uid,context={}: context.get('date', fields.date.context_today(self,cr,uid,context=context)),
     }