From 5f7fc56b7aa47b9fa6015a05f8d755f1f9670076 Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Tue, 25 Apr 2017 10:39:08 +0200 Subject: [PATCH] [FIX] website_sale: fix settings for front end group_xxx During refacotring of the new settings, the group='xxx' has been removed. Withtout it, the implied_group are only apply to the group Employee. In this case we want that group_portal and group_public have also the group to have the option on the website. opw-740751 --- addons/website_sale/models/res_config.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/addons/website_sale/models/res_config.py b/addons/website_sale/models/res_config.py index cfc9bdf5844..81da35177ca 100644 --- a/addons/website_sale/models/res_config.py +++ b/addons/website_sale/models/res_config.py @@ -30,7 +30,7 @@ class WebsiteConfigSettings(models.TransientModel): module_sale_ebay = fields.Boolean("eBay connector") module_sale_coupon = fields.Boolean("Discount Programs") - group_website_multiimage = fields.Boolean(string='Multi-Images', implied_group='website_sale.group_website_multi_image') + group_website_multiimage = fields.Boolean(string='Multi-Images', implied_group='website_sale.group_website_multi_image', group='base.group_portal,base.group_user,base.group_public') group_discount_per_so_line = fields.Boolean(string="Discounted Prices", implied_group='sale.group_discount_per_so_line') group_delivery_invoice_address = fields.Boolean(string="Shipping Address", implied_group='sale.group_delivery_invoice_address') @@ -58,8 +58,14 @@ class WebsiteConfigSettings(models.TransientModel): order_mail_template = fields.Many2one('mail.template', string='Order Confirmation Email', default=_default_order_mail_template, domain="[('model', '=', 'sale.order')]", help="Email sent to customer at the end of the checkout process") - group_show_price_subtotal = fields.Boolean("Show subtotal", implied_group='sale.group_show_price_subtotal') - group_show_price_total = fields.Boolean("Show total", implied_group='sale.group_show_price_total') + group_show_price_subtotal = fields.Boolean( + "Show subtotal", + implied_group='sale.group_show_price_subtotal', + group='base.group_portal,base.group_user,base.group_public') + group_show_price_total = fields.Boolean( + "Show total", + implied_group='sale.group_show_price_total', + group='base.group_portal,base.group_user,base.group_public') default_invoice_policy = fields.Selection([ ('order', 'Ordered quantities'),