Documentation ¶
Index ¶
- type CheckAccessRightsArgs
- type FieldsViewData
- type FieldsViewGetParams
- type LoadViewsArgs
- type LoadViewsData
- type LoadViewsOptions
- type NameSearchParams
- type OnChangeResult
- type ReadGroupParams
- type RecordIDWithName
- type SearchParams
- type SearchReadResult
- type SubViewData
- type Toolbar
- type WebReadGroupParams
- type WebReadGroupResult
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"` }
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 OnChangeResult ¶
type OnChangeResult struct { Value models.RecordData `json:"value"` Warning string `json:"warning"` Filters map[string][]interface{} `json:"domain"` }
OnChangeResult is the result struct type of the Onchange function
type ReadGroupParams ¶
type ReadGroupParams struct { 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.RecordData `json:"records"` Length int `json:"length"` }
SearchReadResult is the result struct for the searchRead function.
type SubViewData ¶
type SubViewData struct { Arch string `json:"arch"` Fields map[string]*models.FieldInfo `json:"fields"` }
SubViewData is the type expected for Views in FieldsViewData
type Toolbar ¶
type Toolbar struct { Print []*actions.Action `json:"print"` Action []*actions.Action `json:"action"` Relate []*actions.Action `json:"relate"` }
A Toolbar holds the actions in the toolbar of the action manager
type WebReadGroupParams ¶
type WebReadGroupParams struct { Domain domains.Domain `json:"domain"` Fields []string `json:"fields"` GroupBy []string `json:"groupby"` Limit interface{} `json:"limit"` Offset int `json:"offset"` Order string `json:"orderby"` Lazy bool `json:"lazy"` Expand bool `json:"expand"` ExpandLimit interface{} `json:"expand_limit"` ExpandOrder string `json:"expand_orderby"` }
WebReadGroupParams is the args struct for the WebReadGroup method
type WebReadGroupResult ¶
type WebReadGroupResult struct { Groups []models.FieldMap `json:"groups"` Length int `json:"length"` }
WebReadGroupResult is the result type of the WebReadGroup method