It may be confusing that a constraint is not triggered in a name_create call. Testing the absence of value should be done in an override of create, not in a api.constrains. Closes #18382
openerp
odoo