[MIG] account_bank_statement_import to v14 > account_statement_import

Module renamed to account_statement_import to avoid conflit with Odoo enterprise
Add support for multi-account statement files
Integrate the feature provided by the module account_bank_statement_import_save_file
Improve error messages
Remove dead or annoying features
Improve code !
This commit is contained in:
Alexis de Lattre
2020-11-18 00:22:27 +01:00
committed by Maksym Yankin
parent 66c9766c01
commit 751c7e8792
27 changed files with 1279 additions and 1557 deletions

View File

@@ -1,15 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template
id="assets_backend"
name="account_bank_statement_import assets"
inherit_id="web.assets_backend"
>
<xpath expr="." position="inside">
<script
type="text/javascript"
src="/account_bank_statement_import/static/src/js/account_bank_statement_import.js"
/>
</xpath>
</template>
</odoo>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" ?>
<!--
Copyright 2020 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
-->
<odoo>
<record id="view_bank_statement_line_form" model="ir.ui.view">
<field name="model">account.bank.statement.line</field>
<field name="inherit_id" ref="account.view_bank_statement_line_form" />
<field name="arch" type="xml">
<field name="transaction_type" position="before">
<field name="account_number" />
</field>
<field name="transaction_type" position="after">
<field name="partner_bank_id" />
</field>
<field name="move_id" position="after">
<field name="unique_import_id" groups="base.group_no_one" />
</field>
</field>
</record>
</odoo>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" ?>
<!--
Copyright 2004-2020 Odoo S.A.
Copyright 2020 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
-->
<odoo>
<record id="journal_dashboard_view_inherit" model="ir.ui.view">
<field name="model">account.journal</field>
<field name="inherit_id" ref="account.account_journal_dashboard_kanban_view" />
<field name="arch" type="xml">
<xpath expr='//span[@name="button_import_placeholder"]' position='inside'>
<span>or <a type="object" name="import_statement">Import</a></span>
</xpath>
<xpath expr='//div[@name="bank_cash_commands"]' position="before">
<div t-if="journal_type == 'bank'">
<a type="object" name="import_statement">Import Statement</a>
</div>
</xpath>
</field>
</record>
</odoo>