From 35e291341cf1d44a81de2b7f8c959d45d37272ef Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Wed, 27 May 2015 11:52:05 +0200 Subject: [PATCH] [VIEW] ~account_analytic field is mandatory and filter in account invoice form --- __openerp__.py | 5 ++++- view/account_invoice_view.xml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 view/account_invoice_view.xml diff --git a/__openerp__.py b/__openerp__.py index f7d782c..28f0e31 100644 --- a/__openerp__.py +++ b/__openerp__.py @@ -34,18 +34,21 @@ Account analytic module improvement It installs the profile for bike co-ops to manage some features like: * Analytic account is mandatory, and is filter (normal, with code and open only) in: - * expense form view + * expense form view; + * account invoice form view. * ... """, 'website': 'http://www.heureux-cyclage.org', 'images': [], 'depends': [ + 'account', 'analytic', 'hr_expense', ], 'init_xml': [ ], 'update_xml': [ + 'view/account_invoice_view.xml', 'view/hr_expense.xml', ], 'installable': True, diff --git a/view/account_invoice_view.xml b/view/account_invoice_view.xml new file mode 100644 index 0000000..04acc9b --- /dev/null +++ b/view/account_invoice_view.xml @@ -0,0 +1,18 @@ + + + + + account.invoice.form + account.invoice + + + + 1 + + + + + + + + -- 2.20.1