Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add invoice number view tree #90

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
32 changes: 32 additions & 0 deletions invoice_number_view_tree/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License: AGPL-3

Invoice number:
===============

supplier_invoice_number field added in the tree and search view by
inheritance

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add Bug Tracker section, see https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst as reference.

Credits
=======

Contributors
------------

* Fernando.Rangel <fernando.rangel@vauxoo.com>
* Alessio Gerace <alessio.gerace@agilebg.com>

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
: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.

To contribute to this module, please visit http://odoo-community.org.
25 changes: 25 additions & 0 deletions invoice_number_view_tree/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# -*- encoding: utf-8 -*-
#
# Module Writen to OpenERP, Open Source Management Solution
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/writen/written

#
# Copyright (c) 2013 Vauxoo - http://www.vauxoo.com/
# All Rights Reserved.
# info Vauxoo (info@vauxoo.com)
#
# Coded by: Fernando.Rangel (fernando.rangel@vauxoo.com)
#
#
# 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/>.
#
#
49 changes: 49 additions & 0 deletions invoice_number_view_tree/__openerp__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# -*- encoding: utf-8 -*-
#
# Module Writen to OpenERP, Open Source Management Solution
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

#
# Copyright (c) 2013 Vauxoo - http://www.vauxoo.com/
# All Rights Reserved.
# info Vauxoo (info@vauxoo.com)
#
# Copyright (C) 2015 Agile Business Group <http://www.agilebg.com>
#
# Coded by: Fernando.Rangel (fernando.rangel@vauxoo.com)
#
#
# 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": "Invoice number",
"version": "1.0",
"author": "Vauxoo",
"category": "Localization",
"description": """""",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this key

"website": "http://www.vauxoo.com/",
"license": "AGPL-3",
"depends": [
"account"
],
"demo": [],
"data": [
"view/invoice_number.xml"
],
"test": [],
"js": [],
"css": [],
"qweb": [],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove empty keys.

"installable": True,
"auto_install": False
}
21 changes: 21 additions & 0 deletions invoice_number_view_tree/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-07-23 19:38+0000\n"
"PO-Revision-Date: 2013-07-23 14:47-0600\n"
"Last-Translator: Ulises <ulises@vauxoo.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"

#. module: invoice_number_view_tree
#: view:account.invoice:0
msgid "Supplier Invoice Number"
msgstr "No. Factura Proveedor"

21 changes: 21 additions & 0 deletions invoice_number_view_tree/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of OpenERP Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-07-23 19:38+0000\n"
"PO-Revision-Date: 2013-07-23 14:47-0600\n"
"Last-Translator: Ulises <ulises@vauxoo.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: \n"

#. module: invoice_number_view_tree
#: view:account.invoice:0
msgid "Supplier Invoice Number"
msgstr "No. Fattura Fornitore"

30 changes: 30 additions & 0 deletions invoice_number_view_tree/view/invoice_number.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>

<record model="ir.ui.view" id="view_account_invoice_tree">
<field name="name">view.account_invoice.tree</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_tree" />
<field name="arch" type="xml">
<xpath expr="//field[@name='date_invoice']" position="before">
<field string="Supplier Invoice Number" name="supplier_invoice_number"/>
</xpath>
</field>
</record>

<record model="ir.ui.view" id="view_account_invoice_search">
<field name="name">view.account.invoice.search</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.view_account_invoice_filter" />
<field name="arch" type="xml">
<xpath expr="/search/field[@name='number']" position="before">
<field name="supplier_invoice_number"/>
</xpath>
</field>
</record>

</data>
</openerp>