Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

-raise Warning- in automated actions not working!!! V16

2 Comments
Avatar
Discard
Avatar
odoo
-

It worked!!! Thank you very very very very much!!!

Avatar
odoo
-

what would be the code to avoid creating contact with same email?

2 Answers
0
Avatar
odoo
Best Answer

Hi,

Instead of Warning, use UserError and  see.


# - UserError: exception class for raising user-facing warning messages


Thanks 

Avatar
Discard
0
Avatar
odoo
Best Answer

UserError blocks the execution. Is there a function to just show a warning, but not stop execution?

1 Comment
Avatar
Discard
Avatar
odoo
-

Hi Trond, I have the same issue, got a solution please ?