parameters: (self, vals)
return_statement: return True
docstring: Split writable fields of mail.alias and other fields alias fields will
          write with sudo and the other normally
docstring_summary: Split writable fields of mail.alias and other fields alias fields will
          write with sudo and the other normally
docstring_tokens: Split writable fields of mail . alias and other fields alias fields will write with sudo and the other normally
function: def write(self, vals):
          """ Split writable fields of mail.alias and other fields alias fields will
          write with sudo and the other normally """
          alias_vals, record_vals = self._alias_filter_fields(vals, filters=self.ALIAS_WRITEABLE_FIELDS)
          if record_vals:
              super(AliasMixin, self).write(record_vals)
          if alias_vals and (record_vals or self.check_access_rights('write', raise_exception=False)):
              self.mapped('alias_id').sudo().write(alias_vals)
  
          return True
function_tokens: def write ( self , vals ) : alias_vals , record_vals = self . _alias_filter_fields ( vals , filters = self . ALIAS_WRITEABLE_FIELDS ) if record_vals : super ( AliasMixin , self ) . write ( record_vals ) if alias_vals and ( record_vals or self . check_access_rights ( 'write' , raise_exception = False ) ) : self . mapped ( 'alias_id' ) . sudo ( ) . write ( alias_vals ) return True