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?
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.
@@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.
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.
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?
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.
@@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.
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.
I agree. That would make a lot of sense. Let me see what I can figure out.
@@odoo-it-yourselfthat’s great idea hope you can make a video about it!
My latest video should give you the tools you need to do this.
ua-cam.com/video/hrQZ-O_tKRs/v-deo.html