(self)
Checks that names are correct (not formed by only one string)
Checks that names are correct (not formed by only one string)
Checks that names are correct ( not formed by only one string )
def _check_names(self):
        """Checks that names are correct (not formed by only one string)"""
        for item in self:
            # Check Full name (contact_name)
            if not item.contact_name or len(item.contact_name.split(" ")) < 2:
                raise exceptions.Warning(
                    _("Contact name (Full name) must have name and surname")
                )
def _check_names ( self ) : for item in self : # Check Full name (contact_name) if not item . contact_name or len ( item . contact_name . split ( " " ) ) < 2 : raise exceptions . Warning ( _ ( "Contact name (Full name) must have name and surname" ) )