From c52d809032036d9c135ea490c9a32c8bf0dd228d Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Fri, 14 Sep 2018 10:13:02 +0200 Subject: [PATCH] [IMP] account: add setting to hide the products in bills Was part of PR #26876 Was part of task #1882329 --- addons/account/models/res_config_settings.py | 4 ++++ addons/account/security/account_security.xml | 11 +++++++++++ addons/account/views/account_invoice_view.xml | 2 +- addons/account/views/res_config_settings_views.xml | 11 +++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/addons/account/models/res_config_settings.py b/addons/account/models/res_config_settings.py index 07b1f3dc92f..2c2372ddaa7 100644 --- a/addons/account/models/res_config_settings.py +++ b/addons/account/models/res_config_settings.py @@ -43,6 +43,10 @@ class ResConfigSettings(models.TransientModel): "Show line subtotals with taxes (B2C)", implied_group='account.group_show_line_subtotals_tax_included', group='base.group_portal,base.group_user,base.group_public') + group_products_in_bills = fields.Boolean(string="Use products in vendor bills", + implied_group='account.group_products_in_bills', + group='base.group_user', + help="Disable this option to use a simplified versions of vendor bills, where products are hidden.") show_line_subtotals_tax_selection = fields.Selection([ ('tax_excluded', 'Tax-Excluded'), ('tax_included', 'Tax-Included')], string="Line Subtotals Tax Display", diff --git a/addons/account/security/account_security.xml b/addons/account/security/account_security.xml index d33d6cd6e56..1f577711a6c 100644 --- a/addons/account/security/account_security.xml +++ b/addons/account/security/account_security.xml @@ -65,8 +65,14 @@ + + Use products on vendor bills + + + + @@ -183,5 +189,10 @@ [('invoice_id.message_partner_ids','child_of',[user.commercial_partner_id.id])] + + + + + diff --git a/addons/account/views/account_invoice_view.xml b/addons/account/views/account_invoice_view.xml index efc11c97b45..b6b2a949e98 100644 --- a/addons/account/views/account_invoice_view.xml +++ b/addons/account/views/account_invoice_view.xml @@ -308,7 +308,7 @@ - diff --git a/addons/account/views/res_config_settings_views.xml b/addons/account/views/res_config_settings_views.xml index d3107e75de4..2f9d9e93f9e 100644 --- a/addons/account/views/res_config_settings_views.xml +++ b/addons/account/views/res_config_settings_views.xml @@ -537,6 +537,17 @@ +
+
+ +
+
+
+

Automated Entries