Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckAccessRightsArgs ¶
type CheckAccessRightsArgs struct { Operation string `json:"operation"` RaiseException bool `json:"raise_exception"` }
CheckAccessRightsArgs is the args struct for the CheckAccessRights method
type FieldsViewData ¶
type FieldsViewData struct { Name string `json:"name"` Arch string `json:"arch"` ViewID string `json:"view_id"` Model string `json:"model"` Type views.ViewType `json:"type"` Fields map[string]*models.FieldInfo `json:"fields"` Toolbar Toolbar `json:"toolbar"` FieldParent string `json:"field_parent"` }
FieldsViewData is the return type string for the FieldsViewGet function
type FieldsViewGetParams ¶
type FieldsViewGetParams struct { ViewID string `json:"view_id"` ViewType string `json:"view_type"` Toolbar bool `json:"toolbar"` }
FieldsViewGetParams is the args struct for the FieldsViewGet function
type LoadViewsArgs ¶
type LoadViewsArgs struct { Views []views.ViewTuple `json:"views"` Options LoadViewsOptions `json:"options"` }
LoadViewsArgs is the argument struct for the LoadViews method.
type LoadViewsData ¶
type LoadViewsData struct { FieldsViews map[views.ViewType]*FieldsViewData `json:"fields_views"` Filters []models.FieldMap `json:"filters"` Fields map[string]*models.FieldInfo `json:"fields"` }
LoadViewsData is the result struct of the LoadViews method
type LoadViewsOptions ¶
type LoadViewsOptions struct { Toolbar bool `json:"toolbar"` LoadFilters bool `json:"load_filters"` ActionID string `json:"action_id"` LoadFields bool `json:"load_fields"` }
LoadViewsOptions are options that can be passed to LoadViews method
type NameSearchParams ¶
type NameSearchParams struct { Args domains.Domain `json:"args"` Name string `json:"name"` Operator operator.Operator `json:"operator"` Limit interface{} `json:"limit"` }
NameSearchParams is the args struct for the NameSearch function
type ReadGroupParams ¶
type ReadGroupParams struct { //domain, fields, groupby, offset=0, limit=None, context=None, orderby=False, lazy=True Domain domains.Domain `json:"domain"` Fields []string `json:"fields"` GroupBy []string `json:"groupby"` Offset int `json:"offset"` Limit interface{} `json:"limit"` Order string `json:"orderby"` Lazy bool `json:"lazy"` }
ReadGroupParams is the args struct for the ReadGroup method
type RecordIDWithName ¶
RecordIDWithName is a tuple with an ID and the display name of a record
func (RecordIDWithName) MarshalJSON ¶
func (rf RecordIDWithName) MarshalJSON() ([]byte, error)
MarshalJSON for RecordIDWithName type
func (*RecordIDWithName) UnmarshalJSON ¶
func (rf *RecordIDWithName) UnmarshalJSON(data []byte) error
UnmarshalJSON for RecordIDWithName type
type SearchParams ¶
type SearchParams struct { Domain domains.Domain `json:"domain"` Fields []string `json:"fields"` Offset int `json:"offset"` Limit interface{} `json:"limit"` Order string `json:"order"` }
SearchParams is the args struct for the SearchRead method
type SearchReadResult ¶
type SearchReadResult struct { Records []models.FieldMap `json:"records"` Length int `json:"length"` }
SearchReadResult is the result struct for the searchRead function.