original_docstring: Raises UserError if given alias name is already assigned
docstring: Raises UserError if given alias name is already assigned
docstring_tokens: Raises UserError if given alias name is already assigned
code: def write(self, vals):
          """"Raises UserError if given alias name is already assigned"""
          if vals.get('alias_name') and self.ids:
              vals['alias_name'] = self._clean_and_check_unique(vals.get('alias_name'))
          return super(Alias, self).write(vals)
code_tokens: def write ( self , vals ) : if vals . get ( 'alias_name' ) and self . ids : vals [ 'alias_name' ] = self . _clean_and_check_unique ( vals . get ( 'alias_name' ) ) return super ( Alias , self ) . write ( vals )
short_docstring: Raises UserError if given alias name is already assigned
short_docstring_tokens: Raises UserError if given alias name is already assigned
comment: """"Raises UserError if given alias name is already assigned"""