[IMP] sale: add a settings section to display sale connectors
Prior to this commit, sale connectors (sale_amazon, sale_ebay, ...) had no dedicated section in sale's settings. If merged, this commit will allow to install such connectors in one click from the settings of the sale module. task-19575 closes odoo/odoo#35120 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
@@ -57,6 +57,7 @@ class ResConfigSettings(models.TransientModel):
|
||||
|
||||
module_product_email_template = fields.Boolean("Specific Email")
|
||||
module_sale_coupon = fields.Boolean("Coupons & Promotions")
|
||||
module_sale_amazon = fields.Boolean("Amazon Sync")
|
||||
|
||||
automatic_invoice = fields.Boolean("Automatic Invoice",
|
||||
help="The invoice is generated automatically and available in the customer portal "
|
||||
|
||||
@@ -417,6 +417,23 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h2 class="mt32">Connectors</h2>
|
||||
<div class="row mt16 o_settings_container">
|
||||
<div class="col-12 col-lg-6 o_setting_box">
|
||||
<div class="o_setting_left_pane">
|
||||
<field name="module_sale_amazon" widget="upgrade_boolean"/>
|
||||
</div>
|
||||
<div class="o_setting_right_pane">
|
||||
<label for="module_sale_amazon"/>
|
||||
<div class="text-muted">
|
||||
Import Amazon orders and sync deliveries
|
||||
</div>
|
||||
<div class="content-group"
|
||||
name="amazon_connector"
|
||||
attrs="{'invisible': [('module_sale_amazon', '=', False)]}"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="sale_ebay"/>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user