From 6c8f51b3112980f7f662692bbd5d1f570a792024 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 7 Jan 2015 12:24:15 +0100 Subject: [PATCH] account_invoice_sale_link: add sale_ids field in invoice form view. --- account_invoice_sale_link/__openerp__.py | 4 ++- .../account_invoice_view.xml | 25 +++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 account_invoice_sale_link/account_invoice_view.xml diff --git a/account_invoice_sale_link/__openerp__.py b/account_invoice_sale_link/__openerp__.py index 58d2d7f..6188372 100644 --- a/account_invoice_sale_link/__openerp__.py +++ b/account_invoice_sale_link/__openerp__.py @@ -33,12 +33,14 @@ Account Invoice Sale Link On the customer invoice report, you usually need to display the customer order number. For that, you need to have the link from invoices to sale orders, and this link is not available in the official addons. +This module adds a field *sale_ids* on the object account.invoice, which is the reverse many2many field of the field *invoice_ids* of the object sale.order. It is displayed in a dedicated tab on the invoice form view. + Please contact Alexis de Lattre from Akretion for any help or question about this module. """, 'author': 'Akretion', 'website': 'http://www.akretion.com', 'depends': ['sale'], - 'data': [], + 'data': ['account_invoice_view.xml'], 'installable': True, 'active': False, } diff --git a/account_invoice_sale_link/account_invoice_view.xml b/account_invoice_sale_link/account_invoice_view.xml new file mode 100644 index 0000000..53f8b5f --- /dev/null +++ b/account_invoice_sale_link/account_invoice_view.xml @@ -0,0 +1,25 @@ + + + + + + + + account_invoice_sale_link.invoice.form + account.invoice + + + + + + + + + + + +