[FIX] account_voucher: put on_change() in account_voucher and removed check of statem...
[odoo/odoo.git] / addons / account / account_bank_statement.py
index d708442..4bd42e1 100644 (file)
@@ -445,11 +445,7 @@ class account_bank_statement_line(osv.osv):
         return res
     
     def onchange_date(self, cr, uid, statement_lines, date, bank_period_id, context=None):
-        voucher_obj = self.pool.get('account.voucher')
-        for line in self.browse(cr, uid, statement_lines, context=context):
-            if line.voucher_id:
-                voucher_obj.write(cr, uid, [line.voucher_id.id],{'date': date, 'period_id': bank_period_id}, context=context)
-        return True
+        return {}
 
     _order = "statement_id desc, sequence"
     _name = "account.bank.statement.line"