odoo/odoo#198691

Created by fw-bot
Merged at 0d06713a219634942150bc8a223b2dbe21c04cc6

Statuses:

label
odoo-dev:saas-18.2-18.0-ensure-question-selection-has-answers-akap-417180-fw
head
0845b17caa44164f9a29aba5d6a52fd080e94579
merged
8 months ago by Discuss, Akash Parmar (akap)
odoo/odoo
18.0 #197104
saas-18.1 #198309
saas-18.2 #198691
saas-18.3
saas-18.4
19.0
master #198707

[FW][FIX] im_livechat: ensure 'question selection' step has answers

Current behavior before PR:

It was possible to save a step with step_type "question selection" without any answers. However, this would cause an error when the bot was executed.

Desired behavior after PR is merged:

A constraint has been added to ensure that a "question selection" step cannot be saved without at least one answer.

task-id:4522835


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #198309
Forward-Port-Of: #197104