Warnings without the option to silence in future

15 views
Skip to first unread message

Jon Levy

unread,
Jan 17, 2018, 12:02:16 PM1/17/18
to tryton
Warnings give the user the option to check a box and not receive the warning in the future. If I don't want to provide the user to be able to silence in future, is it appropriate to instead call raise_user_error with raise_exception=False?

Cédric Krier

unread,
Jan 17, 2018, 1:05:06 PM1/17/18
to tryton
No, this option is a hack to retrieve translated string until we have
https://bugs.tryton.org/issue3672

There is no option to remove this option because we think that the user
should always have this choice.
But usually, you just need to have a warning name created wisely.

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Jon Levy

unread,
Jan 17, 2018, 1:17:33 PM1/17/18
to tryton
On Wednesday, January 17, 2018 at 1:05:06 PM UTC-5, Cédric Krier wrote:

Thank you.
Reply all
Reply to author
Forward
0 new messages