odoorpc

package module
v0.0.0-...-e2109df Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 1 Imported by: 3

README

odoorpc

Odoo RPC Library

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Odoo

type Odoo interface {
	Login(ctx context.Context) (err error)
	Create(ctx context.Context, model string, values map[string]any) (row int, err error)
	Load(ctx context.Context, model string, header []string, values [][]any) (ids []int, err error)
	Count(ctx context.Context, model string, filters ...any) (count int, err error)
	FieldsGet(ctx context.Context, model string, fields []string, fieldAttributes ...string) (recordFields map[string]any, err error)
	GetID(ctx context.Context, model string, filters ...any) (id int, err error)
	Search(ctx context.Context, model string, filters ...any) (ids []int, err error)
	Read(ctx context.Context, model string, ids []int, fields ...string) (records []map[string]any, err error)
	SearchRead(ctx context.Context, model string, offset int, limit int, fields []string, filters ...any) (records []map[string]any, err error)
	Write(ctx context.Context, model string, recordID int, values map[string]any) (result bool, err error)
	Unlink(ctx context.Context, model string, recordIDs []int) (result bool, err error)
	Execute(ctx context.Context, model string, method string, args []any) (result bool, err error)
	ExecuteKw(ctx context.Context, model string, method string, args []any, kwargs []map[string]any) (result bool, err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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