Skip to content

Commit

Permalink
[IMP] account_statement_import_file: pre-commit auto fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviedoanhduy committed Dec 17, 2024
1 parent 18914be commit 81a06ba
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 56 deletions.
42 changes: 20 additions & 22 deletions account_statement_import_file/demo/partner_bank.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,27 @@
Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
-->
<odoo noupdate="1">
<record id="ofx_partner_bank_1" model="res.partner.bank">
<field name="acc_number">BE02631118262640</field>
<field name="partner_id" ref="base.res_partner_2" />
<field name="bank_id" ref="base.res_bank_1" />
</record>

<record id="ofx_partner_bank_1" model="res.partner.bank">
<field name="acc_number">BE02631118262640</field>
<field name="partner_id" ref="base.res_partner_2" />
<field name="bank_id" ref="base.res_bank_1" />
</record>
<record id="ofx_partner_bank_2" model="res.partner.bank">
<field name="acc_number">20987654321</field>
<field name="partner_id" ref="base.res_partner_3" />
<field name="bank_id" ref="base.res_bank_1" />
</record>

<record id="ofx_partner_bank_2" model="res.partner.bank">
<field name="acc_number">20987654321</field>
<field name="partner_id" ref="base.res_partner_3" />
<field name="bank_id" ref="base.res_bank_1" />
</record>

<record id="qif_partner_bank_1" model="res.partner.bank">
<field name="acc_number">21987654321</field>
<field name="partner_id" ref="base.res_partner_4" />
<field name="bank_id" ref="base.res_bank_1" />
</record>

<record id="qif_partner_bank_2" model="res.partner.bank">
<field name="acc_number">22987654321</field>
<field name="partner_id" ref="base.res_partner_3" />
<field name="bank_id" ref="base.res_bank_1" />
</record>
<record id="qif_partner_bank_1" model="res.partner.bank">
<field name="acc_number">21987654321</field>
<field name="partner_id" ref="base.res_partner_4" />
<field name="bank_id" ref="base.res_bank_1" />
</record>

<record id="qif_partner_bank_2" model="res.partner.bank">
<field name="acc_number">22987654321</field>
<field name="partner_id" ref="base.res_partner_3" />
<field name="bank_id" ref="base.res_bank_1" />
</record>
</odoo>
2 changes: 0 additions & 2 deletions account_statement_import_file/views/account_journal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
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" />
Expand Down Expand Up @@ -36,5 +35,4 @@
</xpath>
</field>
</record>

</odoo>
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,42 @@
Licence LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
-->
<odoo>

<record id="account_statement_import_form" model="ir.ui.view">
<field name="model">account.statement.import</field>
<field name="arch" type="xml">
<form string="Upload Bank Statements">
<h2>Upload a bank statement file</h2>
<p>Supported formats:</p>
<ul id="statement_format">
<!-- <li>xxx format</li> is added by format-specific modules -->
</ul>
<field name="statement_file" filename="statement_filename" />
<field name="statement_filename" invisible="1" />
<footer>
<button
<record id="account_statement_import_form" model="ir.ui.view">
<field name="model">account.statement.import</field>
<field name="arch" type="xml">
<form string="Upload Bank Statements">
<h2>Upload a bank statement file</h2>
<p>Supported formats:</p>
<ul id="statement_format">
<!-- <li>xxx format</li> is added by format-specific modules -->
</ul>
<field name="statement_file" filename="statement_filename" />
<field name="statement_filename" invisible="1" />
<footer>
<button
name="import_file_button"
string="Import and View"
type="object"
class="btn-primary"
/>

<button string="Cancel" class="btn-default" special="cancel" />
</footer>
</form>
</field>
</record>

<record id="account_statement_import_action" model="ir.actions.act_window">
<field name="name">Import Bank Statement File</field>
<field name="res_model">account.statement.import</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<button string="Cancel" class="btn-default" special="cancel" />
</footer>
</form>
</field>
</record>

<record id="account_statement_import_menu" model="ir.ui.menu">
<field name="name">Import Statement</field>
<field name="parent_id" ref="account.menu_finance_entries_actions" />
<field name="action" ref="account_statement_import_action" />
<field name="sequence" eval="70" />
</record>
<record id="account_statement_import_action" model="ir.actions.act_window">
<field name="name">Import Bank Statement File</field>
<field name="res_model">account.statement.import</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>

<record id="account_statement_import_menu" model="ir.ui.menu">
<field name="name">Import Statement</field>
<field name="parent_id" ref="account.menu_finance_entries_actions" />
<field name="action" ref="account_statement_import_action" />
<field name="sequence" eval="70" />
</record>
</odoo>

0 comments on commit 81a06ba

Please sign in to comment.