mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[10.0][IMP] account_balance_line: Show balance always
This commit is contained in:
committed by
Mihai Fekete
parent
e6a77587fb
commit
b29599ce42
@@ -6,10 +6,8 @@
|
||||
Account Balance Line
|
||||
====================
|
||||
|
||||
This module adds a balance total for grouped lines in move line view.
|
||||
This module adds a balance total for lines in move line view.
|
||||
|
||||
Balance field will only be shown when move lines are grouped by account
|
||||
or filtered by account.
|
||||
|
||||
Usage
|
||||
=====
|
||||
@@ -17,7 +15,6 @@ Usage
|
||||
#. If you're an accounting adviser, enable developer mode and go to
|
||||
Accounting > Adviser > Journal items.
|
||||
#. Or open an account or a partner, and click on Action > Journal items.
|
||||
#. Filter or group by account.
|
||||
#. You will see a column named "Balance" with the balance of the line.
|
||||
|
||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||
@@ -41,6 +38,7 @@ Contributors
|
||||
* Vincent revaville <vincent.renaville@camptocamp.com>
|
||||
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
|
||||
* Vicent Cubells <vicent.cubells@tecnativa.com>
|
||||
* Sergio Teruel <sergio.teruel@tecnativa.com>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
@@ -1,26 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_account_move_line_filter_balance" model="ir.ui.view">
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
|
||||
<field name="priority" eval="9999"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="account_id" position="attributes">
|
||||
<attribute name="context" translation="off">{'invisible_balance': False}</attribute>
|
||||
</field>
|
||||
<filter context="{'group_by':'account_id'}" position="attributes">
|
||||
<attribute name="context" translation="off">{'group_by': 'account_id', 'invisible_balance': False}</attribute>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="account_move_line_balance_custom">
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="credit" position="after" >
|
||||
<field name="balance" sum="Total Balance" invisible="context.get('invisible_balance', True)"/>
|
||||
<field name="balance" sum="Total Balance" invisible="0"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user