accountant_cn

This commit is contained in:
2026-11-17 17:57:08 +08:00
parent 9b924747c5
commit 5fc4382687
771 changed files with 18102 additions and 820280 deletions

View File

@@ -0,0 +1,158 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- ============================ reconciliation session form -->
<record id="view_dn_bank_rec_wizard_form" model="ir.ui.view">
<field name="name">dn.bank.rec.wizard.form</field>
<field name="model">dn.bank.rec.wizard</field>
<field name="arch" type="xml">
<form string="Bank Reconciliation">
<header>
<button name="action_match_selected" type="object"
string="Match Selected" class="oe_highlight"/>
<button name="action_create_counterpart" type="object"
string="Create Entry and Reconcile"/>
<button name="action_apply_rules" type="object"
string="Apply Rules"/>
<button name="action_unreconcile" type="object"
string="Undo Reconciliation"
confirm="Undo the reconciliation of this bank transaction?"/>
<button name="action_refresh_candidates" type="object"
string="Recompute Suggestions" class="btn-link"/>
</header>
<sheet>
<div class="oe_title">
<h2><field name="payment_ref" readonly="1" placeholder="No label"/></h2>
</div>
<group>
<group string="Bank Transaction">
<field name="date" readonly="1"/>
<field name="journal_id" readonly="1"/>
<field name="partner_id" readonly="1"/>
<field name="amount" readonly="1"/>
<field name="currency_id" invisible="1"/>
<field name="company_id" invisible="1"/>
</group>
<group string="Progress">
<field name="remaining_amount" readonly="1"/>
<field name="suggestion_count" readonly="1"/>
</group>
</group>
<notebook>
<page string="Suggested Matches" name="candidates">
<field name="candidate_ids" nolabel="1">
<list create="0" delete="0"
decoration-success="selected">
<field name="score" string="Score"/>
<field name="reason" string="Why"/>
<field name="date"/>
<field name="move_name"/>
<field name="label"/>
<field name="partner_id"/>
<field name="account_id"/>
<field name="amount_residual" sum="Total"/>
<field name="selected" widget="boolean_toggle"/>
<field name="currency_id" column_invisible="True"/>
<field name="move_line_id" column_invisible="True"/>
</list>
</field>
<div class="text-muted small mt-2">
Flag the rows to settle and press Match Selected. Several rows can be
selected to split one bank transaction across multiple documents.
</div>
</page>
<page string="Manual Entry" name="manual">
<group>
<group string="Counterpart">
<field name="counterpart_account_id"/>
<field name="manual_label"/>
<field name="manual_partner_id"/>
</group>
<group string="Amount and Tax">
<field name="manual_amount"/>
<field name="manual_tax_id"/>
</group>
</group>
<div class="text-muted small">
Fill this in and press Create Entry and Reconcile: a counterpart line
is added to the bank transaction's entry and reconciled right away.
</div>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- ============================ statement line workspace -->
<record id="view_dn_statement_line_list" model="ir.ui.view">
<field name="name">dn.statement.line.list</field>
<field name="model">account.bank.statement.line</field>
<field name="arch" type="xml">
<list string="Bank Transactions" create="0" delete="0"
decoration-success="is_reconciled"
decoration-warning="not is_reconciled">
<field name="date"/>
<field name="journal_id"/>
<field name="payment_ref"/>
<field name="partner_id"/>
<field name="amount" sum="Total"/>
<field name="currency_id" column_invisible="True"/>
<field name="is_reconciled" widget="boolean_toggle"/>
<button name="action_open_dn_reconciliation" type="object"
string="Reconcile" icon="fa-handshake-o"
invisible="is_reconciled"/>
</list>
</field>
</record>
<record id="view_dn_statement_line_search" model="ir.ui.view">
<field name="name">dn.statement.line.search</field>
<field name="model">account.bank.statement.line</field>
<field name="arch" type="xml">
<search>
<field name="payment_ref"/>
<field name="partner_id"/>
<field name="journal_id"/>
<filter name="unreconciled" string="Unreconciled"
domain="[('is_reconciled', '=', False)]"/>
<filter name="reconciled" string="Reconciled"
domain="[('is_reconciled', '=', True)]"/>
<group>
<filter name="group_journal" string="Journal"
context="{'group_by': 'journal_id'}"/>
<filter name="group_date" string="Date"
context="{'group_by': 'date'}"/>
</group>
</search>
</field>
</record>
<record id="action_dn_statement_line_workspace" model="ir.actions.act_window">
<field name="name">Bank Transaction Matching</field>
<field name="res_model">account.bank.statement.line</field>
<field name="view_mode">list</field>
<field name="search_view_id" ref="view_dn_statement_line_search"/>
<field name="domain">[('is_reconciled', '=', False)]</field>
</record>
<record id="action_dn_bank_rec_wizard" model="ir.actions.act_window">
<field name="name">Bank Reconciliation</field>
<field name="res_model">dn.bank.rec.wizard</field>
<field name="view_mode">form</field>
<field name="target">current</field>
<field name="context">{'create': False}</field>
</record>
<!-- ============================ menus -->
<menuitem id="menu_dn_bank_rec_root" name="Bank Reconciliation"
parent="account.menu_finance_entries"
sequence="35"
groups="account.group_account_user"/>
<menuitem id="menu_dn_bank_rec_workspace" name="Transactions to Match"
parent="menu_dn_bank_rec_root"
action="action_dn_statement_line_workspace" sequence="10"/>
</odoo>