mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
Fix Travis errors
This commit is contained in:
@@ -19,23 +19,21 @@
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp.osv.orm import Model
|
||||
from openerp.osv import fields
|
||||
from openerp.osv import orm
|
||||
|
||||
|
||||
class account_move(Model):
|
||||
class AccountMove(orm.Model):
|
||||
_inherit = 'account.move'
|
||||
|
||||
def unlink(self, cr, uid, ids, context=None):
|
||||
"""
|
||||
Delete the reconciliation when we delete the moves. This
|
||||
"""Delete the reconciliation when we delete the moves. This
|
||||
allow an easier way of cancelling the bank statement.
|
||||
"""
|
||||
reconcile_to_delete = []
|
||||
reconcile_obj = self.pool.get('account.move.reconcile')
|
||||
reconcile_obj = self.pool['account.move.reconcile']
|
||||
for move in self.browse(cr, uid, ids, context=context):
|
||||
for move_line in move.line_id:
|
||||
if move_line.reconcile_id:
|
||||
reconcile_to_delete.append(move_line.reconcile_id.id)
|
||||
reconcile_obj.unlink(cr, uid, reconcile_to_delete, context=context)
|
||||
return super(account_move, self).unlink(cr, uid, ids, context=context)
|
||||
return super(AccountMove, self).unlink(cr, uid, ids, context=context)
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
<record id="statement_importer_view_form" model="ir.ui.view">
|
||||
<field name="name">account.statement.profile.view</field>
|
||||
<field name="model">account.statement.profile</field>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Import statement">
|
||||
<separator string="" colspan="4"/>
|
||||
@@ -27,7 +26,6 @@
|
||||
<record id="statement_importer_view_tree" model="ir.ui.view">
|
||||
<field name="name">account.statement.profile.view</field>
|
||||
<field name="model">account.statement.profile</field>
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Import statement">
|
||||
<field name="name" />
|
||||
@@ -76,7 +74,6 @@
|
||||
<field name="name">account.bank.statement.tree</field>
|
||||
<field name="model">account.bank.statement</field>
|
||||
<field name="inherit_id" ref="account.view_bank_statement_tree"/>
|
||||
<field name="type">tree</field>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="/tree/field[@name='name']" position="before">
|
||||
<field name="id"/>
|
||||
@@ -95,7 +92,6 @@
|
||||
<field name="name">account.bank.statement.form</field>
|
||||
<field name="model">account.bank.statement</field>
|
||||
<field name="inherit_id" ref="account.view_bank_statement_form"/>
|
||||
<field name="type">form</field>
|
||||
<field name="arch" type="xml" >
|
||||
|
||||
<!-- Add before the group : profile and related infos -->
|
||||
|
||||
Reference in New Issue
Block a user