Have you been able to add a confirmation step to automated rules/actions? I can raise UserError("Some warning here.") quited easily, but what if we want to override the warning and still perform the action?
@odoo-it-yourselfАй бұрын
So I've thought about doing a generic wizard for that, but I haven't yet. I always liked how you could do that with VBA, but I haven't found a way to do it in Odoo yet.
@cliffkujala3409Ай бұрын
@@odoo-it-yourself solving this would be hugely beneficial to expand the use case for warning dialogs via Automated Rules/Actions. There are so many scenarios where the extra moment in time to make a user rethink their actions can save mistakes from ever occurring. But we don't want to hard block those actions sometimes, just make a user pause to make sure everything is actually the way they want it before they commit. Like sending an email that contains words related to attachments, but there is no attachment on the email. I can catch that condition easily with domain and apply-to conditions of the automated rule, but so far only present a hard blocking message.
@paultchaparian92026 ай бұрын
It would be very interesting for example if the confirmation box appears based on conditions. For example, if a quotation has a negative margin when confirming to a sale order, a pop up appears asking the user if he wants to proceed.
@odoo-it-yourself6 ай бұрын
I agree. That would make a lot of sense. Let me see what I can figure out.
@a503121199445 ай бұрын
@@odoo-it-yourselfthat’s great idea hope you can make a video about it!
@odoo-it-yourself5 ай бұрын
My latest video should give you the tools you need to do this. kzbin.info/www/bejne/nqO0i2CFlNl-iNU