[FIX] sale, website_sale: enterprise symbol in settings

In the sale settings view, the field company research hasn't
the enterprise symbol though the related module is in enterprise.
It's the same problem for the Company Research option in the website
admin settings.

Both field declaration use a string attribute in the label tag.
but it is needed to use a "for" attribute. The Upgrade widgets only
put the "enterprise" span after the enterprise label, wich is found
by looking on node having a for attribute with "module_ " and its value.

This commit use an attribute "for" instead of the attribute "string"
in the label declaration.
This commit is contained in:
amoyaux
2017-02-13 15:45:01 +01:00
committed by Simon Lejeune
parent fc80be928a
commit 2ac3d7b570
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ class SaleConfiguration(models.TransientModel):
module_timesheet_grid_sale = fields.Boolean("Timesheets")
module_sale_ebay = fields.Boolean("eBay")
module_print_docsaway = fields.Boolean("Docsaway")
module_web_clearbit = fields.Boolean("Clearbit")
module_web_clearbit = fields.Boolean("Company Research")
module_product_email_template = fields.Boolean("Specific Email")
module_sale_coupon = fields.Boolean("Manage coupons and promotional offers")
@@ -434,7 +434,7 @@
<field name="module_web_clearbit" widget="upgrade_boolean"/>
</div>
<div class="o_setting_right_pane">
<label string="Company Research"/>
<label for="module_web_clearbit"/>
<div class="text-muted">
Look up company information (name, logo, etc.)
</div>
+1 -1
View File
@@ -28,7 +28,7 @@ class WebsiteConfigSettings(models.TransientModel):
module_delivery_usps = fields.Boolean("USPS integration")
module_sale_ebay = fields.Boolean("eBay connector")
module_sale_coupon = fields.Boolean("Manage coupons and promotional offers")
module_sale_coupon = fields.Boolean("Discount Programs")
group_website_multiimage = fields.Boolean(string='Multi-Images', implied_group='website_sale.group_website_multi_image')
group_discount_per_so_line = fields.Boolean(string="Discounted Prices", implied_group='sale.group_discount_per_so_line')
@@ -30,7 +30,7 @@
<field name="module_sale_coupon" widget="upgrade_boolean"/>
</div>
<div class="o_setting_right_pane">
<label string="Discount Programs"/>
<label for="module_sale_coupon"/>
<div class="text-muted">
Manage promotion &amp; coupon programs
</div>