Hello!!
Please, i have a field that i dont want to be an empty string.
I tried those choices:
1/ if ' ' in project:
My_error_Msg2 = 'Please your project can not be empty' raise osv.except_osv(_("Error!"), _(My_error_Msg2))
----> when the field contain two string separated by a space it raises an exception
2/ if project == ' ':
My_error_Msg2 = 'Please your project can not be empty' raise osv.except_osv(_("Error!"), _(My_error_Msg2))
----> it doesnt raise an exception
Please help