Merge pull request #470 from akretion/10.0-mig-account_move_line_payable_receivable_filter

10.0 mig account move line payable receivable filter
This commit is contained in:
Sylvain LE GAL
2017-03-31 21:01:07 +02:00
committed by GitHub
5 changed files with 101 additions and 68 deletions

View File

@@ -1,56 +1,54 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
===========================================
Account Move Line Payable Receivable Filter
===========================================
This module was written to extend the functionality of search on journal items
to allow you to filter by payable and receivable account
Installation
============
To install this module, you need to:
* Click on install button
Usage
=====
To use this module, you need to:
* go to Journal Items view and select new filter
For further information, please visit:
* https://www.odoo.com/forum/help-1
#. Go to ...
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/account-financial-tools/10.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_move_line_payable_receivable_filter%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 smash it by providing detailed and welcomed feedback.
Images
------
Credits
=======
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_.
Contributors:
-------------
Contributors
------------
* Stéphane Bidoul (ACSONE) <stephane.bidoul@acsone.eu>
* Adrien Peiffer (ACSONE) <adrien.peiffer@acsone.eu>
Maintainer:
-----------
Maintainer
----------
.. image:: http://odoo-community.org/logo.png
.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: http://odoo-community.org
:target: https://odoo-community.org
This module is maintained by the OCA.
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.
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.
To contribute to this module, please visit http://odoo-community.org.
To contribute to this module, please visit https://odoo-community.org.

View File

@@ -1,27 +1,7 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of account_move_line_payable_receivable_filter, an
# Odoo module.
#
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
#
# account_move_line_payable_receivable_filter 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.
#
# account_move_line_payable_receivable_filter 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 account_move_line_payable_receivable_filter.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
# © 2015 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
'name': "Account Move Line Payable Receivable Filter",
@@ -30,7 +10,7 @@
'author': "ACSONE SA/NV,Odoo Community Association (OCA)",
'website': "http://acsone.eu",
'category': 'Accounting & Finance',
'version': '8.0.1.0.0',
'version': '10.0.1.0.0',
'license': 'AGPL-3',
'depends': [
'account',
@@ -38,5 +18,5 @@
'data': [
'views/account_move_line_view.xml',
],
'installable': False,
'installable': True,
}

View File

@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_move_line_payable_receivable_filter
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 2016
msgid ""
msgstr ""
"Project-Id-Version: account-financial-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-01-09 01:25+0000\n"
"PO-Revision-Date: 2016-01-14 10:25+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: de\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_move_line_payable_receivable_filter
#: view:account.move.line:account_move_line_payable_receivable_filter.view_account_move_line_filter_inherit
msgid "Payable Account"
msgstr "Kreditorisches Konto"
#. module: account_move_line_payable_receivable_filter
#: view:account.move.line:account_move_line_payable_receivable_filter.view_account_move_line_filter_inherit
msgid "Receivable Account"
msgstr "Debitorisches Konto"

View File

@@ -0,0 +1,29 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_move_line_payable_receivable_filter
#
# Translators:
# Carles Antoli <carlesantoli@hotmail.com>, 2016
msgid ""
msgstr ""
"Project-Id-Version: account-financial-tools (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-04-02 01:08+0000\n"
"PO-Revision-Date: 2016-04-07 16:10+0000\n"
"Last-Translator: Carles Antoli <carlesantoli@hotmail.com>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-account-financial-tools-8-0/language/es/)\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"
#. module: account_move_line_payable_receivable_filter
#: view:account.move.line:account_move_line_payable_receivable_filter.view_account_move_line_filter_inherit
msgid "Payable Account"
msgstr "Cuenta a pagar"
#. module: account_move_line_payable_receivable_filter
#: view:account.move.line:account_move_line_payable_receivable_filter.view_account_move_line_filter_inherit
msgid "Receivable Account"
msgstr "Cuenta a cobrar"

View File

@@ -1,16 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_account_move_line_filter_inherit" model="ir.ui.view">
<field name="name">Journal Items (account_move_line_payable_receivable_filter)</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='posted']" position="after">
<filter name="payable" string="Payable Account" domain="[('account_id.type','=','payable')]"/>
<filter name="receivable" string="Receivable Account" domain="[('account_id.type','=','receivable')]"/>
</xpath>
</field>
</record>
</data>
</openerp>
<odoo>
<record id="view_account_move_line_filter_inherit" model="ir.ui.view">
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
<field name="arch" type="xml">
<xpath expr="//filter[@name='posted']" position="after">
<filter name="payable" string="Payable Account" domain="[('account_id.user_type_id.type','=','payable')]"/>
<filter name="receivable" string="Receivable Account" domain="[('account_id.user_type_id.type','=','receivable')]"/>
</xpath>
</field>
</record>
</odoo>