Skip to content

Commit

Permalink
[FIX] website_sale: fix settings for front end group_xxx
Browse files Browse the repository at this point in the history
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
  • Loading branch information
JKE-be committed Apr 25, 2017
1 parent f698ed5 commit 5f7fc56
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions addons/website_sale/models/res_config.py
Expand Up @@ -30,7 +30,7 @@ def _default_order_mail_template(self):
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')

Expand Down Expand Up @@ -58,8 +58,14 @@ def _default_order_mail_template(self):
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'),
Expand Down

0 comments on commit 5f7fc56

Please sign in to comment.