[FIX] sale_quotation_builder: remove warning when installed

We don't need to clutter the interface with this warning once the module is installed.
This commit is contained in:
Sébastien Theys
2018-12-18 13:02:06 +00:00
parent 42ded05f4b
commit f763193374
3 changed files with 12 additions and 1 deletions
@@ -36,7 +36,6 @@
<label for="module_sale_quotation_builder"/>
<div class="text-muted">
Design your quotation templates using building blocks<br/>
<!-- TODO SEB don't show this after the module is installed -->
<em attrs="{'invisible': [('module_sale_quotation_builder','=',False)]}">Warning: this option will install the Website app.</em>
</div>
</div>
@@ -13,6 +13,7 @@
'data/sale_order_template_data.xml',
'views/sale_portal_templates.xml',
'views/sale_order_template_views.xml',
'views/res_config_settings_views.xml',
'views/sale_order_views.xml',
],
'installable': True,
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="sale_quotation_builder.res_config_settings_view_form_inherit" model="ir.ui.view">
<field name="name">res.config.settings.view.form.inherit.sale.management.inherit.sale.quotation.builder</field>
<field name="model">res.config.settings</field>
<field name="inherit_id" ref="sale_management.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//label[@for='module_sale_quotation_builder']/following::div/em" position="replace"/>
</field>
</record>
</odoo>