From b2b073a2d76e0e15694a6a0b37f92028cdf3b88e Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Tue, 3 Feb 2015 17:30:04 +0100 Subject: [PATCH] Add module account_invoice_groupby_commercial_partner --- .../__init__.py | 1 + .../__openerp__.py | 43 +++++++++++++++++++ .../account_invoice_view.xml | 23 ++++++++++ 3 files changed, 67 insertions(+) create mode 100644 account_invoice_groupby_commercial_partner/__init__.py create mode 100644 account_invoice_groupby_commercial_partner/__openerp__.py create mode 100644 account_invoice_groupby_commercial_partner/account_invoice_view.xml diff --git a/account_invoice_groupby_commercial_partner/__init__.py b/account_invoice_groupby_commercial_partner/__init__.py new file mode 100644 index 0000000..dae354a --- /dev/null +++ b/account_invoice_groupby_commercial_partner/__init__.py @@ -0,0 +1 @@ +# -*- encoding: utf-8 -*- diff --git a/account_invoice_groupby_commercial_partner/__openerp__.py b/account_invoice_groupby_commercial_partner/__openerp__.py new file mode 100644 index 0000000..4df417f --- /dev/null +++ b/account_invoice_groupby_commercial_partner/__openerp__.py @@ -0,0 +1,43 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Account Invoice Groupby Commercial Partner module for Odoo +# Copyright (C) 2015 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# +# 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 . +# +############################################################################## + + +{ + 'name': 'Account Invoice Groupby Commercial Partner', + 'version': '0.1', + 'category': 'Accounting & Finance', + 'license': 'AGPL-3', + 'summary': 'Group by commercial partner instead of partner in invoices', + 'description': """ +Account Invoice Group-by Commercial Partner +=========================================== + +By default Odoo v8 makes a groupby on partner_id on invoice ; this module changes this to groupby commercial_partner_id. + +This module has been written by Alexis de Lattre from Akretion . + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['account'], + 'data': ['account_invoice_view.xml'], + 'installable': True, +} diff --git a/account_invoice_groupby_commercial_partner/account_invoice_view.xml b/account_invoice_groupby_commercial_partner/account_invoice_view.xml new file mode 100644 index 0000000..0a6f998 --- /dev/null +++ b/account_invoice_groupby_commercial_partner/account_invoice_view.xml @@ -0,0 +1,23 @@ + + + + + + + + account.invoice.groupby.commercial.partner + account.invoice + + + + {'group_by':'commercial_partner_id'} + + + + + +