webtypes

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2021 License: LGPL-3.0 Imports: 8 Imported by: 0

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"`
}

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

type RecordIDWithName struct {
	ID   int64
	Name string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL