mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
account_balance_line module
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
Account Balance Line
|
||||
====================
|
||||
|
||||
Add a balance total for grouped lines in move line view.
|
||||
This module adds a balance total for grouped lines in move line view.
|
||||
|
||||
Balance field will only be shown when move lines are grouped by account
|
||||
or filtered by account.
|
||||
@@ -14,21 +14,23 @@ or filtered by account.
|
||||
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
|
||||
:alt: Try me on Runbot
|
||||
:target: https://runbot.odoo-community.org/runbot/92/8.0
|
||||
|
||||
For further information, please visit:
|
||||
|
||||
* https://www.odoo.com/forum/help-1
|
||||
:target: https://runbot.odoo-community.org/runbot/92/9.0
|
||||
|
||||
Bug Tracker
|
||||
===========
|
||||
|
||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/account-financial-tools/issues>`_.
|
||||
In case of trouble, please check there if your issue has already been reported.
|
||||
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback
|
||||
`here <https://github.com/OCA/account-financial-tools/issues/new?body=module:%20account_balance_line%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||
Bugs are tracked on `GitHub Issues
|
||||
<https://github.com/OCA/account-financial-tools/issues>`_. In case of trouble,
|
||||
please check there if your issue has already been reported. If you spotted it
|
||||
first, help us smashing it by providing a detailed and welcomed feedback.
|
||||
|
||||
Credits
|
||||
=======
|
||||
@@ -38,6 +40,7 @@ Contributors
|
||||
|
||||
* Vincent revaville <vincent.renaville@camptocamp.com>
|
||||
* Yannick Vaucher <yannick.vaucher@camptocamp.com>
|
||||
* Vicent Cubells <vicent.cubells@tecnativa.com>
|
||||
|
||||
Maintainer
|
||||
----------
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2010-2014 Camptocamp - Vincent Renaville
|
||||
# Copyright 2016 Tecnativa - Vicent Cubells
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import account_move_line
|
||||
from . import models
|
||||
|
||||
@@ -1,34 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# Author: Vincent Renaville (Camptocamp)
|
||||
# Copyright 2010-2014 Camptocamp SA
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{'name': 'Balance on lines',
|
||||
'summary': 'Display balance totals in move line view',
|
||||
'version': '8.0.1.1.1',
|
||||
'author': "Camptocamp,Odoo Community Association (OCA)",
|
||||
'maintainter': 'Camptocamp',
|
||||
'category': 'Accounting',
|
||||
'depends': ['account'],
|
||||
'website': 'http://www.camptocamp.com',
|
||||
'data': ['account_move_line_view.xml'],
|
||||
'tests': [],
|
||||
'installable': True,
|
||||
'license': 'AGPL-3',
|
||||
}
|
||||
# Copyright 2010-2014 Camptocamp - Vincent Renaville
|
||||
# Copyright 2016 Tecnativa - Vicent Cubells
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
{
|
||||
'name': 'Balance on lines',
|
||||
'summary': 'Display balance totals in move line view',
|
||||
'version': '9.0.1.0.0',
|
||||
'category': 'Accounting',
|
||||
'website': 'http://www.tecnativa.com,',
|
||||
'author': "Camptocamp,"
|
||||
"Tecnativa,"
|
||||
"Odoo Community Association (OCA)",
|
||||
'license': 'AGPL-3',
|
||||
'application': False,
|
||||
'installable': True,
|
||||
'depends': [
|
||||
'account'
|
||||
],
|
||||
'data': [
|
||||
'views/account_move_line_view.xml'
|
||||
],
|
||||
}
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
##############################################################################
|
||||
#
|
||||
# Author: Vincent Renaville (Camptocamp)
|
||||
# Copyright 2010-2014 Camptocamp SA
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Affero General Public License as
|
||||
# published by the Free Software Foundation, either version 3 of the
|
||||
# License, or (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Affero General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
from openerp import models, fields, api
|
||||
import openerp.addons.decimal_precision as dp
|
||||
|
||||
|
||||
class AccountMoveLine(models.Model):
|
||||
_inherit = "account.move.line"
|
||||
|
||||
@api.multi
|
||||
@api.depends('credit', 'debit')
|
||||
def _line_balance(self):
|
||||
for line in self:
|
||||
line.line_balance = line.debit - line.credit
|
||||
|
||||
line_balance = fields.Float(
|
||||
compute='_line_balance', string='Balance', store=True,
|
||||
digits=dp.get_precision('Account'))
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="view_account_move_line_filter_balance" model="ir.ui.view">
|
||||
<field name="name">Journal Items add visibilty for balance</field>
|
||||
<field name="model">account.move.line</field>
|
||||
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="account_id" position="attributes">
|
||||
<attribute name="context">{'invisible_balance': False}</attribute>
|
||||
</field>
|
||||
<filter string="Account" position="attributes">
|
||||
<attribute name="context">{'group_by': 'account_id', 'invisible_balance': False}</attribute>
|
||||
</filter>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="account_move_line_balance_custom">
|
||||
<field name="name">account_move_line_balance_custom</field>
|
||||
<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="line_balance" sum="Total Balance" invisible="context.get('invisible_balance', True)"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</openerp>
|
||||
@@ -1,53 +0,0 @@
|
||||
# Translation of OpenERP Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_balance_line
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: OpenERP Server 7.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2014-06-20 14:11+0000\n"
|
||||
"PO-Revision-Date: 2014-06-20 14:11+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:0
|
||||
msgid "Account"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: model:ir.model,name:account_balance_line.model_account_move_line
|
||||
msgid "Entry lines"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: code:_description:0
|
||||
#, python-format
|
||||
msgid "Journal Items"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: field:account.move.line,line_balance:0
|
||||
msgid "Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:0
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:0
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:0
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "عناصر دفتر اليومية"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Stavke dnevnika"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr ""
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Položky deníku"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Journaleinträge"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr "Gesamt-Saldo"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr "{'invisible_balance': False}"
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Journal Items"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -1,49 +1,32 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * account_balance_line
|
||||
#
|
||||
# Translators:
|
||||
# Carles Antolí <carlesantoli@hotmail.com>, 2015
|
||||
# * account_balance_line
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: account-financial-tools (8.0)\n"
|
||||
"Project-Id-Version: Odoo Server 9.0c\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2015-12-05 01:25+0000\n"
|
||||
"PO-Revision-Date: 2015-12-06 18:21+0000\n"
|
||||
"Last-Translator: Carles Antolí <carlesantoli@hotmail.com>\n"
|
||||
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/es/)\n"
|
||||
"POT-Creation-Date: 2016-12-17 12:16+0000\n"
|
||||
"PO-Revision-Date: 2016-12-17 12:16+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Language: es\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
"Plural-Forms: \n"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "Account"
|
||||
msgstr "Cuenta"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: field:account.move.line,line_balance:0
|
||||
#: model:ir.model.fields,field_description:account_balance_line.field_account_move_line_line_balance
|
||||
msgid "Balance"
|
||||
msgstr "Saldo"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: model:ir.model,name:account_balance_line.model_account_move_line
|
||||
msgid "Journal Items"
|
||||
msgstr "Apuntes contables"
|
||||
msgid "Journal Item"
|
||||
msgstr "Apunte contable"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
#: model:ir.ui.view,arch_db:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr "Total saldo"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr "{'invisible_balance': False}"
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Elementos diario"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Asientos Contables"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -49,13 +49,3 @@ msgstr "Elementos diario"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Écritures comptables"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr "Balance Totale"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr ""
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Stavke dnevnika"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Könyvelési tételsorok"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Voci Sezionale"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "仕訳項目"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "DK įrašai"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Ставки на дневник"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Журналын бичилт"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Journal Elementer"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Boekingsregels"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Boekingslijnen"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Items Diários"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Itens do Diário"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -48,13 +48,3 @@ msgstr "Item do Diário"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Elementele Jurnalului"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Элементы журнала"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -37,13 +37,3 @@ msgstr "Dnevniške postavke"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr "Skupna bilanca"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr "{'invisible_balance': False}"
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Transaktioner"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "Günlük Maddeleri"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "日记帐项目"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
@@ -36,13 +36,3 @@ msgstr "帳簿項目"
|
||||
#: view:account.move.line:account_balance_line.account_move_line_balance_custom
|
||||
msgid "Total Balance"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'group_by': 'account_id', 'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
#. module: account_balance_line
|
||||
#: view:account.move.line:account_balance_line.view_account_move_line_filter_balance
|
||||
msgid "{'invisible_balance': False}"
|
||||
msgstr ""
|
||||
|
||||
6
account_balance_line/models/__init__.py
Normal file
6
account_balance_line/models/__init__.py
Normal file
@@ -0,0 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2010-2014 Camptocamp - Vincent Renaville
|
||||
# Copyright 2016 Tecnativa - Vicent Cubells
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import account_move_line
|
||||
21
account_balance_line/models/account_move_line.py
Normal file
21
account_balance_line/models/account_move_line.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright 2010-2014 Camptocamp - Vincent Renaville
|
||||
# Copyright 2016 Tecnativa - Vicent Cubells
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from openerp import models, fields, api
|
||||
import openerp.addons.decimal_precision as dp
|
||||
|
||||
|
||||
class AccountMoveLine(models.Model):
|
||||
_inherit = "account.move.line"
|
||||
|
||||
@api.multi
|
||||
@api.depends('credit', 'debit')
|
||||
def _line_balance(self):
|
||||
for line in self:
|
||||
line.line_balance = line.debit - line.credit
|
||||
|
||||
line_balance = fields.Float(
|
||||
compute='_line_balance', string='Balance', store=True,
|
||||
digits=dp.get_precision('Account'))
|
||||
30
account_balance_line/views/account_move_line_view.xml
Normal file
30
account_balance_line/views/account_move_line_view.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="view_account_move_line_filter_balance" model="ir.ui.view">
|
||||
<field name="name">Journal Items add visibilty for balance</field>
|
||||
<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="name">account_move_line_balance_custom</field>
|
||||
<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="line_balance" sum="Total Balance" invisible="context.get('invisible_balance', True)"/>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user