This commit ports the custom implementation of the view form for the chatbot scripts to the new OWL framework. The goal is the same as the base customization, which is mainly to correctly assign a sequence to every step and save the form in-between every new steps. This is necessary to allow the end-user to easily configure its script, since steps can depend on each other. More details in https://github.com/odoo/odoo/pull/84000 In addition, we slightly adapt the CRM bridge to enable no_open for the sales team field. This avoids issues when the user tries to open modals on top of modals. Task-2981969 closes odoo/odoo#100940 X-original-commit: 68d5da02642d22551603e4c6b5583755b2f4fc2d Related: odoo/enterprise#31688 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
17 lines
659 B
XML
17 lines
659 B
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<odoo><data>
|
|
|
|
<record id="chatbot_script_step_view_form" model="ir.ui.view">
|
|
<field name="name">chatbot.script.step.view.form.inherit.crm.livechat</field>
|
|
<field name="model">chatbot.script.step</field>
|
|
<field name="inherit_id" ref="im_livechat.chatbot_script_step_view_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="step_type" position="after">
|
|
<field name="crm_team_id" attrs="{'invisible': [('step_type', '!=', 'create_lead')]}"
|
|
options="{'no_open': True}"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
|
|
</data></odoo>
|