[IMP] account_statement_base: Add statement form view

pull/739/head
sergio-teruel 2024-05-29 13:51:02 +02:00 committed by Duy (Đỗ Anh)
parent 49a97c044d
commit ba38bcea0f
6 changed files with 105 additions and 7 deletions

View File

@ -58,8 +58,15 @@ Authors
Contributors
------------
- `Akretion <https://www.akretion.com>`__:
- Alexis de Lattre <alexis.delattre@akretion.com>
- `Tecnativa <https://www.tecnativa.com>`__:
- Carlos Dauden
- Sergio Teruel
Maintainers
-----------

View File

@ -14,8 +14,8 @@
"website": "https://github.com/OCA/account-reconcile",
"depends": ["account"],
"data": [
"views/account_bank_statement.xml",
"views/account_bank_statement_line.xml",
"views/account_bank_statement.xml", # Keep order
],
"installable": True,
}

View File

@ -1 +1,5 @@
- [Akretion](https://www.akretion.com):
- Alexis de Lattre \<<alexis.delattre@akretion.com>\>
- [Tecnativa](https://www.tecnativa.com):
- Carlos Dauden
- Sergio Teruel

View File

@ -8,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: grey; } /* line numbers */
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@ -300,7 +301,7 @@ span.option {
span.pre {
white-space: pre }
span.problematic {
span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@ -403,13 +404,23 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
<ul class="simple">
<li><a class="reference external" href="https://www.akretion.com">Akretion</a>:<ul>
<li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li>
</ul>
</li>
<li><a class="reference external" href="https://www.tecnativa.com">Tecnativa</a>:<ul>
<li>Carlos Dauden</li>
<li>Sergio Teruel</li>
</ul>
</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.</p>

View File

@ -5,6 +5,81 @@
-->
<odoo>
<record id="view_bank_statement_form" model="ir.ui.view">
<field name="name">account.bank.statement.form</field>
<field name="model">account.bank.statement</field>
<field name="priority">1</field>
<field name="arch" type="xml">
<form string="Bank Statement">
<div
class="alert alert-warning"
role="alert"
invisible="not problem_description"
>
<field name="problem_description" />
</div>
<sheet>
<div name="button_box" position="inside">
<button
class="oe_stat_button"
type="action"
name="%(account_bank_statement_line_action)d"
icon="fa-bars"
context="{'search_default_statement_id': id}"
string="Transactions"
/>
</div>
<div class="oe_title oe_inline">
<label for="name" />
<h1><field
name="name"
placeholder="e.g. BNK/2021/0001"
/></h1>
</div>
<group>
<group>
<field name="date" />
<field
name='company_id'
options="{'no_create': True}"
groups="base.group_multi_company"
/>
<field name="currency_id" invisible="1" />
<field name="journal_id" invisible="1" />
</group>
<group>
<label for="balance_start" />
<div>
<field name="balance_start" class="oe_inline" />
</div>
<label for="balance_end_real" />
<div>
<field name="balance_end_real" class="oe_inline" />
</div>
</group>
</group>
<field
name="line_ids"
context="{'default_journal_id': journal_id}"
/>
<group
class="oe_subtotal_footer oe_right"
name="sale_total"
col="1"
>
<field
name="balance_end"
class="oe_subtotal_footer_separator"
/>
</group>
<field name="attachment_ids" widget="many2many_binary" />
<div class="oe_clear" />
</sheet>
</form>
</field>
</record>
<!-- Add form to view mode. -->
<record id="account.action_bank_statement_tree" model="ir.actions.act_window">
<field name="res_model">account.bank.statement</field>

View File

@ -119,6 +119,7 @@
/>
<field name="partner_id" />
<field name="date" />
<field name="statement_id" />
<field name="journal_id" domain="[('type', 'in', ('bank', 'cash'))]" />
<field name="amount" />
<separator />