odoo

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

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-odoo

An Odoo API client enabling Go programs to interact with Odoo in a simple and uniform way.

GitHub license GoDoc Go Report Card GitHub issues

Usage

Generate your models

Note: Generating models require to follow instructions in GOPATH mode. Refactoring for go modules will come soon.

Define the environment variables to be able to connect to your odoo instance :

(Don't set ODOO_MODELS if you want all your models to be generated)

export ODOO_ADMIN=admin // ensure the user has sufficient permissions to generate models
export ODOO_PASSWORD=password
export ODOO_DATABASE=odoo
export ODOO_URL=http://localhost:8069
export ODOO_MODELS="crm.lead"

ODOO_REPO_PATH is the path where the repository will be downloaded (by default its GOPATH):

export ODOO_REPO_PATH=$(echo $GOPATH | awk -F ':' '{ print $1 }')/src/github.com/skilld-labs/go-odoo

Download library and generate models :

GO111MODULE="off" go get github.com/skilld-labs/go-odoo
cd $ODOO_REPO_PATH
ls | grep -v "conversion.go\|generator\|go.mod\|go-odoo-generator\|go.sum\|ir_model_fields.go\|ir_model.go\|LICENSE\|odoo.go\|README.md\|types.go\|version.go" // keep only go-odoo core files
GO111MODULE="off" go generate

That's it ! Your models have been generated !

Current generated models
Core models

Core models are ir_model.go and ir_model_fields.go since there are used to generate models.

It is highly recommanded to not remove them, since you would not be able to generate models again.

Custom skilld-labs models

All others models (not core one) are specific to skilld-labs usage. They use our own odoo instance which is version 11. (note that models structure changed between odoo major versions).

If you're ok to work with those models, you can use this library instance, if not you should fork the repository and generate you own models by following steps above.

Enjoy coding!

(All exemples on this README are based on model crm.lead)

package main

import (
	odoo "github.com/skilld-labs/go-odoo"
)

func main() {
	c, err := odoo.NewClient(&odoo.ClientConfig{
		Admin:    "admin",
		Password: "password",
		Database: "odoo",
		URL:      "http://localhost:8069",
	})
	if err != nil {
		log.Fatal(err)
	}
	crm := &odoo.CrmLead{
		Name: odoo.NewString("my first opportunity"),
	}
	if id, err := c.CreateCrmLead(crm); err != nil {
		log.Fatal(err)
	} else {
		fmt.Printf("the id of the new crm.lead is %d", id)
	}
}

Models

Generated models contains high level functions to interact with models in an easy and golang way. It covers the most common usage and contains for each models those functions :

Create
func (c *Client) CreateCrmLead(cl *CrmLead) (int64, error) {}
Update
func (c *Client) UpdateCrmLead(cl *CrmLead) error {}
func (c *Client) UpdateCrmLeads(ids []int64, cl *CrmLead) error {}
Delete
func (c *Client) DeleteCrmLead(id int64) error {}
func (c *Client) DeleteCrmLeads(ids []int64) error {}
Get
func (c *Client) GetCrmLead(id int64) (*CrmLead, error) {}
func (c *Client) GetCrmLeads(ids []int64) (*CrmLeads, error) {}
Find

Find is powerful and allow you to query a model and filter results. Criteria and Options

func (c *Client) FindCrmLead(criteria *Criteria) (*CrmLead, error) {}
func (c *Client) FindCrmLeads(criteria *Criteria, options *Options) (*CrmLeads, error) {}
Conversion

Generated models can be converted to Many2One easily.

func (cl *CrmLead) Many2One() *Many2One {}

Types

The library contains custom types to improve the usability :

Basic types
func NewString(v string) *String {}
func (s *String) Get() string {}

func NewInt(v int64) *Int {}
func (i *Int) Get() int64 {}

func NewBool(v bool) *Bool {}
func (b *Bool) Get() bool {}

func NewSelection(v interface{}) *Selection {}
func (s *Selection) Get() (interface{}) {}

func NewTime(v time.Time) *Time {}
func (t *Time) Get() time.Time {}

func NewFloat(v float64) *Float {}
func (f *Float) Get() float64 {}
Relational types
func NewMany2One(id int64, name string) *Many2One {}
func (m *Many2One) Get() int64 {}

func NewRelation() *Relation {}
func (r *Relation) Get() []int64 {}

one2many and many2many are represented by the Relation type and allow you to execute special actions as defined here.

Criteria and Options

Criteria is a set of criterion and allow you to query models. More informations

Options allow you to filter results.

cls, err := c.FindCrmLeads(odoo.NewCriteria().Add("user_id.name", "=", "John Doe"), odoo.NewOptions().Limit(2))

Low level functions

All high level functions are based on basic odoo webservices functions.

These functions give you more flexibility but less usability. We recommand you to use models functions (high level).

Here are available low level functions :

func (c *Client) Create(model string, values interface{}) (int64, error) {}
func (c *Client) Update(model string, ids []int64, values interface{}) error {}
func (c *Client) Delete(model string, ids []int64) error {}
func (c *Client) SearchRead(model string, criteria *Criteria, options *Options, elem interface{}) error {}
func (c *Client) Read(model string, ids []int64, options *Options, elem interface{}) error {}
func (c *Client) Count(model string, criteria *Criteria, options *Options) (int64, error) {}
func (c *Client) Search(model string, criteria *Criteria, options *Options) ([]int64, error) {}
func (c *Client) FieldsGet(model string, options *Options) (map[string]interface{}, error) {}
func (c *Client) ExecuteKw(method, model string, args []interface{}, options *Options) (interface{}, error) {}

Todo

  • Tests
  • Modular template

Issues

Documentation

Overview

Package odoo contains client code of library

Index

Constants

View Source
const AccountAccountModel = "account.account"

AccountAccountModel is the odoo model name.

View Source
const AccountAnalyticAccountModel = "account.analytic.account"

AccountAnalyticAccountModel is the odoo model name.

View Source
const AccountAnalyticLineModel = "account.analytic.line"

AccountAnalyticLineModel is the odoo model name.

View Source
const AccountAnalyticTagModel = "account.analytic.tag"

AccountAnalyticTagModel is the odoo model name.

View Source
const AccountInvoiceLineModel = "account.invoice.line"

AccountInvoiceLineModel is the odoo model name.

View Source
const AccountInvoiceModel = "account.invoice"

AccountInvoiceModel is the odoo model name.

View Source
const AccountJournalModel = "account.journal"

AccountJournalModel is the odoo model name.

View Source
const CrmLeadModel = "crm.lead"

CrmLeadModel is the odoo model name.

View Source
const CrmLeadTagModel = "crm.lead.tag"

CrmLeadTagModel is the odoo model name.

View Source
const IrModelFieldsModel = "ir.model.fields"

IrModelFieldsModel is the odoo model name

View Source
const IrModelModel = "ir.model"

IrModelModel is the odoo model name

View Source
const IrModuleModuleModel = "ir.module.module"

IrModuleModuleModel is the odoo model name.

View Source
const MailFollowersModel = "mail.followers"

MailFollowersModel is the odoo model name.

View Source
const ProductProductModel = "product.product"

ProductProductModel is the odoo model name.

View Source
const ProductSupplierinfoModel = "product.supplierinfo"

ProductSupplierinfoModel is the odoo model name.

View Source
const ProjectProjectModel = "project.project"

ProjectProjectModel is the odoo model name.

View Source
const ProjectTaskModel = "project.task"

ProjectTaskModel is the odoo model name.

View Source
const ResCompanyModel = "res.company"

ResCompanyModel is the odoo model name.

View Source
const ResPartnerCategoryModel = "res.partner.category"

ResPartnerCategoryModel is the odoo model name.

View Source
const ResPartnerModel = "res.partner"

ResPartnerModel is the odoo model name.

View Source
const ResUsersModel = "res.users"

ResUsersModel is the odoo model name.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountAccount

type AccountAccount struct {
	LastUpdate             *Time      `xmlrpc:"__last_update,omptempty"`
	Code                   *String    `xmlrpc:"code,omptempty"`
	CompanyId              *Many2One  `xmlrpc:"company_id,omptempty"`
	CreateDate             *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid              *Many2One  `xmlrpc:"create_uid,omptempty"`
	CurrencyId             *Many2One  `xmlrpc:"currency_id,omptempty"`
	Deprecated             *Bool      `xmlrpc:"deprecated,omptempty"`
	DisplayName            *String    `xmlrpc:"display_name,omptempty"`
	GroupId                *Many2One  `xmlrpc:"group_id,omptempty"`
	Id                     *Int       `xmlrpc:"id,omptempty"`
	InternalType           *Selection `xmlrpc:"internal_type,omptempty"`
	LastTimeEntriesChecked *Time      `xmlrpc:"last_time_entries_checked,omptempty"`
	Name                   *String    `xmlrpc:"name,omptempty"`
	Note                   *String    `xmlrpc:"note,omptempty"`
	OpeningCredit          *Float     `xmlrpc:"opening_credit,omptempty"`
	OpeningDebit           *Float     `xmlrpc:"opening_debit,omptempty"`
	Reconcile              *Bool      `xmlrpc:"reconcile,omptempty"`
	TagIds                 *Relation  `xmlrpc:"tag_ids,omptempty"`
	TaxIds                 *Relation  `xmlrpc:"tax_ids,omptempty"`
	UserTypeId             *Many2One  `xmlrpc:"user_type_id,omptempty"`
	WriteDate              *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid               *Many2One  `xmlrpc:"write_uid,omptempty"`
}

AccountAccount represents account.account model.

func (*AccountAccount) Many2One

func (aa *AccountAccount) Many2One() *Many2One

Many2One convert AccountAccount to *Many2One.

type AccountAccounts

type AccountAccounts []AccountAccount

AccountAccounts represents array of account.account model.

type AccountAnalyticAccount

type AccountAnalyticAccount struct {
	LastUpdate               *Time     `xmlrpc:"__last_update,omptempty"`
	Active                   *Bool     `xmlrpc:"active,omptempty"`
	Balance                  *Float    `xmlrpc:"balance,omptempty"`
	Code                     *String   `xmlrpc:"code,omptempty"`
	CompanyId                *Many2One `xmlrpc:"company_id,omptempty"`
	CompanyUomId             *Many2One `xmlrpc:"company_uom_id,omptempty"`
	CreateDate               *Time     `xmlrpc:"create_date,omptempty"`
	CreateUid                *Many2One `xmlrpc:"create_uid,omptempty"`
	Credit                   *Float    `xmlrpc:"credit,omptempty"`
	CurrencyId               *Many2One `xmlrpc:"currency_id,omptempty"`
	Debit                    *Float    `xmlrpc:"debit,omptempty"`
	DisplayName              *String   `xmlrpc:"display_name,omptempty"`
	Id                       *Int      `xmlrpc:"id,omptempty"`
	LineIds                  *Relation `xmlrpc:"line_ids,omptempty"`
	MachineProjectName       *String   `xmlrpc:"machine_project_name,omptempty"`
	MessageChannelIds        *Relation `xmlrpc:"message_channel_ids,omptempty"`
	MessageFollowerIds       *Relation `xmlrpc:"message_follower_ids,omptempty"`
	MessageIds               *Relation `xmlrpc:"message_ids,omptempty"`
	MessageIsFollower        *Bool     `xmlrpc:"message_is_follower,omptempty"`
	MessageLastPost          *Time     `xmlrpc:"message_last_post,omptempty"`
	MessageNeedaction        *Bool     `xmlrpc:"message_needaction,omptempty"`
	MessageNeedactionCounter *Int      `xmlrpc:"message_needaction_counter,omptempty"`
	MessagePartnerIds        *Relation `xmlrpc:"message_partner_ids,omptempty"`
	MessageUnread            *Bool     `xmlrpc:"message_unread,omptempty"`
	MessageUnreadCounter     *Int      `xmlrpc:"message_unread_counter,omptempty"`
	Name                     *String   `xmlrpc:"name,omptempty"`
	PartnerId                *Many2One `xmlrpc:"partner_id,omptempty"`
	ProjectCount             *Int      `xmlrpc:"project_count,omptempty"`
	ProjectCreated           *Bool     `xmlrpc:"project_created,omptempty"`
	ProjectIds               *Relation `xmlrpc:"project_ids,omptempty"`
	TagIds                   *Relation `xmlrpc:"tag_ids,omptempty"`
	WebsiteMessageIds        *Relation `xmlrpc:"website_message_ids,omptempty"`
	WriteDate                *Time     `xmlrpc:"write_date,omptempty"`
	WriteUid                 *Many2One `xmlrpc:"write_uid,omptempty"`
}

AccountAnalyticAccount represents account.analytic.account model.

func (*AccountAnalyticAccount) Many2One

func (aaa *AccountAnalyticAccount) Many2One() *Many2One

Many2One convert AccountAnalyticAccount to *Many2One.

type AccountAnalyticAccounts

type AccountAnalyticAccounts []AccountAnalyticAccount

AccountAnalyticAccounts represents array of account.analytic.account model.

type AccountAnalyticLine

type AccountAnalyticLine struct {
	LastUpdate             *Time      `xmlrpc:"__last_update,omptempty"`
	AccountId              *Many2One  `xmlrpc:"account_id,omptempty"`
	Amount                 *Float     `xmlrpc:"amount,omptempty"`
	AmountCurrency         *Float     `xmlrpc:"amount_currency,omptempty"`
	AnalyticAmountCurrency *Float     `xmlrpc:"analytic_amount_currency,omptempty"`
	Code                   *String    `xmlrpc:"code,omptempty"`
	CompanyCurrencyId      *Many2One  `xmlrpc:"company_currency_id,omptempty"`
	CompanyId              *Many2One  `xmlrpc:"company_id,omptempty"`
	CreateDate             *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid              *Many2One  `xmlrpc:"create_uid,omptempty"`
	CurrencyId             *Many2One  `xmlrpc:"currency_id,omptempty"`
	Date                   *Time      `xmlrpc:"date,omptempty"`
	DepartmentId           *Many2One  `xmlrpc:"department_id,omptempty"`
	DisplayName            *String    `xmlrpc:"display_name,omptempty"`
	EmployeeId             *Many2One  `xmlrpc:"employee_id,omptempty"`
	GeneralAccountId       *Many2One  `xmlrpc:"general_account_id,omptempty"`
	HolidayId              *Many2One  `xmlrpc:"holiday_id,omptempty"`
	Id                     *Int       `xmlrpc:"id,omptempty"`
	MoveId                 *Many2One  `xmlrpc:"move_id,omptempty"`
	Name                   *String    `xmlrpc:"name,omptempty"`
	PartnerId              *Many2One  `xmlrpc:"partner_id,omptempty"`
	ProductId              *Many2One  `xmlrpc:"product_id,omptempty"`
	ProductUomId           *Many2One  `xmlrpc:"product_uom_id,omptempty"`
	ProjectId              *Many2One  `xmlrpc:"project_id,omptempty"`
	Ref                    *String    `xmlrpc:"ref,omptempty"`
	SoLine                 *Many2One  `xmlrpc:"so_line,omptempty"`
	TagIds                 *Relation  `xmlrpc:"tag_ids,omptempty"`
	TaskId                 *Many2One  `xmlrpc:"task_id,omptempty"`
	TimesheetInvoiceId     *Many2One  `xmlrpc:"timesheet_invoice_id,omptempty"`
	TimesheetInvoiceType   *Selection `xmlrpc:"timesheet_invoice_type,omptempty"`
	TimesheetRevenue       *Float     `xmlrpc:"timesheet_revenue,omptempty"`
	UnitAmount             *Float     `xmlrpc:"unit_amount,omptempty"`
	UserId                 *Many2One  `xmlrpc:"user_id,omptempty"`
	WriteDate              *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid               *Many2One  `xmlrpc:"write_uid,omptempty"`
}

AccountAnalyticLine represents account.analytic.line model.

func (*AccountAnalyticLine) Many2One

func (aal *AccountAnalyticLine) Many2One() *Many2One

Many2One convert AccountAnalyticLine to *Many2One.

type AccountAnalyticLines

type AccountAnalyticLines []AccountAnalyticLine

AccountAnalyticLines represents array of account.analytic.line model.

type AccountAnalyticTag

type AccountAnalyticTag struct {
	LastUpdate  *Time     `xmlrpc:"__last_update,omptempty"`
	Active      *Bool     `xmlrpc:"active,omptempty"`
	Color       *Int      `xmlrpc:"color,omptempty"`
	CreateDate  *Time     `xmlrpc:"create_date,omptempty"`
	CreateUid   *Many2One `xmlrpc:"create_uid,omptempty"`
	DisplayName *String   `xmlrpc:"display_name,omptempty"`
	Id          *Int      `xmlrpc:"id,omptempty"`
	Name        *String   `xmlrpc:"name,omptempty"`
	WriteDate   *Time     `xmlrpc:"write_date,omptempty"`
	WriteUid    *Many2One `xmlrpc:"write_uid,omptempty"`
}

AccountAnalyticTag represents account.analytic.tag model.

func (*AccountAnalyticTag) Many2One

func (aat *AccountAnalyticTag) Many2One() *Many2One

Many2One convert AccountAnalyticTag to *Many2One.

type AccountAnalyticTags

type AccountAnalyticTags []AccountAnalyticTag

AccountAnalyticTags represents array of account.analytic.tag model.

type AccountInvoice

type AccountInvoice struct {
	LastUpdate                     *Time      `xmlrpc:"__last_update,omptempty"`
	AccessToken                    *String    `xmlrpc:"access_token,omptempty"`
	AccountId                      *Many2One  `xmlrpc:"account_id,omptempty"`
	ActivityDateDeadline           *Time      `xmlrpc:"activity_date_deadline,omptempty"`
	ActivityIds                    *Relation  `xmlrpc:"activity_ids,omptempty"`
	ActivityState                  *Selection `xmlrpc:"activity_state,omptempty"`
	ActivitySummary                *String    `xmlrpc:"activity_summary,omptempty"`
	ActivityTypeId                 *Many2One  `xmlrpc:"activity_type_id,omptempty"`
	ActivityUserId                 *Many2One  `xmlrpc:"activity_user_id,omptempty"`
	AmountTax                      *Float     `xmlrpc:"amount_tax,omptempty"`
	AmountTotal                    *Float     `xmlrpc:"amount_total,omptempty"`
	AmountTotalCompanySigned       *Float     `xmlrpc:"amount_total_company_signed,omptempty"`
	AmountTotalSigned              *Float     `xmlrpc:"amount_total_signed,omptempty"`
	AmountUntaxed                  *Float     `xmlrpc:"amount_untaxed,omptempty"`
	AmountUntaxedSigned            *Float     `xmlrpc:"amount_untaxed_signed,omptempty"`
	CampaignId                     *Many2One  `xmlrpc:"campaign_id,omptempty"`
	CashRoundingId                 *Many2One  `xmlrpc:"cash_rounding_id,omptempty"`
	Comment                        *String    `xmlrpc:"comment,omptempty"`
	CommercialPartnerId            *Many2One  `xmlrpc:"commercial_partner_id,omptempty"`
	CompanyCurrencyId              *Many2One  `xmlrpc:"company_currency_id,omptempty"`
	CompanyId                      *Many2One  `xmlrpc:"company_id,omptempty"`
	CreateDate                     *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid                      *Many2One  `xmlrpc:"create_uid,omptempty"`
	CurrencyId                     *Many2One  `xmlrpc:"currency_id,omptempty"`
	Date                           *Time      `xmlrpc:"date,omptempty"`
	DateDue                        *Time      `xmlrpc:"date_due,omptempty"`
	DateInvoice                    *Time      `xmlrpc:"date_invoice,omptempty"`
	DisplayName                    *String    `xmlrpc:"display_name,omptempty"`
	FiscalPositionId               *Many2One  `xmlrpc:"fiscal_position_id,omptempty"`
	HasOutstanding                 *Bool      `xmlrpc:"has_outstanding,omptempty"`
	Id                             *Int       `xmlrpc:"id,omptempty"`
	InNote                         *String    `xmlrpc:"in_note,omptempty"`
	IncotermsId                    *Many2One  `xmlrpc:"incoterms_id,omptempty"`
	InvoiceLineIds                 *Relation  `xmlrpc:"invoice_line_ids,omptempty"`
	JournalId                      *Many2One  `xmlrpc:"journal_id,omptempty"`
	MachineInvoice                 *Bool      `xmlrpc:"machine_invoice,omptempty"`
	MachineInvoiceTitle            *String    `xmlrpc:"machine_invoice_title,omptempty"`
	MachinePurchaseOrder           *String    `xmlrpc:"machine_purchase_order,omptempty"`
	MediumId                       *Many2One  `xmlrpc:"medium_id,omptempty"`
	MessageChannelIds              *Relation  `xmlrpc:"message_channel_ids,omptempty"`
	MessageFollowerIds             *Relation  `xmlrpc:"message_follower_ids,omptempty"`
	MessageIds                     *Relation  `xmlrpc:"message_ids,omptempty"`
	MessageIsFollower              *Bool      `xmlrpc:"message_is_follower,omptempty"`
	MessageLastPost                *Time      `xmlrpc:"message_last_post,omptempty"`
	MessageNeedaction              *Bool      `xmlrpc:"message_needaction,omptempty"`
	MessageNeedactionCounter       *Int       `xmlrpc:"message_needaction_counter,omptempty"`
	MessagePartnerIds              *Relation  `xmlrpc:"message_partner_ids,omptempty"`
	MessageUnread                  *Bool      `xmlrpc:"message_unread,omptempty"`
	MessageUnreadCounter           *Int       `xmlrpc:"message_unread_counter,omptempty"`
	MoveId                         *Many2One  `xmlrpc:"move_id,omptempty"`
	MoveName                       *String    `xmlrpc:"move_name,omptempty"`
	Name                           *String    `xmlrpc:"name,omptempty"`
	Number                         *String    `xmlrpc:"number,omptempty"`
	Origin                         *String    `xmlrpc:"origin,omptempty"`
	OutNote                        *String    `xmlrpc:"out_note,omptempty"`
	OutstandingCreditsDebitsWidget *String    `xmlrpc:"outstanding_credits_debits_widget,omptempty"`
	PartnerBankId                  *Many2One  `xmlrpc:"partner_bank_id,omptempty"`
	PartnerId                      *Many2One  `xmlrpc:"partner_id,omptempty"`
	PartnerShippingId              *Many2One  `xmlrpc:"partner_shipping_id,omptempty"`
	PaymentIds                     *Relation  `xmlrpc:"payment_ids,omptempty"`
	PaymentMoveLineIds             *Relation  `xmlrpc:"payment_move_line_ids,omptempty"`
	PaymentTermId                  *Many2One  `xmlrpc:"payment_term_id,omptempty"`
	PaymentsWidget                 *String    `xmlrpc:"payments_widget,omptempty"`
	PortalUrl                      *String    `xmlrpc:"portal_url,omptempty"`
	PurchaseId                     *Many2One  `xmlrpc:"purchase_id,omptempty"`
	QuantityTotal                  *Float     `xmlrpc:"quantity_total,omptempty"`
	Reconciled                     *Bool      `xmlrpc:"reconciled,omptempty"`
	Reference                      *String    `xmlrpc:"reference,omptempty"`
	ReferenceType                  *Selection `xmlrpc:"reference_type,omptempty"`
	RefundInvoiceId                *Many2One  `xmlrpc:"refund_invoice_id,omptempty"`
	RefundInvoiceIds               *Relation  `xmlrpc:"refund_invoice_ids,omptempty"`
	Residual                       *Float     `xmlrpc:"residual,omptempty"`
	ResidualCompanySigned          *Float     `xmlrpc:"residual_company_signed,omptempty"`
	ResidualSigned                 *Float     `xmlrpc:"residual_signed,omptempty"`
	Sent                           *Bool      `xmlrpc:"sent,omptempty"`
	SequenceNumberNext             *String    `xmlrpc:"sequence_number_next,omptempty"`
	SequenceNumberNextPrefix       *String    `xmlrpc:"sequence_number_next_prefix,omptempty"`
	SourceId                       *Many2One  `xmlrpc:"source_id,omptempty"`
	State                          *Selection `xmlrpc:"state,omptempty"`
	TaxLineIds                     *Relation  `xmlrpc:"tax_line_ids,omptempty"`
	TeamId                         *Many2One  `xmlrpc:"team_id,omptempty"`
	TimesheetCount                 *Int       `xmlrpc:"timesheet_count,omptempty"`
	TimesheetIds                   *Relation  `xmlrpc:"timesheet_ids,omptempty"`
	Type                           *Selection `xmlrpc:"type,omptempty"`
	UserId                         *Many2One  `xmlrpc:"user_id,omptempty"`
	WebsiteMessageIds              *Relation  `xmlrpc:"website_message_ids,omptempty"`
	WriteDate                      *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid                       *Many2One  `xmlrpc:"write_uid,omptempty"`
}

AccountInvoice represents account.invoice model.

func (*AccountInvoice) Many2One

func (ai *AccountInvoice) Many2One() *Many2One

Many2One convert AccountInvoice to *Many2One.

type AccountInvoiceLine

type AccountInvoiceLine struct {
	LastUpdate             *Time     `xmlrpc:"__last_update,omptempty"`
	AccountAnalyticId      *Many2One `xmlrpc:"account_analytic_id,omptempty"`
	AccountId              *Many2One `xmlrpc:"account_id,omptempty"`
	AnalyticTagIds         *Relation `xmlrpc:"analytic_tag_ids,omptempty"`
	CompanyCurrencyId      *Many2One `xmlrpc:"company_currency_id,omptempty"`
	CompanyId              *Many2One `xmlrpc:"company_id,omptempty"`
	CreateDate             *Time     `xmlrpc:"create_date,omptempty"`
	CreateUid              *Many2One `xmlrpc:"create_uid,omptempty"`
	CurrencyId             *Many2One `xmlrpc:"currency_id,omptempty"`
	Discount               *Float    `xmlrpc:"discount,omptempty"`
	DisplayName            *String   `xmlrpc:"display_name,omptempty"`
	Id                     *Int      `xmlrpc:"id,omptempty"`
	InvoiceId              *Many2One `xmlrpc:"invoice_id,omptempty"`
	InvoiceLineTaxIds      *Relation `xmlrpc:"invoice_line_tax_ids,omptempty"`
	IsRoundingLine         *Bool     `xmlrpc:"is_rounding_line,omptempty"`
	LayoutCategoryId       *Many2One `xmlrpc:"layout_category_id,omptempty"`
	LayoutCategorySequence *Int      `xmlrpc:"layout_category_sequence,omptempty"`
	Name                   *String   `xmlrpc:"name,omptempty"`
	Origin                 *String   `xmlrpc:"origin,omptempty"`
	PartnerId              *Many2One `xmlrpc:"partner_id,omptempty"`
	PriceSubtotal          *Float    `xmlrpc:"price_subtotal,omptempty"`
	PriceSubtotalSigned    *Float    `xmlrpc:"price_subtotal_signed,omptempty"`
	PriceTotal             *Float    `xmlrpc:"price_total,omptempty"`
	PriceUnit              *Float    `xmlrpc:"price_unit,omptempty"`
	ProductId              *Many2One `xmlrpc:"product_id,omptempty"`
	ProductImage           *String   `xmlrpc:"product_image,omptempty"`
	PurchaseId             *Many2One `xmlrpc:"purchase_id,omptempty"`
	PurchaseLineId         *Many2One `xmlrpc:"purchase_line_id,omptempty"`
	Quantity               *Float    `xmlrpc:"quantity,omptempty"`
	SaleLineIds            *Relation `xmlrpc:"sale_line_ids,omptempty"`
	Sequence               *Int      `xmlrpc:"sequence,omptempty"`
	UomId                  *Many2One `xmlrpc:"uom_id,omptempty"`
	WriteDate              *Time     `xmlrpc:"write_date,omptempty"`
	WriteUid               *Many2One `xmlrpc:"write_uid,omptempty"`
}

AccountInvoiceLine represents account.invoice.line model.

func (*AccountInvoiceLine) Many2One

func (ail *AccountInvoiceLine) Many2One() *Many2One

Many2One convert AccountInvoiceLine to *Many2One.

type AccountInvoiceLines

type AccountInvoiceLines []AccountInvoiceLine

AccountInvoiceLines represents array of account.invoice.line model.

type AccountInvoices

type AccountInvoices []AccountInvoice

AccountInvoices represents array of account.invoice model.

type AccountJournal

type AccountJournal struct {
	LastUpdate               *Time      `xmlrpc:"__last_update,omptempty"`
	AccountControlIds        *Relation  `xmlrpc:"account_control_ids,omptempty"`
	AccountSetupBankDataDone *Bool      `xmlrpc:"account_setup_bank_data_done,omptempty"`
	Active                   *Bool      `xmlrpc:"active,omptempty"`
	AtLeastOneInbound        *Bool      `xmlrpc:"at_least_one_inbound,omptempty"`
	AtLeastOneOutbound       *Bool      `xmlrpc:"at_least_one_outbound,omptempty"`
	BankAccNumber            *String    `xmlrpc:"bank_acc_number,omptempty"`
	BankAccountId            *Many2One  `xmlrpc:"bank_account_id,omptempty"`
	BankId                   *Many2One  `xmlrpc:"bank_id,omptempty"`
	BankStatementsSource     *Selection `xmlrpc:"bank_statements_source,omptempty"`
	BelongsToCompany         *Bool      `xmlrpc:"belongs_to_company,omptempty"`
	Code                     *String    `xmlrpc:"code,omptempty"`
	Color                    *Int       `xmlrpc:"color,omptempty"`
	CompanyId                *Many2One  `xmlrpc:"company_id,omptempty"`
	CreateDate               *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid                *Many2One  `xmlrpc:"create_uid,omptempty"`
	CurrencyId               *Many2One  `xmlrpc:"currency_id,omptempty"`
	DefaultCreditAccountId   *Many2One  `xmlrpc:"default_credit_account_id,omptempty"`
	DefaultDebitAccountId    *Many2One  `xmlrpc:"default_debit_account_id,omptempty"`
	DisplayName              *String    `xmlrpc:"display_name,omptempty"`
	GroupInvoiceLines        *Bool      `xmlrpc:"group_invoice_lines,omptempty"`
	Id                       *Int       `xmlrpc:"id,omptempty"`
	InboundPaymentMethodIds  *Relation  `xmlrpc:"inbound_payment_method_ids,omptempty"`
	KanbanDashboard          *String    `xmlrpc:"kanban_dashboard,omptempty"`
	KanbanDashboardGraph     *String    `xmlrpc:"kanban_dashboard_graph,omptempty"`
	LossAccountId            *Many2One  `xmlrpc:"loss_account_id,omptempty"`
	Name                     *String    `xmlrpc:"name,omptempty"`
	OutboundPaymentMethodIds *Relation  `xmlrpc:"outbound_payment_method_ids,omptempty"`
	ProfitAccountId          *Many2One  `xmlrpc:"profit_account_id,omptempty"`
	RefundSequence           *Bool      `xmlrpc:"refund_sequence,omptempty"`
	RefundSequenceId         *Many2One  `xmlrpc:"refund_sequence_id,omptempty"`
	RefundSequenceNumberNext *Int       `xmlrpc:"refund_sequence_number_next,omptempty"`
	Sequence                 *Int       `xmlrpc:"sequence,omptempty"`
	SequenceId               *Many2One  `xmlrpc:"sequence_id,omptempty"`
	SequenceNumberNext       *Int       `xmlrpc:"sequence_number_next,omptempty"`
	ShowOnDashboard          *Bool      `xmlrpc:"show_on_dashboard,omptempty"`
	Type                     *Selection `xmlrpc:"type,omptempty"`
	TypeControlIds           *Relation  `xmlrpc:"type_control_ids,omptempty"`
	UpdatePosted             *Bool      `xmlrpc:"update_posted,omptempty"`
	WriteDate                *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid                 *Many2One  `xmlrpc:"write_uid,omptempty"`
}

AccountJournal represents account.journal model.

func (*AccountJournal) Many2One

func (aj *AccountJournal) Many2One() *Many2One

Many2One convert AccountJournal to *Many2One.

type AccountJournals

type AccountJournals []AccountJournal

AccountJournals represents array of account.journal model.

type Bool

type Bool struct {
	// contains filtered or unexported fields
}

Bool is a bool wrapper

func NewBool

func NewBool(v bool) *Bool

NewBool creates a new *Bool.

func (*Bool) Get

func (b *Bool) Get() bool

Get *Bool value.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client provides high and low level functions to interact with odoo

func NewClient

func NewClient(cfg *ClientConfig) (*Client, error)

NewClient creates a new *Client.

func (*Client) Close

func (c *Client) Close()

Close closes all opened client connections.

func (*Client) Count

func (c *Client) Count(model string, criteria *Criteria, options *Options) (int64, error)

Count model records matching with *Criteria. https://www.odoo.com/documentation/13.0/webservices/odoo.html#count-records

func (*Client) Create

func (c *Client) Create(model string, values interface{}) (int64, error)

Create a new model. https://www.odoo.com/documentation/13.0/webservices/odoo.html#create-records

func (*Client) CreateAccountAccount

func (c *Client) CreateAccountAccount(aa *AccountAccount) (int64, error)

CreateAccountAccount creates a new account.account model and returns its id.

func (*Client) CreateAccountAnalyticAccount

func (c *Client) CreateAccountAnalyticAccount(aaa *AccountAnalyticAccount) (int64, error)

CreateAccountAnalyticAccount creates a new account.analytic.account model and returns its id.

func (*Client) CreateAccountAnalyticLine

func (c *Client) CreateAccountAnalyticLine(aal *AccountAnalyticLine) (int64, error)

CreateAccountAnalyticLine creates a new account.analytic.line model and returns its id.

func (*Client) CreateAccountAnalyticTag

func (c *Client) CreateAccountAnalyticTag(aat *AccountAnalyticTag) (int64, error)

CreateAccountAnalyticTag creates a new account.analytic.tag model and returns its id.

func (*Client) CreateAccountInvoice

func (c *Client) CreateAccountInvoice(ai *AccountInvoice) (int64, error)

CreateAccountInvoice creates a new account.invoice model and returns its id.

func (*Client) CreateAccountInvoiceLine

func (c *Client) CreateAccountInvoiceLine(ail *AccountInvoiceLine) (int64, error)

CreateAccountInvoiceLine creates a new account.invoice.line model and returns its id.

func (*Client) CreateAccountJournal

func (c *Client) CreateAccountJournal(aj *AccountJournal) (int64, error)

CreateAccountJournal creates a new account.journal model and returns its id.

func (*Client) CreateCrmLead

func (c *Client) CreateCrmLead(cl *CrmLead) (int64, error)

CreateCrmLead creates a new crm.lead model and returns its id.

func (*Client) CreateCrmLeadTag

func (c *Client) CreateCrmLeadTag(clt *CrmLeadTag) (int64, error)

CreateCrmLeadTag creates a new crm.lead.tag model and returns its id.

func (*Client) CreateIrModel

func (c *Client) CreateIrModel(im *IrModel) (int64, error)

CreateIrModel creates a new ir.model model and returns its id.

func (*Client) CreateIrModelFields

func (c *Client) CreateIrModelFields(imf *IrModelFields) (int64, error)

CreateIrModelFields creates a new ir.model.fields model and returns its id.

func (*Client) CreateIrModuleModule

func (c *Client) CreateIrModuleModule(imm *IrModuleModule) (int64, error)

CreateIrModuleModule creates a new ir.module.module model and returns its id.

func (*Client) CreateMailFollowers

func (c *Client) CreateMailFollowers(mf *MailFollowers) (int64, error)

CreateMailFollowers creates a new mail.followers model and returns its id.

func (*Client) CreateProductProduct

func (c *Client) CreateProductProduct(pp *ProductProduct) (int64, error)

CreateProductProduct creates a new product.product model and returns its id.

func (*Client) CreateProductSupplierinfo

func (c *Client) CreateProductSupplierinfo(ps *ProductSupplierinfo) (int64, error)

CreateProductSupplierinfo creates a new product.supplierinfo model and returns its id.

func (*Client) CreateProjectProject

func (c *Client) CreateProjectProject(pp *ProjectProject) (int64, error)

CreateProjectProject creates a new project.project model and returns its id.

func (*Client) CreateProjectTask

func (c *Client) CreateProjectTask(pt *ProjectTask) (int64, error)

CreateProjectTask creates a new project.task model and returns its id.

func (*Client) CreateResCompany

func (c *Client) CreateResCompany(rc *ResCompany) (int64, error)

CreateResCompany creates a new res.company model and returns its id.

func (*Client) CreateResPartner

func (c *Client) CreateResPartner(rp *ResPartner) (int64, error)

CreateResPartner creates a new res.partner model and returns its id.

func (*Client) CreateResPartnerCategory

func (c *Client) CreateResPartnerCategory(rpc *ResPartnerCategory) (int64, error)

CreateResPartnerCategory creates a new res.partner.category model and returns its id.

func (*Client) CreateResUsers

func (c *Client) CreateResUsers(ru *ResUsers) (int64, error)

CreateResUsers creates a new res.users model and returns its id.

func (*Client) Delete

func (c *Client) Delete(model string, ids []int64) error

Delete existing model row(s). https://www.odoo.com/documentation/13.0/webservices/odoo.html#delete-records

func (*Client) DeleteAccountAccount

func (c *Client) DeleteAccountAccount(id int64) error

DeleteAccountAccount deletes an existing account.account record.

func (*Client) DeleteAccountAccounts

func (c *Client) DeleteAccountAccounts(ids []int64) error

DeleteAccountAccounts deletes existing account.account records.

func (*Client) DeleteAccountAnalyticAccount

func (c *Client) DeleteAccountAnalyticAccount(id int64) error

DeleteAccountAnalyticAccount deletes an existing account.analytic.account record.

func (*Client) DeleteAccountAnalyticAccounts

func (c *Client) DeleteAccountAnalyticAccounts(ids []int64) error

DeleteAccountAnalyticAccounts deletes existing account.analytic.account records.

func (*Client) DeleteAccountAnalyticLine

func (c *Client) DeleteAccountAnalyticLine(id int64) error

DeleteAccountAnalyticLine deletes an existing account.analytic.line record.

func (*Client) DeleteAccountAnalyticLines

func (c *Client) DeleteAccountAnalyticLines(ids []int64) error

DeleteAccountAnalyticLines deletes existing account.analytic.line records.

func (*Client) DeleteAccountAnalyticTag

func (c *Client) DeleteAccountAnalyticTag(id int64) error

DeleteAccountAnalyticTag deletes an existing account.analytic.tag record.

func (*Client) DeleteAccountAnalyticTags

func (c *Client) DeleteAccountAnalyticTags(ids []int64) error

DeleteAccountAnalyticTags deletes existing account.analytic.tag records.

func (*Client) DeleteAccountInvoice

func (c *Client) DeleteAccountInvoice(id int64) error

DeleteAccountInvoice deletes an existing account.invoice record.

func (*Client) DeleteAccountInvoiceLine

func (c *Client) DeleteAccountInvoiceLine(id int64) error

DeleteAccountInvoiceLine deletes an existing account.invoice.line record.

func (*Client) DeleteAccountInvoiceLines

func (c *Client) DeleteAccountInvoiceLines(ids []int64) error

DeleteAccountInvoiceLines deletes existing account.invoice.line records.

func (*Client) DeleteAccountInvoices

func (c *Client) DeleteAccountInvoices(ids []int64) error

DeleteAccountInvoices deletes existing account.invoice records.

func (*Client) DeleteAccountJournal

func (c *Client) DeleteAccountJournal(id int64) error

DeleteAccountJournal deletes an existing account.journal record.

func (*Client) DeleteAccountJournals

func (c *Client) DeleteAccountJournals(ids []int64) error

DeleteAccountJournals deletes existing account.journal records.

func (*Client) DeleteCrmLead

func (c *Client) DeleteCrmLead(id int64) error

DeleteCrmLead deletes an existing crm.lead record.

func (*Client) DeleteCrmLeadTag

func (c *Client) DeleteCrmLeadTag(id int64) error

DeleteCrmLeadTag deletes an existing crm.lead.tag record.

func (*Client) DeleteCrmLeadTags

func (c *Client) DeleteCrmLeadTags(ids []int64) error

DeleteCrmLeadTags deletes existing crm.lead.tag records.

func (*Client) DeleteCrmLeads

func (c *Client) DeleteCrmLeads(ids []int64) error

DeleteCrmLeads deletes existing crm.lead records.

func (*Client) DeleteIrModel

func (c *Client) DeleteIrModel(id int64) error

DeleteIrModel deletes an existing ir.model record.

func (*Client) DeleteIrModelFields

func (c *Client) DeleteIrModelFields(id int64) error

DeleteIrModelFields deletes an existing ir.model.fields record.

func (*Client) DeleteIrModelFieldss

func (c *Client) DeleteIrModelFieldss(ids []int64) error

DeleteIrModelFieldss deletes existing ir.model.fields records.

func (*Client) DeleteIrModels

func (c *Client) DeleteIrModels(ids []int64) error

DeleteIrModels deletes existing ir.model records.

func (*Client) DeleteIrModuleModule

func (c *Client) DeleteIrModuleModule(id int64) error

DeleteIrModuleModule deletes an existing ir.module.module record.

func (*Client) DeleteIrModuleModules

func (c *Client) DeleteIrModuleModules(ids []int64) error

DeleteIrModuleModules deletes existing ir.module.module records.

func (*Client) DeleteMailFollowers

func (c *Client) DeleteMailFollowers(id int64) error

DeleteMailFollowers deletes an existing mail.followers record.

func (*Client) DeleteMailFollowerss

func (c *Client) DeleteMailFollowerss(ids []int64) error

DeleteMailFollowerss deletes existing mail.followers records.

func (*Client) DeleteProductProduct

func (c *Client) DeleteProductProduct(id int64) error

DeleteProductProduct deletes an existing product.product record.

func (*Client) DeleteProductProducts

func (c *Client) DeleteProductProducts(ids []int64) error

DeleteProductProducts deletes existing product.product records.

func (*Client) DeleteProductSupplierinfo

func (c *Client) DeleteProductSupplierinfo(id int64) error

DeleteProductSupplierinfo deletes an existing product.supplierinfo record.

func (*Client) DeleteProductSupplierinfos

func (c *Client) DeleteProductSupplierinfos(ids []int64) error

DeleteProductSupplierinfos deletes existing product.supplierinfo records.

func (*Client) DeleteProjectProject

func (c *Client) DeleteProjectProject(id int64) error

DeleteProjectProject deletes an existing project.project record.

func (*Client) DeleteProjectProjects

func (c *Client) DeleteProjectProjects(ids []int64) error

DeleteProjectProjects deletes existing project.project records.

func (*Client) DeleteProjectTask

func (c *Client) DeleteProjectTask(id int64) error

DeleteProjectTask deletes an existing project.task record.

func (*Client) DeleteProjectTasks

func (c *Client) DeleteProjectTasks(ids []int64) error

DeleteProjectTasks deletes existing project.task records.

func (*Client) DeleteResCompany

func (c *Client) DeleteResCompany(id int64) error

DeleteResCompany deletes an existing res.company record.

func (*Client) DeleteResCompanys

func (c *Client) DeleteResCompanys(ids []int64) error

DeleteResCompanys deletes existing res.company records.

func (*Client) DeleteResPartner

func (c *Client) DeleteResPartner(id int64) error

DeleteResPartner deletes an existing res.partner record.

func (*Client) DeleteResPartnerCategory

func (c *Client) DeleteResPartnerCategory(id int64) error

DeleteResPartnerCategory deletes an existing res.partner.category record.

func (*Client) DeleteResPartnerCategorys

func (c *Client) DeleteResPartnerCategorys(ids []int64) error

DeleteResPartnerCategorys deletes existing res.partner.category records.

func (*Client) DeleteResPartners

func (c *Client) DeleteResPartners(ids []int64) error

DeleteResPartners deletes existing res.partner records.

func (*Client) DeleteResUsers

func (c *Client) DeleteResUsers(id int64) error

DeleteResUsers deletes an existing res.users record.

func (*Client) DeleteResUserss

func (c *Client) DeleteResUserss(ids []int64) error

DeleteResUserss deletes existing res.users records.

func (*Client) ExecuteKw

func (c *Client) ExecuteKw(method, model string, args []interface{}, options *Options) (interface{}, error)

ExecuteKw is a RPC function. The lowest library function. It is use for all function related to "xmlrpc/2/object" endpoint.

func (*Client) FieldsGet

func (c *Client) FieldsGet(model string, options *Options) (map[string]interface{}, error)

FieldsGet inspect model fields. https://www.odoo.com/documentation/13.0/webservices/odoo.html#listing-record-fields

func (*Client) FindAccountAccount

func (c *Client) FindAccountAccount(criteria *Criteria) (*AccountAccount, error)

FindAccountAccount finds account.account record by querying it with criteria.

func (*Client) FindAccountAccountId

func (c *Client) FindAccountAccountId(criteria *Criteria, options *Options) (int64, error)

FindAccountAccountId finds record id by querying it with criteria.

func (*Client) FindAccountAccountIds

func (c *Client) FindAccountAccountIds(criteria *Criteria, options *Options) ([]int64, error)

FindAccountAccountIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindAccountAccounts

func (c *Client) FindAccountAccounts(criteria *Criteria, options *Options) (*AccountAccounts, error)

FindAccountAccounts finds account.account records by querying it and filtering it with criteria and options.

func (*Client) FindAccountAnalyticAccount

func (c *Client) FindAccountAnalyticAccount(criteria *Criteria) (*AccountAnalyticAccount, error)

FindAccountAnalyticAccount finds account.analytic.account record by querying it with criteria.

func (*Client) FindAccountAnalyticAccountId

func (c *Client) FindAccountAnalyticAccountId(criteria *Criteria, options *Options) (int64, error)

FindAccountAnalyticAccountId finds record id by querying it with criteria.

func (*Client) FindAccountAnalyticAccountIds

func (c *Client) FindAccountAnalyticAccountIds(criteria *Criteria, options *Options) ([]int64, error)

FindAccountAnalyticAccountIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindAccountAnalyticAccounts

func (c *Client) FindAccountAnalyticAccounts(criteria *Criteria, options *Options) (*AccountAnalyticAccounts, error)

FindAccountAnalyticAccounts finds account.analytic.account records by querying it and filtering it with criteria and options.

func (*Client) FindAccountAnalyticLine

func (c *Client) FindAccountAnalyticLine(criteria *Criteria) (*AccountAnalyticLine, error)

FindAccountAnalyticLine finds account.analytic.line record by querying it with criteria.

func (*Client) FindAccountAnalyticLineId

func (c *Client) FindAccountAnalyticLineId(criteria *Criteria, options *Options) (int64, error)

FindAccountAnalyticLineId finds record id by querying it with criteria.

func (*Client) FindAccountAnalyticLineIds

func (c *Client) FindAccountAnalyticLineIds(criteria *Criteria, options *Options) ([]int64, error)

FindAccountAnalyticLineIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindAccountAnalyticLines

func (c *Client) FindAccountAnalyticLines(criteria *Criteria, options *Options) (*AccountAnalyticLines, error)

FindAccountAnalyticLines finds account.analytic.line records by querying it and filtering it with criteria and options.

func (*Client) FindAccountAnalyticTag

func (c *Client) FindAccountAnalyticTag(criteria *Criteria) (*AccountAnalyticTag, error)

FindAccountAnalyticTag finds account.analytic.tag record by querying it with criteria.

func (*Client) FindAccountAnalyticTagId

func (c *Client) FindAccountAnalyticTagId(criteria *Criteria, options *Options) (int64, error)

FindAccountAnalyticTagId finds record id by querying it with criteria.

func (*Client) FindAccountAnalyticTagIds

func (c *Client) FindAccountAnalyticTagIds(criteria *Criteria, options *Options) ([]int64, error)

FindAccountAnalyticTagIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindAccountAnalyticTags

func (c *Client) FindAccountAnalyticTags(criteria *Criteria, options *Options) (*AccountAnalyticTags, error)

FindAccountAnalyticTags finds account.analytic.tag records by querying it and filtering it with criteria and options.

func (*Client) FindAccountInvoice

func (c *Client) FindAccountInvoice(criteria *Criteria) (*AccountInvoice, error)

FindAccountInvoice finds account.invoice record by querying it with criteria.

func (*Client) FindAccountInvoiceId

func (c *Client) FindAccountInvoiceId(criteria *Criteria, options *Options) (int64, error)

FindAccountInvoiceId finds record id by querying it with criteria.

func (*Client) FindAccountInvoiceIds

func (c *Client) FindAccountInvoiceIds(criteria *Criteria, options *Options) ([]int64, error)

FindAccountInvoiceIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindAccountInvoiceLine

func (c *Client) FindAccountInvoiceLine(criteria *Criteria) (*AccountInvoiceLine, error)

FindAccountInvoiceLine finds account.invoice.line record by querying it with criteria.

func (*Client) FindAccountInvoiceLineId

func (c *Client) FindAccountInvoiceLineId(criteria *Criteria, options *Options) (int64, error)

FindAccountInvoiceLineId finds record id by querying it with criteria.

func (*Client) FindAccountInvoiceLineIds

func (c *Client) FindAccountInvoiceLineIds(criteria *Criteria, options *Options) ([]int64, error)

FindAccountInvoiceLineIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindAccountInvoiceLines

func (c *Client) FindAccountInvoiceLines(criteria *Criteria, options *Options) (*AccountInvoiceLines, error)

FindAccountInvoiceLines finds account.invoice.line records by querying it and filtering it with criteria and options.

func (*Client) FindAccountInvoices

func (c *Client) FindAccountInvoices(criteria *Criteria, options *Options) (*AccountInvoices, error)

FindAccountInvoices finds account.invoice records by querying it and filtering it with criteria and options.

func (*Client) FindAccountJournal

func (c *Client) FindAccountJournal(criteria *Criteria) (*AccountJournal, error)

FindAccountJournal finds account.journal record by querying it with criteria.

func (*Client) FindAccountJournalId

func (c *Client) FindAccountJournalId(criteria *Criteria, options *Options) (int64, error)

FindAccountJournalId finds record id by querying it with criteria.

func (*Client) FindAccountJournalIds

func (c *Client) FindAccountJournalIds(criteria *Criteria, options *Options) ([]int64, error)

FindAccountJournalIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindAccountJournals

func (c *Client) FindAccountJournals(criteria *Criteria, options *Options) (*AccountJournals, error)

FindAccountJournals finds account.journal records by querying it and filtering it with criteria and options.

func (*Client) FindCrmLead

func (c *Client) FindCrmLead(criteria *Criteria) (*CrmLead, error)

FindCrmLead finds crm.lead record by querying it with criteria.

func (*Client) FindCrmLeadId

func (c *Client) FindCrmLeadId(criteria *Criteria, options *Options) (int64, error)

FindCrmLeadId finds record id by querying it with criteria.

func (*Client) FindCrmLeadIds

func (c *Client) FindCrmLeadIds(criteria *Criteria, options *Options) ([]int64, error)

FindCrmLeadIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindCrmLeadTag

func (c *Client) FindCrmLeadTag(criteria *Criteria) (*CrmLeadTag, error)

FindCrmLeadTag finds crm.lead.tag record by querying it with criteria.

func (*Client) FindCrmLeadTagId

func (c *Client) FindCrmLeadTagId(criteria *Criteria, options *Options) (int64, error)

FindCrmLeadTagId finds record id by querying it with criteria.

func (*Client) FindCrmLeadTagIds

func (c *Client) FindCrmLeadTagIds(criteria *Criteria, options *Options) ([]int64, error)

FindCrmLeadTagIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindCrmLeadTags

func (c *Client) FindCrmLeadTags(criteria *Criteria, options *Options) (*CrmLeadTags, error)

FindCrmLeadTags finds crm.lead.tag records by querying it and filtering it with criteria and options.

func (*Client) FindCrmLeads

func (c *Client) FindCrmLeads(criteria *Criteria, options *Options) (*CrmLeads, error)

FindCrmLeads finds crm.lead records by querying it and filtering it with criteria and options.

func (*Client) FindIrModelFieldss

func (c *Client) FindIrModelFieldss(criteria *Criteria, options *Options) (*IrModelFieldss, error)

FindIrModelFieldss finds ir.model.fields records by querying it and filtering it with criteria and options.

func (*Client) FindIrModels

func (c *Client) FindIrModels(criteria *Criteria, options *Options) (*IrModels, error)

FindIrModels finds ir.model records by querying it and filtering it with criteria and options.

func (*Client) FindIrModuleModule

func (c *Client) FindIrModuleModule(criteria *Criteria) (*IrModuleModule, error)

FindIrModuleModule finds ir.module.module record by querying it with criteria.

func (*Client) FindIrModuleModuleId

func (c *Client) FindIrModuleModuleId(criteria *Criteria, options *Options) (int64, error)

FindIrModuleModuleId finds record id by querying it with criteria.

func (*Client) FindIrModuleModuleIds

func (c *Client) FindIrModuleModuleIds(criteria *Criteria, options *Options) ([]int64, error)

FindIrModuleModuleIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindIrModuleModules

func (c *Client) FindIrModuleModules(criteria *Criteria, options *Options) (*IrModuleModules, error)

FindIrModuleModules finds ir.module.module records by querying it and filtering it with criteria and options.

func (*Client) FindMailFollowers

func (c *Client) FindMailFollowers(criteria *Criteria) (*MailFollowers, error)

FindMailFollowers finds mail.followers record by querying it with criteria.

func (*Client) FindMailFollowersId

func (c *Client) FindMailFollowersId(criteria *Criteria, options *Options) (int64, error)

FindMailFollowersId finds record id by querying it with criteria.

func (*Client) FindMailFollowersIds

func (c *Client) FindMailFollowersIds(criteria *Criteria, options *Options) ([]int64, error)

FindMailFollowersIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindMailFollowerss

func (c *Client) FindMailFollowerss(criteria *Criteria, options *Options) (*MailFollowerss, error)

FindMailFollowerss finds mail.followers records by querying it and filtering it with criteria and options.

func (*Client) FindProductProduct

func (c *Client) FindProductProduct(criteria *Criteria) (*ProductProduct, error)

FindProductProduct finds product.product record by querying it with criteria.

func (*Client) FindProductProductId

func (c *Client) FindProductProductId(criteria *Criteria, options *Options) (int64, error)

FindProductProductId finds record id by querying it with criteria.

func (*Client) FindProductProductIds

func (c *Client) FindProductProductIds(criteria *Criteria, options *Options) ([]int64, error)

FindProductProductIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindProductProducts

func (c *Client) FindProductProducts(criteria *Criteria, options *Options) (*ProductProducts, error)

FindProductProducts finds product.product records by querying it and filtering it with criteria and options.

func (*Client) FindProductSupplierinfo

func (c *Client) FindProductSupplierinfo(criteria *Criteria) (*ProductSupplierinfo, error)

FindProductSupplierinfo finds product.supplierinfo record by querying it with criteria.

func (*Client) FindProductSupplierinfoId

func (c *Client) FindProductSupplierinfoId(criteria *Criteria, options *Options) (int64, error)

FindProductSupplierinfoId finds record id by querying it with criteria.

func (*Client) FindProductSupplierinfoIds

func (c *Client) FindProductSupplierinfoIds(criteria *Criteria, options *Options) ([]int64, error)

FindProductSupplierinfoIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindProductSupplierinfos

func (c *Client) FindProductSupplierinfos(criteria *Criteria, options *Options) (*ProductSupplierinfos, error)

FindProductSupplierinfos finds product.supplierinfo records by querying it and filtering it with criteria and options.

func (*Client) FindProjectProject

func (c *Client) FindProjectProject(criteria *Criteria) (*ProjectProject, error)

FindProjectProject finds project.project record by querying it with criteria.

func (*Client) FindProjectProjectId

func (c *Client) FindProjectProjectId(criteria *Criteria, options *Options) (int64, error)

FindProjectProjectId finds record id by querying it with criteria.

func (*Client) FindProjectProjectIds

func (c *Client) FindProjectProjectIds(criteria *Criteria, options *Options) ([]int64, error)

FindProjectProjectIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindProjectProjects

func (c *Client) FindProjectProjects(criteria *Criteria, options *Options) (*ProjectProjects, error)

FindProjectProjects finds project.project records by querying it and filtering it with criteria and options.

func (*Client) FindProjectTask

func (c *Client) FindProjectTask(criteria *Criteria) (*ProjectTask, error)

FindProjectTask finds project.task record by querying it with criteria.

func (*Client) FindProjectTaskId

func (c *Client) FindProjectTaskId(criteria *Criteria, options *Options) (int64, error)

FindProjectTaskId finds record id by querying it with criteria.

func (*Client) FindProjectTaskIds

func (c *Client) FindProjectTaskIds(criteria *Criteria, options *Options) ([]int64, error)

FindProjectTaskIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindProjectTasks

func (c *Client) FindProjectTasks(criteria *Criteria, options *Options) (*ProjectTasks, error)

FindProjectTasks finds project.task records by querying it and filtering it with criteria and options.

func (*Client) FindResCompany

func (c *Client) FindResCompany(criteria *Criteria) (*ResCompany, error)

FindResCompany finds res.company record by querying it with criteria.

func (*Client) FindResCompanyId

func (c *Client) FindResCompanyId(criteria *Criteria, options *Options) (int64, error)

FindResCompanyId finds record id by querying it with criteria.

func (*Client) FindResCompanyIds

func (c *Client) FindResCompanyIds(criteria *Criteria, options *Options) ([]int64, error)

FindResCompanyIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindResCompanys

func (c *Client) FindResCompanys(criteria *Criteria, options *Options) (*ResCompanys, error)

FindResCompanys finds res.company records by querying it and filtering it with criteria and options.

func (*Client) FindResPartner

func (c *Client) FindResPartner(criteria *Criteria) (*ResPartner, error)

FindResPartner finds res.partner record by querying it with criteria.

func (*Client) FindResPartnerCategory

func (c *Client) FindResPartnerCategory(criteria *Criteria) (*ResPartnerCategory, error)

FindResPartnerCategory finds res.partner.category record by querying it with criteria.

func (*Client) FindResPartnerCategoryId

func (c *Client) FindResPartnerCategoryId(criteria *Criteria, options *Options) (int64, error)

FindResPartnerCategoryId finds record id by querying it with criteria.

func (*Client) FindResPartnerCategoryIds

func (c *Client) FindResPartnerCategoryIds(criteria *Criteria, options *Options) ([]int64, error)

FindResPartnerCategoryIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindResPartnerCategorys

func (c *Client) FindResPartnerCategorys(criteria *Criteria, options *Options) (*ResPartnerCategorys, error)

FindResPartnerCategorys finds res.partner.category records by querying it and filtering it with criteria and options.

func (*Client) FindResPartnerId

func (c *Client) FindResPartnerId(criteria *Criteria, options *Options) (int64, error)

FindResPartnerId finds record id by querying it with criteria.

func (*Client) FindResPartnerIds

func (c *Client) FindResPartnerIds(criteria *Criteria, options *Options) ([]int64, error)

FindResPartnerIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindResPartners

func (c *Client) FindResPartners(criteria *Criteria, options *Options) (*ResPartners, error)

FindResPartners finds res.partner records by querying it and filtering it with criteria and options.

func (*Client) FindResUsers

func (c *Client) FindResUsers(criteria *Criteria) (*ResUsers, error)

FindResUsers finds res.users record by querying it with criteria.

func (*Client) FindResUsersId

func (c *Client) FindResUsersId(criteria *Criteria, options *Options) (int64, error)

FindResUsersId finds record id by querying it with criteria.

func (*Client) FindResUsersIds

func (c *Client) FindResUsersIds(criteria *Criteria, options *Options) ([]int64, error)

FindResUsersIds finds records ids by querying it and filtering it with criteria and options.

func (*Client) FindResUserss

func (c *Client) FindResUserss(criteria *Criteria, options *Options) (*ResUserss, error)

FindResUserss finds res.users records by querying it and filtering it with criteria and options.

func (*Client) GetAccountAccount

func (c *Client) GetAccountAccount(id int64) (*AccountAccount, error)

GetAccountAccount gets account.account existing record.

func (*Client) GetAccountAccounts

func (c *Client) GetAccountAccounts(ids []int64) (*AccountAccounts, error)

GetAccountAccounts gets account.account existing records.

func (*Client) GetAccountAnalyticAccount

func (c *Client) GetAccountAnalyticAccount(id int64) (*AccountAnalyticAccount, error)

GetAccountAnalyticAccount gets account.analytic.account existing record.

func (*Client) GetAccountAnalyticAccounts

func (c *Client) GetAccountAnalyticAccounts(ids []int64) (*AccountAnalyticAccounts, error)

GetAccountAnalyticAccounts gets account.analytic.account existing records.

func (*Client) GetAccountAnalyticLine

func (c *Client) GetAccountAnalyticLine(id int64) (*AccountAnalyticLine, error)

GetAccountAnalyticLine gets account.analytic.line existing record.

func (*Client) GetAccountAnalyticLines

func (c *Client) GetAccountAnalyticLines(ids []int64) (*AccountAnalyticLines, error)

GetAccountAnalyticLines gets account.analytic.line existing records.

func (*Client) GetAccountAnalyticTag

func (c *Client) GetAccountAnalyticTag(id int64) (*AccountAnalyticTag, error)

GetAccountAnalyticTag gets account.analytic.tag existing record.

func (*Client) GetAccountAnalyticTags

func (c *Client) GetAccountAnalyticTags(ids []int64) (*AccountAnalyticTags, error)

GetAccountAnalyticTags gets account.analytic.tag existing records.

func (*Client) GetAccountInvoice

func (c *Client) GetAccountInvoice(id int64) (*AccountInvoice, error)

GetAccountInvoice gets account.invoice existing record.

func (*Client) GetAccountInvoiceLine

func (c *Client) GetAccountInvoiceLine(id int64) (*AccountInvoiceLine, error)

GetAccountInvoiceLine gets account.invoice.line existing record.

func (*Client) GetAccountInvoiceLines

func (c *Client) GetAccountInvoiceLines(ids []int64) (*AccountInvoiceLines, error)

GetAccountInvoiceLines gets account.invoice.line existing records.

func (*Client) GetAccountInvoices

func (c *Client) GetAccountInvoices(ids []int64) (*AccountInvoices, error)

GetAccountInvoices gets account.invoice existing records.

func (*Client) GetAccountJournal

func (c *Client) GetAccountJournal(id int64) (*AccountJournal, error)

GetAccountJournal gets account.journal existing record.

func (*Client) GetAccountJournals

func (c *Client) GetAccountJournals(ids []int64) (*AccountJournals, error)

GetAccountJournals gets account.journal existing records.

func (*Client) GetCrmLead

func (c *Client) GetCrmLead(id int64) (*CrmLead, error)

GetCrmLead gets crm.lead existing record.

func (*Client) GetCrmLeadTag

func (c *Client) GetCrmLeadTag(id int64) (*CrmLeadTag, error)

GetCrmLeadTag gets crm.lead.tag existing record.

func (*Client) GetCrmLeadTags

func (c *Client) GetCrmLeadTags(ids []int64) (*CrmLeadTags, error)

GetCrmLeadTags gets crm.lead.tag existing records.

func (*Client) GetCrmLeads

func (c *Client) GetCrmLeads(ids []int64) (*CrmLeads, error)

GetCrmLeads gets crm.lead existing records.

func (*Client) GetIrModel

func (c *Client) GetIrModel(id int64) (*IrModel, error)

GetIrModel gets ir.model existing record.

func (*Client) GetIrModelFields

func (c *Client) GetIrModelFields(id int64) (*IrModelFields, error)

GetIrModelFields gets ir.model.fields existing record.

func (*Client) GetIrModelFieldss

func (c *Client) GetIrModelFieldss(ids []int64) (*IrModelFieldss, error)

GetIrModelFieldss gets ir.model.fields existing records.

func (*Client) GetIrModels

func (c *Client) GetIrModels(ids []int64) (*IrModels, error)

GetIrModels gets ir.model existing records.

func (*Client) GetIrModuleModule

func (c *Client) GetIrModuleModule(id int64) (*IrModuleModule, error)

GetIrModuleModule gets ir.module.module existing record.

func (*Client) GetIrModuleModules

func (c *Client) GetIrModuleModules(ids []int64) (*IrModuleModules, error)

GetIrModuleModules gets ir.module.module existing records.

func (*Client) GetMailFollowers

func (c *Client) GetMailFollowers(id int64) (*MailFollowers, error)

GetMailFollowers gets mail.followers existing record.

func (*Client) GetMailFollowerss

func (c *Client) GetMailFollowerss(ids []int64) (*MailFollowerss, error)

GetMailFollowerss gets mail.followers existing records.

func (*Client) GetProductProduct

func (c *Client) GetProductProduct(id int64) (*ProductProduct, error)

GetProductProduct gets product.product existing record.

func (*Client) GetProductProducts

func (c *Client) GetProductProducts(ids []int64) (*ProductProducts, error)

GetProductProducts gets product.product existing records.

func (*Client) GetProductSupplierinfo

func (c *Client) GetProductSupplierinfo(id int64) (*ProductSupplierinfo, error)

GetProductSupplierinfo gets product.supplierinfo existing record.

func (*Client) GetProductSupplierinfos

func (c *Client) GetProductSupplierinfos(ids []int64) (*ProductSupplierinfos, error)

GetProductSupplierinfos gets product.supplierinfo existing records.

func (*Client) GetProjectProject

func (c *Client) GetProjectProject(id int64) (*ProjectProject, error)

GetProjectProject gets project.project existing record.

func (*Client) GetProjectProjects

func (c *Client) GetProjectProjects(ids []int64) (*ProjectProjects, error)

GetProjectProjects gets project.project existing records.

func (*Client) GetProjectTask

func (c *Client) GetProjectTask(id int64) (*ProjectTask, error)

GetProjectTask gets project.task existing record.

func (*Client) GetProjectTasks

func (c *Client) GetProjectTasks(ids []int64) (*ProjectTasks, error)

GetProjectTasks gets project.task existing records.

func (*Client) GetResCompany

func (c *Client) GetResCompany(id int64) (*ResCompany, error)

GetResCompany gets res.company existing record.

func (*Client) GetResCompanys

func (c *Client) GetResCompanys(ids []int64) (*ResCompanys, error)

GetResCompanys gets res.company existing records.

func (*Client) GetResPartner

func (c *Client) GetResPartner(id int64) (*ResPartner, error)

GetResPartner gets res.partner existing record.

func (*Client) GetResPartnerCategory

func (c *Client) GetResPartnerCategory(id int64) (*ResPartnerCategory, error)

GetResPartnerCategory gets res.partner.category existing record.

func (*Client) GetResPartnerCategorys

func (c *Client) GetResPartnerCategorys(ids []int64) (*ResPartnerCategorys, error)

GetResPartnerCategorys gets res.partner.category existing records.

func (*Client) GetResPartners

func (c *Client) GetResPartners(ids []int64) (*ResPartners, error)

GetResPartners gets res.partner existing records.

func (*Client) GetResUsers

func (c *Client) GetResUsers(id int64) (*ResUsers, error)

GetResUsers gets res.users existing record.

func (*Client) GetResUserss

func (c *Client) GetResUserss(ids []int64) (*ResUserss, error)

GetResUserss gets res.users existing records.

func (*Client) Read

func (c *Client) Read(model string, ids []int64, options *Options, elem interface{}) error

Read model records matching with ids. https://www.odoo.com/documentation/13.0/webservices/odoo.html#read-records

func (*Client) Search

func (c *Client) Search(model string, criteria *Criteria, options *Options) ([]int64, error)

Search model record ids matching with *Criteria. https://www.odoo.com/documentation/13.0/webservices/odoo.html#list-records

func (*Client) SearchRead

func (c *Client) SearchRead(model string, criteria *Criteria, options *Options, elem interface{}) error

SearchRead search model records matching with *Criteria and read it. https://www.odoo.com/documentation/13.0/webservices/odoo.html#search-and-read

func (*Client) Update

func (c *Client) Update(model string, ids []int64, values interface{}) error

Update existing model row(s). https://www.odoo.com/documentation/13.0/webservices/odoo.html#update-records

func (*Client) UpdateAccountAccount

func (c *Client) UpdateAccountAccount(aa *AccountAccount) error

UpdateAccountAccount updates an existing account.account record.

func (*Client) UpdateAccountAccounts

func (c *Client) UpdateAccountAccounts(ids []int64, aa *AccountAccount) error

UpdateAccountAccounts updates existing account.account records. All records (represented by ids) will be updated by aa values.

func (*Client) UpdateAccountAnalyticAccount

func (c *Client) UpdateAccountAnalyticAccount(aaa *AccountAnalyticAccount) error

UpdateAccountAnalyticAccount updates an existing account.analytic.account record.

func (*Client) UpdateAccountAnalyticAccounts

func (c *Client) UpdateAccountAnalyticAccounts(ids []int64, aaa *AccountAnalyticAccount) error

UpdateAccountAnalyticAccounts updates existing account.analytic.account records. All records (represented by ids) will be updated by aaa values.

func (*Client) UpdateAccountAnalyticLine

func (c *Client) UpdateAccountAnalyticLine(aal *AccountAnalyticLine) error

UpdateAccountAnalyticLine updates an existing account.analytic.line record.

func (*Client) UpdateAccountAnalyticLines

func (c *Client) UpdateAccountAnalyticLines(ids []int64, aal *AccountAnalyticLine) error

UpdateAccountAnalyticLines updates existing account.analytic.line records. All records (represented by ids) will be updated by aal values.

func (*Client) UpdateAccountAnalyticTag

func (c *Client) UpdateAccountAnalyticTag(aat *AccountAnalyticTag) error

UpdateAccountAnalyticTag updates an existing account.analytic.tag record.

func (*Client) UpdateAccountAnalyticTags

func (c *Client) UpdateAccountAnalyticTags(ids []int64, aat *AccountAnalyticTag) error

UpdateAccountAnalyticTags updates existing account.analytic.tag records. All records (represented by ids) will be updated by aat values.

func (*Client) UpdateAccountInvoice

func (c *Client) UpdateAccountInvoice(ai *AccountInvoice) error

UpdateAccountInvoice updates an existing account.invoice record.

func (*Client) UpdateAccountInvoiceLine

func (c *Client) UpdateAccountInvoiceLine(ail *AccountInvoiceLine) error

UpdateAccountInvoiceLine updates an existing account.invoice.line record.

func (*Client) UpdateAccountInvoiceLines

func (c *Client) UpdateAccountInvoiceLines(ids []int64, ail *AccountInvoiceLine) error

UpdateAccountInvoiceLines updates existing account.invoice.line records. All records (represented by ids) will be updated by ail values.

func (*Client) UpdateAccountInvoices

func (c *Client) UpdateAccountInvoices(ids []int64, ai *AccountInvoice) error

UpdateAccountInvoices updates existing account.invoice records. All records (represented by ids) will be updated by ai values.

func (*Client) UpdateAccountJournal

func (c *Client) UpdateAccountJournal(aj *AccountJournal) error

UpdateAccountJournal updates an existing account.journal record.

func (*Client) UpdateAccountJournals

func (c *Client) UpdateAccountJournals(ids []int64, aj *AccountJournal) error

UpdateAccountJournals updates existing account.journal records. All records (represented by ids) will be updated by aj values.

func (*Client) UpdateCrmLead

func (c *Client) UpdateCrmLead(cl *CrmLead) error

UpdateCrmLead updates an existing crm.lead record.

func (*Client) UpdateCrmLeadTag

func (c *Client) UpdateCrmLeadTag(clt *CrmLeadTag) error

UpdateCrmLeadTag updates an existing crm.lead.tag record.

func (*Client) UpdateCrmLeadTags

func (c *Client) UpdateCrmLeadTags(ids []int64, clt *CrmLeadTag) error

UpdateCrmLeadTags updates existing crm.lead.tag records. All records (represented by ids) will be updated by clt values.

func (*Client) UpdateCrmLeads

func (c *Client) UpdateCrmLeads(ids []int64, cl *CrmLead) error

UpdateCrmLeads updates existing crm.lead records. All records (represented by ids) will be updated by cl values.

func (*Client) UpdateIrModel

func (c *Client) UpdateIrModel(im *IrModel) error

UpdateIrModel pdates an existing ir.model record.

func (*Client) UpdateIrModelFields

func (c *Client) UpdateIrModelFields(imf *IrModelFields) error

UpdateIrModelFields pdates an existing ir.model.fields record.

func (*Client) UpdateIrModelFieldss

func (c *Client) UpdateIrModelFieldss(ids []int64, imf *IrModelFields) error

UpdateIrModelFieldss updates existing ir.model.fields records. All records (represented by ids) will be updated by imf values.

func (*Client) UpdateIrModels

func (c *Client) UpdateIrModels(ids []int64, im *IrModel) error

UpdateIrModels updates existing ir.model records. All records (represented by ids) will be updated by im values.

func (*Client) UpdateIrModuleModule

func (c *Client) UpdateIrModuleModule(imm *IrModuleModule) error

UpdateIrModuleModule updates an existing ir.module.module record.

func (*Client) UpdateIrModuleModules

func (c *Client) UpdateIrModuleModules(ids []int64, imm *IrModuleModule) error

UpdateIrModuleModules updates existing ir.module.module records. All records (represented by ids) will be updated by imm values.

func (*Client) UpdateMailFollowers

func (c *Client) UpdateMailFollowers(mf *MailFollowers) error

UpdateMailFollowers updates an existing mail.followers record.

func (*Client) UpdateMailFollowerss

func (c *Client) UpdateMailFollowerss(ids []int64, mf *MailFollowers) error

UpdateMailFollowerss updates existing mail.followers records. All records (represented by ids) will be updated by mf values.

func (*Client) UpdateProductProduct

func (c *Client) UpdateProductProduct(pp *ProductProduct) error

UpdateProductProduct updates an existing product.product record.

func (*Client) UpdateProductProducts

func (c *Client) UpdateProductProducts(ids []int64, pp *ProductProduct) error

UpdateProductProducts updates existing product.product records. All records (represented by ids) will be updated by pp values.

func (*Client) UpdateProductSupplierinfo

func (c *Client) UpdateProductSupplierinfo(ps *ProductSupplierinfo) error

UpdateProductSupplierinfo updates an existing product.supplierinfo record.

func (*Client) UpdateProductSupplierinfos

func (c *Client) UpdateProductSupplierinfos(ids []int64, ps *ProductSupplierinfo) error

UpdateProductSupplierinfos updates existing product.supplierinfo records. All records (represented by ids) will be updated by ps values.

func (*Client) UpdateProjectProject

func (c *Client) UpdateProjectProject(pp *ProjectProject) error

UpdateProjectProject updates an existing project.project record.

func (*Client) UpdateProjectProjects

func (c *Client) UpdateProjectProjects(ids []int64, pp *ProjectProject) error

UpdateProjectProjects updates existing project.project records. All records (represented by ids) will be updated by pp values.

func (*Client) UpdateProjectTask

func (c *Client) UpdateProjectTask(pt *ProjectTask) error

UpdateProjectTask updates an existing project.task record.

func (*Client) UpdateProjectTasks

func (c *Client) UpdateProjectTasks(ids []int64, pt *ProjectTask) error

UpdateProjectTasks updates existing project.task records. All records (represented by ids) will be updated by pt values.

func (*Client) UpdateResCompany

func (c *Client) UpdateResCompany(rc *ResCompany) error

UpdateResCompany updates an existing res.company record.

func (*Client) UpdateResCompanys

func (c *Client) UpdateResCompanys(ids []int64, rc *ResCompany) error

UpdateResCompanys updates existing res.company records. All records (represented by ids) will be updated by rc values.

func (*Client) UpdateResPartner

func (c *Client) UpdateResPartner(rp *ResPartner) error

UpdateResPartner updates an existing res.partner record.

func (*Client) UpdateResPartnerCategory

func (c *Client) UpdateResPartnerCategory(rpc *ResPartnerCategory) error

UpdateResPartnerCategory updates an existing res.partner.category record.

func (*Client) UpdateResPartnerCategorys

func (c *Client) UpdateResPartnerCategorys(ids []int64, rpc *ResPartnerCategory) error

UpdateResPartnerCategorys updates existing res.partner.category records. All records (represented by ids) will be updated by rpc values.

func (*Client) UpdateResPartners

func (c *Client) UpdateResPartners(ids []int64, rp *ResPartner) error

UpdateResPartners updates existing res.partner records. All records (represented by ids) will be updated by rp values.

func (*Client) UpdateResUsers

func (c *Client) UpdateResUsers(ru *ResUsers) error

UpdateResUsers updates an existing res.users record.

func (*Client) UpdateResUserss

func (c *Client) UpdateResUserss(ids []int64, ru *ResUsers) error

UpdateResUserss updates existing res.users records. All records (represented by ids) will be updated by ru values.

func (*Client) Version

func (c *Client) Version() (Version, error)

Version get informations about your odoo instance version.

type ClientConfig

type ClientConfig struct {
	Database string
	Admin    string
	Password string
	URL      string
}

ClientConfig is the configuration to create a new *Client by givin connection infomations.

type Criteria

type Criteria []*criterion

Criteria is a set of criterion, each criterion is a triple (field_name, operator, value). It allow you to search models. see documentation: https://www.odoo.com/documentation/13.0/reference/orm.html#reference-orm-domains

func NewCriteria

func NewCriteria() *Criteria

NewCriteria creates a new *Criteria.

func (*Criteria) Add

func (c *Criteria) Add(field, operator string, value interface{}) *Criteria

Add a new criterion to a *Criteria.

type CrmLead

type CrmLead struct {
	LastUpdate               *Time      `xmlrpc:"__last_update,omptempty"`
	Active                   *Bool      `xmlrpc:"active,omptempty"`
	ActivityDateDeadline     *Time      `xmlrpc:"activity_date_deadline,omptempty"`
	ActivityIds              *Relation  `xmlrpc:"activity_ids,omptempty"`
	ActivityState            *Selection `xmlrpc:"activity_state,omptempty"`
	ActivitySummary          *String    `xmlrpc:"activity_summary,omptempty"`
	ActivityTypeId           *Many2One  `xmlrpc:"activity_type_id,omptempty"`
	ActivityUserId           *Many2One  `xmlrpc:"activity_user_id,omptempty"`
	CampaignId               *Many2One  `xmlrpc:"campaign_id,omptempty"`
	City                     *String    `xmlrpc:"city,omptempty"`
	Color                    *Int       `xmlrpc:"color,omptempty"`
	CompanyCurrency          *Many2One  `xmlrpc:"company_currency,omptempty"`
	CompanyId                *Many2One  `xmlrpc:"company_id,omptempty"`
	ContactName              *String    `xmlrpc:"contact_name,omptempty"`
	CountryId                *Many2One  `xmlrpc:"country_id,omptempty"`
	CreateDate               *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid                *Many2One  `xmlrpc:"create_uid,omptempty"`
	DateActionLast           *Time      `xmlrpc:"date_action_last,omptempty"`
	DateClosed               *Time      `xmlrpc:"date_closed,omptempty"`
	DateConversion           *Time      `xmlrpc:"date_conversion,omptempty"`
	DateDeadline             *Time      `xmlrpc:"date_deadline,omptempty"`
	DateLastStageUpdate      *Time      `xmlrpc:"date_last_stage_update,omptempty"`
	DateOpen                 *Time      `xmlrpc:"date_open,omptempty"`
	DayClose                 *Float     `xmlrpc:"day_close,omptempty"`
	DayOpen                  *Float     `xmlrpc:"day_open,omptempty"`
	Description              *String    `xmlrpc:"description,omptempty"`
	DisplayName              *String    `xmlrpc:"display_name,omptempty"`
	EmailCc                  *String    `xmlrpc:"email_cc,omptempty"`
	EmailFrom                *String    `xmlrpc:"email_from,omptempty"`
	Function                 *String    `xmlrpc:"function,omptempty"`
	Id                       *Int       `xmlrpc:"id,omptempty"`
	KanbanState              *Selection `xmlrpc:"kanban_state,omptempty"`
	LostReason               *Many2One  `xmlrpc:"lost_reason,omptempty"`
	MachineLeadName          *String    `xmlrpc:"machine_lead_name,omptempty"`
	MediumId                 *Many2One  `xmlrpc:"medium_id,omptempty"`
	MeetingCount             *Int       `xmlrpc:"meeting_count,omptempty"`
	MessageBounce            *Int       `xmlrpc:"message_bounce,omptempty"`
	MessageChannelIds        *Relation  `xmlrpc:"message_channel_ids,omptempty"`
	MessageFollowerIds       *Relation  `xmlrpc:"message_follower_ids,omptempty"`
	MessageIds               *Relation  `xmlrpc:"message_ids,omptempty"`
	MessageIsFollower        *Bool      `xmlrpc:"message_is_follower,omptempty"`
	MessageLastPost          *Time      `xmlrpc:"message_last_post,omptempty"`
	MessageNeedaction        *Bool      `xmlrpc:"message_needaction,omptempty"`
	MessageNeedactionCounter *Int       `xmlrpc:"message_needaction_counter,omptempty"`
	MessagePartnerIds        *Relation  `xmlrpc:"message_partner_ids,omptempty"`
	MessageUnread            *Bool      `xmlrpc:"message_unread,omptempty"`
	MessageUnreadCounter     *Int       `xmlrpc:"message_unread_counter,omptempty"`
	Mobile                   *String    `xmlrpc:"mobile,omptempty"`
	Name                     *String    `xmlrpc:"name,omptempty"`
	OptOut                   *Bool      `xmlrpc:"opt_out,omptempty"`
	OrderIds                 *Relation  `xmlrpc:"order_ids,omptempty"`
	PartnerAddressEmail      *String    `xmlrpc:"partner_address_email,omptempty"`
	PartnerAddressName       *String    `xmlrpc:"partner_address_name,omptempty"`
	PartnerId                *Many2One  `xmlrpc:"partner_id,omptempty"`
	PartnerName              *String    `xmlrpc:"partner_name,omptempty"`
	Phone                    *String    `xmlrpc:"phone,omptempty"`
	PlannedRevenue           *Float     `xmlrpc:"planned_revenue,omptempty"`
	Priority                 *Selection `xmlrpc:"priority,omptempty"`
	Probability              *Float     `xmlrpc:"probability,omptempty"`
	Referred                 *String    `xmlrpc:"referred,omptempty"`
	SaleAmountTotal          *Float     `xmlrpc:"sale_amount_total,omptempty"`
	SaleNumber               *Int       `xmlrpc:"sale_number,omptempty"`
	SourceId                 *Many2One  `xmlrpc:"source_id,omptempty"`
	StageId                  *Many2One  `xmlrpc:"stage_id,omptempty"`
	StateId                  *Many2One  `xmlrpc:"state_id,omptempty"`
	Street                   *String    `xmlrpc:"street,omptempty"`
	Street2                  *String    `xmlrpc:"street2,omptempty"`
	TagIds                   *Relation  `xmlrpc:"tag_ids,omptempty"`
	TeamId                   *Many2One  `xmlrpc:"team_id,omptempty"`
	Title                    *Many2One  `xmlrpc:"title,omptempty"`
	Type                     *Selection `xmlrpc:"type,omptempty"`
	UserEmail                *String    `xmlrpc:"user_email,omptempty"`
	UserId                   *Many2One  `xmlrpc:"user_id,omptempty"`
	UserLogin                *String    `xmlrpc:"user_login,omptempty"`
	Website                  *String    `xmlrpc:"website,omptempty"`
	WebsiteMessageIds        *Relation  `xmlrpc:"website_message_ids,omptempty"`
	WriteDate                *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid                 *Many2One  `xmlrpc:"write_uid,omptempty"`
	Zip                      *String    `xmlrpc:"zip,omptempty"`
}

CrmLead represents crm.lead model.

func (*CrmLead) Many2One

func (cl *CrmLead) Many2One() *Many2One

Many2One convert CrmLead to *Many2One.

type CrmLeadTag

type CrmLeadTag struct {
	LastUpdate  *Time     `xmlrpc:"__last_update,omptempty"`
	Color       *Int      `xmlrpc:"color,omptempty"`
	CreateDate  *Time     `xmlrpc:"create_date,omptempty"`
	CreateUid   *Many2One `xmlrpc:"create_uid,omptempty"`
	DisplayName *String   `xmlrpc:"display_name,omptempty"`
	Id          *Int      `xmlrpc:"id,omptempty"`
	Name        *String   `xmlrpc:"name,omptempty"`
	WriteDate   *Time     `xmlrpc:"write_date,omptempty"`
	WriteUid    *Many2One `xmlrpc:"write_uid,omptempty"`
}

CrmLeadTag represents crm.lead.tag model.

func (*CrmLeadTag) Many2One

func (clt *CrmLeadTag) Many2One() *Many2One

Many2One convert CrmLeadTag to *Many2One.

type CrmLeadTags

type CrmLeadTags []CrmLeadTag

CrmLeadTags represents array of crm.lead.tag model.

type CrmLeads

type CrmLeads []CrmLead

CrmLeads represents array of crm.lead model.

type Float

type Float struct {
	// contains filtered or unexported fields
}

Float is a float64 wrapper

func NewFloat

func NewFloat(v float64) *Float

NewFloat creates a new *Float.

func (*Float) Get

func (f *Float) Get() float64

Get *Float value.

type Int

type Int struct {
	// contains filtered or unexported fields
}

Int is an int64 wrapper

func NewInt

func NewInt(v int64) *Int

NewInt creates a new *Int.

func (*Int) Get

func (i *Int) Get() int64

Get *Int value.

type IrModel

type IrModel struct {
	LastUpdate        *Time      `xmlrpc:"__last_update,omptempty"`
	AccessIds         *Relation  `xmlrpc:"access_ids,omptempty"`
	Count             *Int       `xmlrpc:"count,omptempty"`
	CreateDate        *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid         *Many2One  `xmlrpc:"create_uid,omptempty"`
	DisplayName       *String    `xmlrpc:"display_name,omptempty"`
	FieldId           *Relation  `xmlrpc:"field_id,omptempty"`
	Id                *Int       `xmlrpc:"id,omptempty"`
	Info              *String    `xmlrpc:"info,omptempty"`
	InheritedModelIds *Relation  `xmlrpc:"inherited_model_ids,omptempty"`
	Model             *String    `xmlrpc:"model,omptempty"`
	Modules           *String    `xmlrpc:"modules,omptempty"`
	Name              *String    `xmlrpc:"name,omptempty"`
	RuleIds           *Relation  `xmlrpc:"rule_ids,omptempty"`
	State             *Selection `xmlrpc:"state,omptempty"`
	Transient         *Bool      `xmlrpc:"transient,omptempty"`
	ViewIds           *Relation  `xmlrpc:"view_ids,omptempty"`
	WriteDate         *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid          *Many2One  `xmlrpc:"write_uid,omptempty"`
}

IrModel represents ir.model model

type IrModelFields

type IrModelFields struct {
	LastUpdate       *Time      `xmlrpc:"__last_update,omptempty"`
	Column1          *String    `xmlrpc:"column1,omptempty"`
	Column2          *String    `xmlrpc:"column2,omptempty"`
	CompleteName     *String    `xmlrpc:"complete_name,omptempty"`
	Compute          *String    `xmlrpc:"compute,omptempty"`
	Copied           *Bool      `xmlrpc:"copied,omptempty"`
	CreateDate       *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid        *Many2One  `xmlrpc:"create_uid,omptempty"`
	Depends          *String    `xmlrpc:"depends,omptempty"`
	DisplayName      *String    `xmlrpc:"display_name,omptempty"`
	Domain           *String    `xmlrpc:"domain,omptempty"`
	FieldDescription *String    `xmlrpc:"field_description,omptempty"`
	Groups           *Relation  `xmlrpc:"groups,omptempty"`
	Help             *String    `xmlrpc:"help,omptempty"`
	Id               *Int       `xmlrpc:"id,omptempty"`
	Index            *Bool      `xmlrpc:"index,omptempty"`
	Model            *String    `xmlrpc:"model,omptempty"`
	ModelId          *Many2One  `xmlrpc:"model_id,omptempty"`
	Modules          *String    `xmlrpc:"modules,omptempty"`
	Name             *String    `xmlrpc:"name,omptempty"`
	OnDelete         *Selection `xmlrpc:"on_delete,omptempty"`
	Readonly         *Bool      `xmlrpc:"readonly,omptempty"`
	Related          *String    `xmlrpc:"related,omptempty"`
	RelatedFieldId   *Many2One  `xmlrpc:"related_field_id,omptempty"`
	Relation         *String    `xmlrpc:"relation,omptempty"`
	RelationField    *String    `xmlrpc:"relation_field,omptempty"`
	RelationFieldId  *Many2One  `xmlrpc:"relation_field_id,omptempty"`
	RelationTable    *String    `xmlrpc:"relation_table,omptempty"`
	Required         *Bool      `xmlrpc:"required,omptempty"`
	Selectable       *Bool      `xmlrpc:"selectable,omptempty"`
	Selection        *String    `xmlrpc:"selection,omptempty"`
	SelectionIds     *Relation  `xmlrpc:"selection_ids,omptempty"`
	Size             *Int       `xmlrpc:"size,omptempty"`
	State            *Selection `xmlrpc:"state,omptempty"`
	Store            *Bool      `xmlrpc:"store,omptempty"`
	Translate        *Bool      `xmlrpc:"translate,omptempty"`
	Ttype            *Selection `xmlrpc:"ttype,omptempty"`
	WriteDate        *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid         *Many2One  `xmlrpc:"write_uid,omptempty"`
}

IrModelFields represents ir.model.fields model

type IrModelFieldss

type IrModelFieldss []IrModelFields

IrModelFieldss represents array of ir.model.fields model

type IrModels

type IrModels []IrModel

IrModels represents array of ir.model model

type IrModuleModule

type IrModuleModule struct {
	LastUpdate       *Time      `xmlrpc:"__last_update,omptempty"`
	Application      *Bool      `xmlrpc:"application,omptempty"`
	Author           *String    `xmlrpc:"author,omptempty"`
	AutoInstall      *Bool      `xmlrpc:"auto_install,omptempty"`
	CategoryId       *Many2One  `xmlrpc:"category_id,omptempty"`
	Contributors     *String    `xmlrpc:"contributors,omptempty"`
	CreateDate       *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid        *Many2One  `xmlrpc:"create_uid,omptempty"`
	Demo             *Bool      `xmlrpc:"demo,omptempty"`
	DependenciesId   *Relation  `xmlrpc:"dependencies_id,omptempty"`
	Description      *String    `xmlrpc:"description,omptempty"`
	DescriptionHtml  *String    `xmlrpc:"description_html,omptempty"`
	DisplayName      *String    `xmlrpc:"display_name,omptempty"`
	ExclusionIds     *Relation  `xmlrpc:"exclusion_ids,omptempty"`
	Icon             *String    `xmlrpc:"icon,omptempty"`
	IconImage        *String    `xmlrpc:"icon_image,omptempty"`
	Id               *Int       `xmlrpc:"id,omptempty"`
	InstalledVersion *String    `xmlrpc:"installed_version,omptempty"`
	LatestVersion    *String    `xmlrpc:"latest_version,omptempty"`
	License          *Selection `xmlrpc:"license,omptempty"`
	Maintainer       *String    `xmlrpc:"maintainer,omptempty"`
	MenusByModule    *String    `xmlrpc:"menus_by_module,omptempty"`
	Name             *String    `xmlrpc:"name,omptempty"`
	PublishedVersion *String    `xmlrpc:"published_version,omptempty"`
	ReportsByModule  *String    `xmlrpc:"reports_by_module,omptempty"`
	Sequence         *Int       `xmlrpc:"sequence,omptempty"`
	Shortdesc        *String    `xmlrpc:"shortdesc,omptempty"`
	State            *Selection `xmlrpc:"state,omptempty"`
	Summary          *String    `xmlrpc:"summary,omptempty"`
	Url              *String    `xmlrpc:"url,omptempty"`
	ViewsByModule    *String    `xmlrpc:"views_by_module,omptempty"`
	Website          *String    `xmlrpc:"website,omptempty"`
	WriteDate        *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid         *Many2One  `xmlrpc:"write_uid,omptempty"`
}

IrModuleModule represents ir.module.module model.

func (*IrModuleModule) Many2One

func (imm *IrModuleModule) Many2One() *Many2One

Many2One convert IrModuleModule to *Many2One.

type IrModuleModules

type IrModuleModules []IrModuleModule

IrModuleModules represents array of ir.module.module model.

type MailFollowers

type MailFollowers struct {
	LastUpdate  *Time     `xmlrpc:"__last_update,omitempty"`
	ChannelId   *Many2One `xmlrpc:"channel_id,omitempty"`
	DisplayName *String   `xmlrpc:"display_name,omitempty"`
	Id          *Int      `xmlrpc:"id,omitempty"`
	PartnerId   *Many2One `xmlrpc:"partner_id,omitempty"`
	ResId       *Int      `xmlrpc:"res_id,omitempty"`
	ResModel    *String   `xmlrpc:"res_model,omitempty"`
	SubtypeIds  *Relation `xmlrpc:"subtype_ids,omitempty"`
}

MailFollowers represents mail.followers model.

func (*MailFollowers) Many2One

func (mf *MailFollowers) Many2One() *Many2One

Many2One convert MailFollowers to *Many2One.

type MailFollowerss

type MailFollowerss []MailFollowers

MailFollowerss represents array of mail.followers model.

type Many2One

type Many2One struct {
	ID   int64
	Name string
}

Many2One represents odoo many2one type. https://www.odoo.com/documentation/13.0/reference/orm.html#relational-fields

func NewMany2One

func NewMany2One(id int64, name string) *Many2One

NewMany2One create a new *Many2One.

func (*Many2One) Get

func (m *Many2One) Get() int64

Get *Many2One value.

type Options

type Options map[string]interface{}

Options allow you to filter search results.

func NewOptions

func NewOptions() *Options

NewOptions creates a new *Options

func (*Options) Add

func (o *Options) Add(opt string, v interface{}) *Options

Add on option by providing option name and value.

func (*Options) AllFields

func (o *Options) AllFields(fields ...string) *Options

AllFields is useful for FieldsGet function. It represents the fields to document you want odoo to return. https://www.odoo.com/documentation/13.0/reference/orm.html#fields-views

func (*Options) Attributes

func (o *Options) Attributes(attributes ...string) *Options

Attributes is useful for FieldsGet function. It represents the attributes to document you want odoo to return. https://www.odoo.com/documentation/13.0/reference/orm.html#fields-views

func (*Options) FetchFields

func (o *Options) FetchFields(fields ...string) *Options

FetchFields allow you to precise the model fields you want odoo to return. https://www.odoo.com/documentation/13.0/webservices/odoo.html#search-and-read

func (*Options) Limit

func (o *Options) Limit(limit int) *Options

Limit adds the limit options. https://www.odoo.com/documentation/13.0/webservices/odoo.html#pagination

func (*Options) Offset

func (o *Options) Offset(offset int) *Options

Offset adds the offset options. https://www.odoo.com/documentation/13.0/webservices/odoo.html#pagination

type ProductProduct

type ProductProduct struct {
	LastUpdate                             *Time      `xmlrpc:"__last_update,omptempty"`
	Active                                 *Bool      `xmlrpc:"active,omptempty"`
	ActivityDateDeadline                   *Time      `xmlrpc:"activity_date_deadline,omptempty"`
	ActivityIds                            *Relation  `xmlrpc:"activity_ids,omptempty"`
	ActivityState                          *Selection `xmlrpc:"activity_state,omptempty"`
	ActivitySummary                        *String    `xmlrpc:"activity_summary,omptempty"`
	ActivityTypeId                         *Many2One  `xmlrpc:"activity_type_id,omptempty"`
	ActivityUserId                         *Many2One  `xmlrpc:"activity_user_id,omptempty"`
	AttributeLineIds                       *Relation  `xmlrpc:"attribute_line_ids,omptempty"`
	AttributeValueIds                      *Relation  `xmlrpc:"attribute_value_ids,omptempty"`
	Barcode                                *String    `xmlrpc:"barcode,omptempty"`
	CategId                                *Many2One  `xmlrpc:"categ_id,omptempty"`
	Code                                   *String    `xmlrpc:"code,omptempty"`
	Color                                  *Int       `xmlrpc:"color,omptempty"`
	CompanyId                              *Many2One  `xmlrpc:"company_id,omptempty"`
	CostMethod                             *String    `xmlrpc:"cost_method,omptempty"`
	CreateDate                             *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid                              *Many2One  `xmlrpc:"create_uid,omptempty"`
	CurrencyId                             *Many2One  `xmlrpc:"currency_id,omptempty"`
	DefaultCode                            *String    `xmlrpc:"default_code,omptempty"`
	Description                            *String    `xmlrpc:"description,omptempty"`
	DescriptionPicking                     *String    `xmlrpc:"description_picking,omptempty"`
	DescriptionPickingin                   *String    `xmlrpc:"description_pickingin,omptempty"`
	DescriptionPickingout                  *String    `xmlrpc:"description_pickingout,omptempty"`
	DescriptionPurchase                    *String    `xmlrpc:"description_purchase,omptempty"`
	DescriptionSale                        *String    `xmlrpc:"description_sale,omptempty"`
	DisplayName                            *String    `xmlrpc:"display_name,omptempty"`
	ExpensePolicy                          *Selection `xmlrpc:"expense_policy,omptempty"`
	Id                                     *Int       `xmlrpc:"id,omptempty"`
	Image                                  *String    `xmlrpc:"image,omptempty"`
	ImageMedium                            *String    `xmlrpc:"image_medium,omptempty"`
	ImageSmall                             *String    `xmlrpc:"image_small,omptempty"`
	ImageVariant                           *String    `xmlrpc:"image_variant,omptempty"`
	IncomingQty                            *Float     `xmlrpc:"incoming_qty,omptempty"`
	InvoicePolicy                          *Selection `xmlrpc:"invoice_policy,omptempty"`
	IsProductVariant                       *Bool      `xmlrpc:"is_product_variant,omptempty"`
	ItemIds                                *Relation  `xmlrpc:"item_ids,omptempty"`
	ListPrice                              *Float     `xmlrpc:"list_price,omptempty"`
	LocationId                             *Many2One  `xmlrpc:"location_id,omptempty"`
	LstPrice                               *Float     `xmlrpc:"lst_price,omptempty"`
	MessageChannelIds                      *Relation  `xmlrpc:"message_channel_ids,omptempty"`
	MessageFollowerIds                     *Relation  `xmlrpc:"message_follower_ids,omptempty"`
	MessageIds                             *Relation  `xmlrpc:"message_ids,omptempty"`
	MessageIsFollower                      *Bool      `xmlrpc:"message_is_follower,omptempty"`
	MessageLastPost                        *Time      `xmlrpc:"message_last_post,omptempty"`
	MessageNeedaction                      *Bool      `xmlrpc:"message_needaction,omptempty"`
	MessageNeedactionCounter               *Int       `xmlrpc:"message_needaction_counter,omptempty"`
	MessagePartnerIds                      *Relation  `xmlrpc:"message_partner_ids,omptempty"`
	MessageUnread                          *Bool      `xmlrpc:"message_unread,omptempty"`
	MessageUnreadCounter                   *Int       `xmlrpc:"message_unread_counter,omptempty"`
	Name                                   *String    `xmlrpc:"name,omptempty"`
	NbrReorderingRules                     *Int       `xmlrpc:"nbr_reordering_rules,omptempty"`
	OrderpointIds                          *Relation  `xmlrpc:"orderpoint_ids,omptempty"`
	OutgoingQty                            *Float     `xmlrpc:"outgoing_qty,omptempty"`
	PackagingIds                           *Relation  `xmlrpc:"packaging_ids,omptempty"`
	PartnerRef                             *String    `xmlrpc:"partner_ref,omptempty"`
	Price                                  *Float     `xmlrpc:"price,omptempty"`
	PriceExtra                             *Float     `xmlrpc:"price_extra,omptempty"`
	PricelistId                            *Many2One  `xmlrpc:"pricelist_id,omptempty"`
	PricelistItemIds                       *Relation  `xmlrpc:"pricelist_item_ids,omptempty"`
	ProductTmplId                          *Many2One  `xmlrpc:"product_tmpl_id,omptempty"`
	ProductVariantCount                    *Int       `xmlrpc:"product_variant_count,omptempty"`
	ProductVariantId                       *Many2One  `xmlrpc:"product_variant_id,omptempty"`
	ProductVariantIds                      *Relation  `xmlrpc:"product_variant_ids,omptempty"`
	ProjectId                              *Many2One  `xmlrpc:"project_id,omptempty"`
	PropertyAccountCreditorPriceDifference *Many2One  `xmlrpc:"property_account_creditor_price_difference,omptempty"`
	PropertyAccountExpenseId               *Many2One  `xmlrpc:"property_account_expense_id,omptempty"`
	PropertyAccountIncomeId                *Many2One  `xmlrpc:"property_account_income_id,omptempty"`
	PropertyCostMethod                     *Selection `xmlrpc:"property_cost_method,omptempty"`
	PropertyStockAccountInput              *Many2One  `xmlrpc:"property_stock_account_input,omptempty"`
	PropertyStockAccountOutput             *Many2One  `xmlrpc:"property_stock_account_output,omptempty"`
	PropertyStockInventory                 *Many2One  `xmlrpc:"property_stock_inventory,omptempty"`
	PropertyStockProduction                *Many2One  `xmlrpc:"property_stock_production,omptempty"`
	PropertyValuation                      *Selection `xmlrpc:"property_valuation,omptempty"`
	PurchaseCount                          *Int       `xmlrpc:"purchase_count,omptempty"`
	PurchaseLineWarn                       *Selection `xmlrpc:"purchase_line_warn,omptempty"`
	PurchaseLineWarnMsg                    *String    `xmlrpc:"purchase_line_warn_msg,omptempty"`
	PurchaseMethod                         *Selection `xmlrpc:"purchase_method,omptempty"`
	PurchaseOk                             *Bool      `xmlrpc:"purchase_ok,omptempty"`
	QtyAtDate                              *Float     `xmlrpc:"qty_at_date,omptempty"`
	QtyAvailable                           *Float     `xmlrpc:"qty_available,omptempty"`
	Rental                                 *Bool      `xmlrpc:"rental,omptempty"`
	ReorderingMaxQty                       *Float     `xmlrpc:"reordering_max_qty,omptempty"`
	ReorderingMinQty                       *Float     `xmlrpc:"reordering_min_qty,omptempty"`
	ResponsibleId                          *Many2One  `xmlrpc:"responsible_id,omptempty"`
	RouteFromCategIds                      *Relation  `xmlrpc:"route_from_categ_ids,omptempty"`
	RouteIds                               *Relation  `xmlrpc:"route_ids,omptempty"`
	SaleDelay                              *Float     `xmlrpc:"sale_delay,omptempty"`
	SaleLineWarn                           *Selection `xmlrpc:"sale_line_warn,omptempty"`
	SaleLineWarnMsg                        *String    `xmlrpc:"sale_line_warn_msg,omptempty"`
	SaleOk                                 *Bool      `xmlrpc:"sale_ok,omptempty"`
	SalesCount                             *Float     `xmlrpc:"sales_count,omptempty"`
	SellerIds                              *Relation  `xmlrpc:"seller_ids,omptempty"`
	Sequence                               *Int       `xmlrpc:"sequence,omptempty"`
	ServicePolicy                          *Selection `xmlrpc:"service_policy,omptempty"`
	ServiceTracking                        *Selection `xmlrpc:"service_tracking,omptempty"`
	ServiceType                            *Selection `xmlrpc:"service_type,omptempty"`
	StandardPrice                          *Float     `xmlrpc:"standard_price,omptempty"`
	StockFifoManualMoveIds                 *Relation  `xmlrpc:"stock_fifo_manual_move_ids,omptempty"`
	StockFifoRealTimeAmlIds                *Relation  `xmlrpc:"stock_fifo_real_time_aml_ids,omptempty"`
	StockMoveIds                           *Relation  `xmlrpc:"stock_move_ids,omptempty"`
	StockQuantIds                          *Relation  `xmlrpc:"stock_quant_ids,omptempty"`
	StockValue                             *Float     `xmlrpc:"stock_value,omptempty"`
	SupplierTaxesId                        *Relation  `xmlrpc:"supplier_taxes_id,omptempty"`
	TaxesId                                *Relation  `xmlrpc:"taxes_id,omptempty"`
	Tracking                               *Selection `xmlrpc:"tracking,omptempty"`
	Type                                   *Selection `xmlrpc:"type,omptempty"`
	UomId                                  *Many2One  `xmlrpc:"uom_id,omptempty"`
	UomPoId                                *Many2One  `xmlrpc:"uom_po_id,omptempty"`
	Valuation                              *String    `xmlrpc:"valuation,omptempty"`
	VariantSellerIds                       *Relation  `xmlrpc:"variant_seller_ids,omptempty"`
	VirtualAvailable                       *Float     `xmlrpc:"virtual_available,omptempty"`
	Volume                                 *Float     `xmlrpc:"volume,omptempty"`
	WarehouseId                            *Many2One  `xmlrpc:"warehouse_id,omptempty"`
	WebsiteMessageIds                      *Relation  `xmlrpc:"website_message_ids,omptempty"`
	Weight                                 *Float     `xmlrpc:"weight,omptempty"`
	WriteDate                              *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid                               *Many2One  `xmlrpc:"write_uid,omptempty"`
}

ProductProduct represents product.product model.

func (*ProductProduct) Many2One

func (pp *ProductProduct) Many2One() *Many2One

Many2One convert ProductProduct to *Many2One.

type ProductProducts

type ProductProducts []ProductProduct

ProductProducts represents array of product.product model.

type ProductSupplierinfo

type ProductSupplierinfo struct {
	LastUpdate          *Time     `xmlrpc:"__last_update,omptempty"`
	CompanyId           *Many2One `xmlrpc:"company_id,omptempty"`
	CreateDate          *Time     `xmlrpc:"create_date,omptempty"`
	CreateUid           *Many2One `xmlrpc:"create_uid,omptempty"`
	CurrencyId          *Many2One `xmlrpc:"currency_id,omptempty"`
	DateEnd             *Time     `xmlrpc:"date_end,omptempty"`
	DateStart           *Time     `xmlrpc:"date_start,omptempty"`
	Delay               *Int      `xmlrpc:"delay,omptempty"`
	DisplayName         *String   `xmlrpc:"display_name,omptempty"`
	Id                  *Int      `xmlrpc:"id,omptempty"`
	MinQty              *Float    `xmlrpc:"min_qty,omptempty"`
	Name                *Many2One `xmlrpc:"name,omptempty"`
	Price               *Float    `xmlrpc:"price,omptempty"`
	ProductCode         *String   `xmlrpc:"product_code,omptempty"`
	ProductId           *Many2One `xmlrpc:"product_id,omptempty"`
	ProductName         *String   `xmlrpc:"product_name,omptempty"`
	ProductTmplId       *Many2One `xmlrpc:"product_tmpl_id,omptempty"`
	ProductUom          *Many2One `xmlrpc:"product_uom,omptempty"`
	ProductVariantCount *Int      `xmlrpc:"product_variant_count,omptempty"`
	Sequence            *Int      `xmlrpc:"sequence,omptempty"`
	WriteDate           *Time     `xmlrpc:"write_date,omptempty"`
	WriteUid            *Many2One `xmlrpc:"write_uid,omptempty"`
}

ProductSupplierinfo represents product.supplierinfo model.

func (*ProductSupplierinfo) Many2One

func (ps *ProductSupplierinfo) Many2One() *Many2One

Many2One convert ProductSupplierinfo to *Many2One.

type ProductSupplierinfos

type ProductSupplierinfos []ProductSupplierinfo

ProductSupplierinfos represents array of product.supplierinfo model.

type ProjectProject

type ProjectProject struct {
	LastUpdate               *Time      `xmlrpc:"__last_update,omptempty"`
	Active                   *Bool      `xmlrpc:"active,omptempty"`
	AliasContact             *Selection `xmlrpc:"alias_contact,omptempty"`
	AliasDefaults            *String    `xmlrpc:"alias_defaults,omptempty"`
	AliasDomain              *String    `xmlrpc:"alias_domain,omptempty"`
	AliasForceThreadId       *Int       `xmlrpc:"alias_force_thread_id,omptempty"`
	AliasId                  *Many2One  `xmlrpc:"alias_id,omptempty"`
	AliasModelId             *Many2One  `xmlrpc:"alias_model_id,omptempty"`
	AliasName                *String    `xmlrpc:"alias_name,omptempty"`
	AliasParentModelId       *Many2One  `xmlrpc:"alias_parent_model_id,omptempty"`
	AliasParentThreadId      *Int       `xmlrpc:"alias_parent_thread_id,omptempty"`
	AliasUserId              *Many2One  `xmlrpc:"alias_user_id,omptempty"`
	AllowTimesheets          *Bool      `xmlrpc:"allow_timesheets,omptempty"`
	AnalyticAccountId        *Many2One  `xmlrpc:"analytic_account_id,omptempty"`
	Balance                  *Float     `xmlrpc:"balance,omptempty"`
	Code                     *String    `xmlrpc:"code,omptempty"`
	Color                    *Int       `xmlrpc:"color,omptempty"`
	CompanyId                *Many2One  `xmlrpc:"company_id,omptempty"`
	CompanyUomId             *Many2One  `xmlrpc:"company_uom_id,omptempty"`
	CreateDate               *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid                *Many2One  `xmlrpc:"create_uid,omptempty"`
	Credit                   *Float     `xmlrpc:"credit,omptempty"`
	CurrencyId               *Many2One  `xmlrpc:"currency_id,omptempty"`
	Date                     *Time      `xmlrpc:"date,omptempty"`
	DateStart                *Time      `xmlrpc:"date_start,omptempty"`
	Debit                    *Float     `xmlrpc:"debit,omptempty"`
	DisplayName              *String    `xmlrpc:"display_name,omptempty"`
	DocCount                 *Int       `xmlrpc:"doc_count,omptempty"`
	FavoriteUserIds          *Relation  `xmlrpc:"favorite_user_ids,omptempty"`
	Id                       *Int       `xmlrpc:"id,omptempty"`
	IsFavorite               *Bool      `xmlrpc:"is_favorite,omptempty"`
	LabelTasks               *String    `xmlrpc:"label_tasks,omptempty"`
	LineIds                  *Relation  `xmlrpc:"line_ids,omptempty"`
	MachineProjectName       *String    `xmlrpc:"machine_project_name,omptempty"`
	MessageChannelIds        *Relation  `xmlrpc:"message_channel_ids,omptempty"`
	MessageFollowerIds       *Relation  `xmlrpc:"message_follower_ids,omptempty"`
	MessageIds               *Relation  `xmlrpc:"message_ids,omptempty"`
	MessageIsFollower        *Bool      `xmlrpc:"message_is_follower,omptempty"`
	MessageLastPost          *Time      `xmlrpc:"message_last_post,omptempty"`
	MessageNeedaction        *Bool      `xmlrpc:"message_needaction,omptempty"`
	MessageNeedactionCounter *Int       `xmlrpc:"message_needaction_counter,omptempty"`
	MessagePartnerIds        *Relation  `xmlrpc:"message_partner_ids,omptempty"`
	MessageUnread            *Bool      `xmlrpc:"message_unread,omptempty"`
	MessageUnreadCounter     *Int       `xmlrpc:"message_unread_counter,omptempty"`
	Name                     *String    `xmlrpc:"name,omptempty"`
	PartnerId                *Many2One  `xmlrpc:"partner_id,omptempty"`
	PortalUrl                *String    `xmlrpc:"portal_url,omptempty"`
	PrivacyVisibility        *Selection `xmlrpc:"privacy_visibility,omptempty"`
	ProjectCount             *Int       `xmlrpc:"project_count,omptempty"`
	ProjectCreated           *Bool      `xmlrpc:"project_created,omptempty"`
	ProjectIds               *Relation  `xmlrpc:"project_ids,omptempty"`
	ResourceCalendarId       *Many2One  `xmlrpc:"resource_calendar_id,omptempty"`
	SaleLineId               *Many2One  `xmlrpc:"sale_line_id,omptempty"`
	Sequence                 *Int       `xmlrpc:"sequence,omptempty"`
	SubtaskProjectId         *Many2One  `xmlrpc:"subtask_project_id,omptempty"`
	TagIds                   *Relation  `xmlrpc:"tag_ids,omptempty"`
	TaskCount                *Int       `xmlrpc:"task_count,omptempty"`
	TaskIds                  *Relation  `xmlrpc:"task_ids,omptempty"`
	TaskNeedactionCount      *Int       `xmlrpc:"task_needaction_count,omptempty"`
	Tasks                    *Relation  `xmlrpc:"tasks,omptempty"`
	TypeIds                  *Relation  `xmlrpc:"type_ids,omptempty"`
	UserId                   *Many2One  `xmlrpc:"user_id,omptempty"`
	WebsiteMessageIds        *Relation  `xmlrpc:"website_message_ids,omptempty"`
	WriteDate                *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid                 *Many2One  `xmlrpc:"write_uid,omptempty"`
}

ProjectProject represents project.project model.

func (*ProjectProject) Many2One

func (pp *ProjectProject) Many2One() *Many2One

Many2One convert ProjectProject to *Many2One.

type ProjectProjects

type ProjectProjects []ProjectProject

ProjectProjects represents array of project.project model.

type ProjectTask

type ProjectTask struct {
	LastUpdate               *Time      `xmlrpc:"__last_update,omptempty"`
	Active                   *Bool      `xmlrpc:"active,omptempty"`
	ActivityDateDeadline     *Time      `xmlrpc:"activity_date_deadline,omptempty"`
	ActivityIds              *Relation  `xmlrpc:"activity_ids,omptempty"`
	ActivityState            *Selection `xmlrpc:"activity_state,omptempty"`
	ActivitySummary          *String    `xmlrpc:"activity_summary,omptempty"`
	ActivityTypeId           *Many2One  `xmlrpc:"activity_type_id,omptempty"`
	ActivityUserId           *Many2One  `xmlrpc:"activity_user_id,omptempty"`
	AttachmentIds            *Relation  `xmlrpc:"attachment_ids,omptempty"`
	ChildIds                 *Relation  `xmlrpc:"child_ids,omptempty"`
	ChildrenHours            *Float     `xmlrpc:"children_hours,omptempty"`
	Color                    *Int       `xmlrpc:"color,omptempty"`
	CompanyId                *Many2One  `xmlrpc:"company_id,omptempty"`
	CreateDate               *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid                *Many2One  `xmlrpc:"create_uid,omptempty"`
	DateAssign               *Time      `xmlrpc:"date_assign,omptempty"`
	DateDeadline             *Time      `xmlrpc:"date_deadline,omptempty"`
	DateEnd                  *Time      `xmlrpc:"date_end,omptempty"`
	DateLastStageUpdate      *Time      `xmlrpc:"date_last_stage_update,omptempty"`
	DateStart                *Time      `xmlrpc:"date_start,omptempty"`
	DelayHours               *Float     `xmlrpc:"delay_hours,omptempty"`
	Description              *String    `xmlrpc:"description,omptempty"`
	DisplayName              *String    `xmlrpc:"display_name,omptempty"`
	DisplayedImageId         *Many2One  `xmlrpc:"displayed_image_id,omptempty"`
	EffectiveHours           *Float     `xmlrpc:"effective_hours,omptempty"`
	EmailCc                  *String    `xmlrpc:"email_cc,omptempty"`
	EmailFrom                *String    `xmlrpc:"email_from,omptempty"`
	Id                       *Int       `xmlrpc:"id,omptempty"`
	KanbanState              *Selection `xmlrpc:"kanban_state,omptempty"`
	KanbanStateLabel         *String    `xmlrpc:"kanban_state_label,omptempty"`
	LegendBlocked            *String    `xmlrpc:"legend_blocked,omptempty"`
	LegendDone               *String    `xmlrpc:"legend_done,omptempty"`
	LegendNormal             *String    `xmlrpc:"legend_normal,omptempty"`
	ManagerId                *Many2One  `xmlrpc:"manager_id,omptempty"`
	MessageChannelIds        *Relation  `xmlrpc:"message_channel_ids,omptempty"`
	MessageFollowerIds       *Relation  `xmlrpc:"message_follower_ids,omptempty"`
	MessageIds               *Relation  `xmlrpc:"message_ids,omptempty"`
	MessageIsFollower        *Bool      `xmlrpc:"message_is_follower,omptempty"`
	MessageLastPost          *Time      `xmlrpc:"message_last_post,omptempty"`
	MessageNeedaction        *Bool      `xmlrpc:"message_needaction,omptempty"`
	MessageNeedactionCounter *Int       `xmlrpc:"message_needaction_counter,omptempty"`
	MessagePartnerIds        *Relation  `xmlrpc:"message_partner_ids,omptempty"`
	MessageUnread            *Bool      `xmlrpc:"message_unread,omptempty"`
	MessageUnreadCounter     *Int       `xmlrpc:"message_unread_counter,omptempty"`
	Name                     *String    `xmlrpc:"name,omptempty"`
	Notes                    *String    `xmlrpc:"notes,omptempty"`
	ParentId                 *Many2One  `xmlrpc:"parent_id,omptempty"`
	PartnerId                *Many2One  `xmlrpc:"partner_id,omptempty"`
	PlannedHours             *Float     `xmlrpc:"planned_hours,omptempty"`
	PortalUrl                *String    `xmlrpc:"portal_url,omptempty"`
	Priority                 *Selection `xmlrpc:"priority,omptempty"`
	Progress                 *Float     `xmlrpc:"progress,omptempty"`
	ProjectId                *Many2One  `xmlrpc:"project_id,omptempty"`
	RemainingHours           *Float     `xmlrpc:"remaining_hours,omptempty"`
	SaleLineId               *Many2One  `xmlrpc:"sale_line_id,omptempty"`
	Sequence                 *Int       `xmlrpc:"sequence,omptempty"`
	StageId                  *Many2One  `xmlrpc:"stage_id,omptempty"`
	SubtaskCount             *Int       `xmlrpc:"subtask_count,omptempty"`
	SubtaskProjectId         *Many2One  `xmlrpc:"subtask_project_id,omptempty"`
	TagIds                   *Relation  `xmlrpc:"tag_ids,omptempty"`
	TimesheetIds             *Relation  `xmlrpc:"timesheet_ids,omptempty"`
	TotalHours               *Float     `xmlrpc:"total_hours,omptempty"`
	TotalHoursSpent          *Float     `xmlrpc:"total_hours_spent,omptempty"`
	UserEmail                *String    `xmlrpc:"user_email,omptempty"`
	UserId                   *Many2One  `xmlrpc:"user_id,omptempty"`
	WebsiteMessageIds        *Relation  `xmlrpc:"website_message_ids,omptempty"`
	WorkingDaysClose         *Float     `xmlrpc:"working_days_close,omptempty"`
	WorkingDaysOpen          *Float     `xmlrpc:"working_days_open,omptempty"`
	WorkingHoursClose        *Float     `xmlrpc:"working_hours_close,omptempty"`
	WorkingHoursOpen         *Float     `xmlrpc:"working_hours_open,omptempty"`
	WriteDate                *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid                 *Many2One  `xmlrpc:"write_uid,omptempty"`
}

ProjectTask represents project.task model.

func (*ProjectTask) Many2One

func (pt *ProjectTask) Many2One() *Many2One

Many2One convert ProjectTask to *Many2One.

type ProjectTasks

type ProjectTasks []ProjectTask

ProjectTasks represents array of project.task model.

type Relation

type Relation struct {
	// contains filtered or unexported fields
}

Relation represents odoo one2many and many2many types. https://www.odoo.com/documentation/13.0/reference/orm.html#relational-fields

func NewRelation

func NewRelation() *Relation

NewRelation creates a new *Relation.

func (*Relation) AddNewRecord

func (r *Relation) AddNewRecord(values interface{})

AddNewRecord is an helper to create a new record of one2many or many2many. https://www.odoo.com/documentation/13.0/reference/orm.html#odoo.models.Model.write

func (*Relation) AddRecord

func (r *Relation) AddRecord(record int64)

AddRecord is an helper to add an existing record of one2many or many2many. https://www.odoo.com/documentation/13.0/reference/orm.html#odoo.models.Model.write

func (*Relation) DeleteRecord

func (r *Relation) DeleteRecord(record int64)

DeleteRecord is an helper to delete an existing record of one2many or many2many. https://www.odoo.com/documentation/13.0/reference/orm.html#odoo.models.Model.write

func (*Relation) Get

func (r *Relation) Get() []int64

Get *Relation value.

func (*Relation) RemoveAllRecords

func (r *Relation) RemoveAllRecords()

RemoveAllRecords is an helper to remove all records of one2many or many2many. https://www.odoo.com/documentation/13.0/reference/orm.html#odoo.models.Model.write

func (*Relation) RemoveRecord

func (r *Relation) RemoveRecord(record int64)

RemoveRecord is an helper to remove an existing record of one2many or many2many. https://www.odoo.com/documentation/13.0/reference/orm.html#odoo.models.Model.write

func (*Relation) ReplaceAllRecords

func (r *Relation) ReplaceAllRecords(newRecords []int64)

ReplaceAllRecords is an helper to replace all records of one2many or many2many. https://www.odoo.com/documentation/13.0/reference/orm.html#odoo.models.Model.write

func (*Relation) UpdateRecord

func (r *Relation) UpdateRecord(record int64, values interface{})

UpdateRecord is an helper to update an existing record of one2many or many2many. https://www.odoo.com/documentation/13.0/reference/orm.html#odoo.models.Model.write

type ResCompany

type ResCompany struct {
	LastUpdate                        *Time      `xmlrpc:"__last_update,omptempty"`
	AccountInInvoiceNote              *String    `xmlrpc:"account_in_invoice_note,omptempty"`
	AccountNo                         *String    `xmlrpc:"account_no,omptempty"`
	AccountOpeningDate                *Time      `xmlrpc:"account_opening_date,omptempty"`
	AccountOpeningJournalId           *Many2One  `xmlrpc:"account_opening_journal_id,omptempty"`
	AccountOpeningMoveId              *Many2One  `xmlrpc:"account_opening_move_id,omptempty"`
	AccountOutInvoiceNote             *String    `xmlrpc:"account_out_invoice_note,omptempty"`
	AccountSetupBankDataDone          *Bool      `xmlrpc:"account_setup_bank_data_done,omptempty"`
	AccountSetupBarClosed             *Bool      `xmlrpc:"account_setup_bar_closed,omptempty"`
	AccountSetupCoaDone               *Bool      `xmlrpc:"account_setup_coa_done,omptempty"`
	AccountSetupCompanyDataDone       *Bool      `xmlrpc:"account_setup_company_data_done,omptempty"`
	AccountSetupFyDataDone            *Bool      `xmlrpc:"account_setup_fy_data_done,omptempty"`
	AccountsCodeDigits                *Int       `xmlrpc:"accounts_code_digits,omptempty"`
	AngloSaxonAccounting              *Bool      `xmlrpc:"anglo_saxon_accounting,omptempty"`
	Ape                               *String    `xmlrpc:"ape,omptempty"`
	BankAccountCodePrefix             *String    `xmlrpc:"bank_account_code_prefix,omptempty"`
	BankIds                           *Relation  `xmlrpc:"bank_ids,omptempty"`
	BankJournalIds                    *Relation  `xmlrpc:"bank_journal_ids,omptempty"`
	CashAccountCodePrefix             *String    `xmlrpc:"cash_account_code_prefix,omptempty"`
	ChartTemplateId                   *Many2One  `xmlrpc:"chart_template_id,omptempty"`
	ChildIds                          *Relation  `xmlrpc:"child_ids,omptempty"`
	City                              *String    `xmlrpc:"city,omptempty"`
	CompanyRegistry                   *String    `xmlrpc:"company_registry,omptempty"`
	CountryId                         *Many2One  `xmlrpc:"country_id,omptempty"`
	CreateDate                        *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid                         *Many2One  `xmlrpc:"create_uid,omptempty"`
	CurrencyExchangeJournalId         *Many2One  `xmlrpc:"currency_exchange_journal_id,omptempty"`
	CurrencyId                        *Many2One  `xmlrpc:"currency_id,omptempty"`
	DisplayName                       *String    `xmlrpc:"display_name,omptempty"`
	Email                             *String    `xmlrpc:"email,omptempty"`
	ExpectsChartOfAccounts            *Bool      `xmlrpc:"expects_chart_of_accounts,omptempty"`
	ExpenseCurrencyExchangeAccountId  *Many2One  `xmlrpc:"expense_currency_exchange_account_id,omptempty"`
	ExternalReportLayout              *Selection `xmlrpc:"external_report_layout,omptempty"`
	FiscalyearLastDay                 *Int       `xmlrpc:"fiscalyear_last_day,omptempty"`
	FiscalyearLastMonth               *Selection `xmlrpc:"fiscalyear_last_month,omptempty"`
	FiscalyearLockDate                *Time      `xmlrpc:"fiscalyear_lock_date,omptempty"`
	Id                                *Int       `xmlrpc:"id,omptempty"`
	IncomeCurrencyExchangeAccountId   *Many2One  `xmlrpc:"income_currency_exchange_account_id,omptempty"`
	InternalTransitLocationId         *Many2One  `xmlrpc:"internal_transit_location_id,omptempty"`
	LeaveTimesheetProjectId           *Many2One  `xmlrpc:"leave_timesheet_project_id,omptempty"`
	LeaveTimesheetTaskId              *Many2One  `xmlrpc:"leave_timesheet_task_id,omptempty"`
	LogoWeb                           *String    `xmlrpc:"logo_web,omptempty"`
	Name                              *String    `xmlrpc:"name,omptempty"`
	OverdueMsg                        *String    `xmlrpc:"overdue_msg,omptempty"`
	PaperformatId                     *Many2One  `xmlrpc:"paperformat_id,omptempty"`
	ParentId                          *Many2One  `xmlrpc:"parent_id,omptempty"`
	PartnerId                         *Many2One  `xmlrpc:"partner_id,omptempty"`
	PeriodLockDate                    *Time      `xmlrpc:"period_lock_date,omptempty"`
	Phone                             *String    `xmlrpc:"phone,omptempty"`
	PoDoubleValidation                *Selection `xmlrpc:"po_double_validation,omptempty"`
	PoDoubleValidationAmount          *Float     `xmlrpc:"po_double_validation_amount,omptempty"`
	PoLead                            *Float     `xmlrpc:"po_lead,omptempty"`
	PoLock                            *Selection `xmlrpc:"po_lock,omptempty"`
	ProjectTimeModeId                 *Many2One  `xmlrpc:"project_time_mode_id,omptempty"`
	PropagationMinimumDelta           *Int       `xmlrpc:"propagation_minimum_delta,omptempty"`
	PropertyStockAccountInputCategId  *Many2One  `xmlrpc:"property_stock_account_input_categ_id,omptempty"`
	PropertyStockAccountOutputCategId *Many2One  `xmlrpc:"property_stock_account_output_categ_id,omptempty"`
	PropertyStockValuationAccountId   *Many2One  `xmlrpc:"property_stock_valuation_account_id,omptempty"`
	ReportFooter                      *String    `xmlrpc:"report_footer,omptempty"`
	ReportHeader                      *String    `xmlrpc:"report_header,omptempty"`
	ResourceCalendarId                *Many2One  `xmlrpc:"resource_calendar_id,omptempty"`
	ResourceCalendarIds               *Relation  `xmlrpc:"resource_calendar_ids,omptempty"`
	SaleNote                          *String    `xmlrpc:"sale_note,omptempty"`
	SecurityLead                      *Float     `xmlrpc:"security_lead,omptempty"`
	Sequence                          *Int       `xmlrpc:"sequence,omptempty"`
	Siret                             *String    `xmlrpc:"siret,omptempty"`
	SocialFacebook                    *String    `xmlrpc:"social_facebook,omptempty"`
	SocialGithub                      *String    `xmlrpc:"social_github,omptempty"`
	SocialGoogleplus                  *String    `xmlrpc:"social_googleplus,omptempty"`
	SocialLinkedin                    *String    `xmlrpc:"social_linkedin,omptempty"`
	SocialTwitter                     *String    `xmlrpc:"social_twitter,omptempty"`
	SocialYoutube                     *String    `xmlrpc:"social_youtube,omptempty"`
	StateId                           *Many2One  `xmlrpc:"state_id,omptempty"`
	Street                            *String    `xmlrpc:"street,omptempty"`
	Street2                           *String    `xmlrpc:"street2,omptempty"`
	TaxCalculationRoundingMethod      *Selection `xmlrpc:"tax_calculation_rounding_method,omptempty"`
	TaxCashBasisJournalId             *Many2One  `xmlrpc:"tax_cash_basis_journal_id,omptempty"`
	TaxExigibility                    *Bool      `xmlrpc:"tax_exigibility,omptempty"`
	TransferAccountId                 *Many2One  `xmlrpc:"transfer_account_id,omptempty"`
	UserIds                           *Relation  `xmlrpc:"user_ids,omptempty"`
	Vat                               *String    `xmlrpc:"vat,omptempty"`
	VatCheckVies                      *Bool      `xmlrpc:"vat_check_vies,omptempty"`
	Website                           *String    `xmlrpc:"website,omptempty"`
	WriteDate                         *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid                          *Many2One  `xmlrpc:"write_uid,omptempty"`
	Zip                               *String    `xmlrpc:"zip,omptempty"`
}

ResCompany represents res.company model.

func (*ResCompany) Many2One

func (rc *ResCompany) Many2One() *Many2One

Many2One convert ResCompany to *Many2One.

type ResCompanys

type ResCompanys []ResCompany

ResCompanys represents array of res.company model.

type ResPartner

type ResPartner struct {
	LastUpdate                    *Time      `xmlrpc:"__last_update,omptempty"`
	Active                        *Bool      `xmlrpc:"active,omptempty"`
	ActivityDateDeadline          *Time      `xmlrpc:"activity_date_deadline,omptempty"`
	ActivityIds                   *Relation  `xmlrpc:"activity_ids,omptempty"`
	ActivityState                 *Selection `xmlrpc:"activity_state,omptempty"`
	ActivitySummary               *String    `xmlrpc:"activity_summary,omptempty"`
	ActivityTypeId                *Many2One  `xmlrpc:"activity_type_id,omptempty"`
	ActivityUserId                *Many2One  `xmlrpc:"activity_user_id,omptempty"`
	BankAccountCount              *Int       `xmlrpc:"bank_account_count,omptempty"`
	BankIds                       *Relation  `xmlrpc:"bank_ids,omptempty"`
	Barcode                       *String    `xmlrpc:"barcode,omptempty"`
	CalendarLastNotifAck          *Time      `xmlrpc:"calendar_last_notif_ack,omptempty"`
	CategoryId                    *Relation  `xmlrpc:"category_id,omptempty"`
	ChannelIds                    *Relation  `xmlrpc:"channel_ids,omptempty"`
	ChildIds                      *Relation  `xmlrpc:"child_ids,omptempty"`
	City                          *String    `xmlrpc:"city,omptempty"`
	Color                         *Int       `xmlrpc:"color,omptempty"`
	Comment                       *String    `xmlrpc:"comment,omptempty"`
	CommercialCompanyName         *String    `xmlrpc:"commercial_company_name,omptempty"`
	CommercialPartnerCountryId    *Many2One  `xmlrpc:"commercial_partner_country_id,omptempty"`
	CommercialPartnerId           *Many2One  `xmlrpc:"commercial_partner_id,omptempty"`
	CompanyId                     *Many2One  `xmlrpc:"company_id,omptempty"`
	CompanyName                   *String    `xmlrpc:"company_name,omptempty"`
	CompanyType                   *Selection `xmlrpc:"company_type,omptempty"`
	ContactAddress                *String    `xmlrpc:"contact_address,omptempty"`
	ContractIds                   *Relation  `xmlrpc:"contract_ids,omptempty"`
	ContractsCount                *Int       `xmlrpc:"contracts_count,omptempty"`
	CountryId                     *Many2One  `xmlrpc:"country_id,omptempty"`
	CreateDate                    *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid                     *Many2One  `xmlrpc:"create_uid,omptempty"`
	Credit                        *Float     `xmlrpc:"credit,omptempty"`
	CreditLimit                   *Float     `xmlrpc:"credit_limit,omptempty"`
	CurrencyId                    *Many2One  `xmlrpc:"currency_id,omptempty"`
	Customer                      *Bool      `xmlrpc:"customer,omptempty"`
	Date                          *Time      `xmlrpc:"date,omptempty"`
	Debit                         *Float     `xmlrpc:"debit,omptempty"`
	DebitLimit                    *Float     `xmlrpc:"debit_limit,omptempty"`
	DisplayName                   *String    `xmlrpc:"display_name,omptempty"`
	Email                         *String    `xmlrpc:"email,omptempty"`
	EmailFormatted                *String    `xmlrpc:"email_formatted,omptempty"`
	Employee                      *Bool      `xmlrpc:"employee,omptempty"`
	Function                      *String    `xmlrpc:"function,omptempty"`
	HasUnreconciledEntries        *Bool      `xmlrpc:"has_unreconciled_entries,omptempty"`
	Id                            *Int       `xmlrpc:"id,omptempty"`
	ImStatus                      *String    `xmlrpc:"im_status,omptempty"`
	Image                         *String    `xmlrpc:"image,omptempty"`
	ImageMedium                   *String    `xmlrpc:"image_medium,omptempty"`
	ImageSmall                    *String    `xmlrpc:"image_small,omptempty"`
	IndustryId                    *Many2One  `xmlrpc:"industry_id,omptempty"`
	InvoiceIds                    *Relation  `xmlrpc:"invoice_ids,omptempty"`
	InvoiceWarn                   *Selection `xmlrpc:"invoice_warn,omptempty"`
	InvoiceWarnMsg                *String    `xmlrpc:"invoice_warn_msg,omptempty"`
	IsCompany                     *Bool      `xmlrpc:"is_company,omptempty"`
	JournalItemCount              *Int       `xmlrpc:"journal_item_count,omptempty"`
	Lang                          *Selection `xmlrpc:"lang,omptempty"`
	LastTimeEntriesChecked        *Time      `xmlrpc:"last_time_entries_checked,omptempty"`
	MachineCompanyName            *String    `xmlrpc:"machine_company_name,omptempty"`
	MeetingCount                  *Int       `xmlrpc:"meeting_count,omptempty"`
	MeetingIds                    *Relation  `xmlrpc:"meeting_ids,omptempty"`
	MessageBounce                 *Int       `xmlrpc:"message_bounce,omptempty"`
	MessageChannelIds             *Relation  `xmlrpc:"message_channel_ids,omptempty"`
	MessageFollowerIds            *Relation  `xmlrpc:"message_follower_ids,omptempty"`
	MessageIds                    *Relation  `xmlrpc:"message_ids,omptempty"`
	MessageIsFollower             *Bool      `xmlrpc:"message_is_follower,omptempty"`
	MessageLastPost               *Time      `xmlrpc:"message_last_post,omptempty"`
	MessageNeedaction             *Bool      `xmlrpc:"message_needaction,omptempty"`
	MessageNeedactionCounter      *Int       `xmlrpc:"message_needaction_counter,omptempty"`
	MessagePartnerIds             *Relation  `xmlrpc:"message_partner_ids,omptempty"`
	MessageUnread                 *Bool      `xmlrpc:"message_unread,omptempty"`
	MessageUnreadCounter          *Int       `xmlrpc:"message_unread_counter,omptempty"`
	Mobile                        *String    `xmlrpc:"mobile,omptempty"`
	Name                          *String    `xmlrpc:"name,omptempty"`
	OpportunityCount              *Int       `xmlrpc:"opportunity_count,omptempty"`
	OpportunityIds                *Relation  `xmlrpc:"opportunity_ids,omptempty"`
	OptOut                        *Bool      `xmlrpc:"opt_out,omptempty"`
	ParentId                      *Many2One  `xmlrpc:"parent_id,omptempty"`
	ParentName                    *String    `xmlrpc:"parent_name,omptempty"`
	PartnerShare                  *Bool      `xmlrpc:"partner_share,omptempty"`
	PaymentTokenCount             *Int       `xmlrpc:"payment_token_count,omptempty"`
	PaymentTokenIds               *Relation  `xmlrpc:"payment_token_ids,omptempty"`
	Phone                         *String    `xmlrpc:"phone,omptempty"`
	PickingWarn                   *Selection `xmlrpc:"picking_warn,omptempty"`
	PickingWarnMsg                *String    `xmlrpc:"picking_warn_msg,omptempty"`
	PropertyAccountPayableId      *Many2One  `xmlrpc:"property_account_payable_id,omptempty"`
	PropertyAccountPositionId     *Many2One  `xmlrpc:"property_account_position_id,omptempty"`
	PropertyAccountReceivableId   *Many2One  `xmlrpc:"property_account_receivable_id,omptempty"`
	PropertyAutosalesConfig       *Many2One  `xmlrpc:"property_autosales_config,omptempty"`
	PropertyPaymentTermId         *Many2One  `xmlrpc:"property_payment_term_id,omptempty"`
	PropertyProductPricelist      *Many2One  `xmlrpc:"property_product_pricelist,omptempty"`
	PropertyPurchaseCurrencyId    *Many2One  `xmlrpc:"property_purchase_currency_id,omptempty"`
	PropertyStockCustomer         *Many2One  `xmlrpc:"property_stock_customer,omptempty"`
	PropertyStockSupplier         *Many2One  `xmlrpc:"property_stock_supplier,omptempty"`
	PropertySupplierPaymentTermId *Many2One  `xmlrpc:"property_supplier_payment_term_id,omptempty"`
	PurchaseOrderCount            *Int       `xmlrpc:"purchase_order_count,omptempty"`
	PurchaseWarn                  *Selection `xmlrpc:"purchase_warn,omptempty"`
	PurchaseWarnMsg               *String    `xmlrpc:"purchase_warn_msg,omptempty"`
	Ref                           *String    `xmlrpc:"ref,omptempty"`
	RefCompanyIds                 *Relation  `xmlrpc:"ref_company_ids,omptempty"`
	SaleOrderCount                *Int       `xmlrpc:"sale_order_count,omptempty"`
	SaleOrderIds                  *Relation  `xmlrpc:"sale_order_ids,omptempty"`
	SaleWarn                      *Selection `xmlrpc:"sale_warn,omptempty"`
	SaleWarnMsg                   *String    `xmlrpc:"sale_warn_msg,omptempty"`
	Self                          *Many2One  `xmlrpc:"self,omptempty"`
	SignupExpiration              *Time      `xmlrpc:"signup_expiration,omptempty"`
	SignupToken                   *String    `xmlrpc:"signup_token,omptempty"`
	SignupType                    *String    `xmlrpc:"signup_type,omptempty"`
	SignupUrl                     *String    `xmlrpc:"signup_url,omptempty"`
	SignupValid                   *Bool      `xmlrpc:"signup_valid,omptempty"`
	Siret                         *String    `xmlrpc:"siret,omptempty"`
	StateId                       *Many2One  `xmlrpc:"state_id,omptempty"`
	Street                        *String    `xmlrpc:"street,omptempty"`
	Street2                       *String    `xmlrpc:"street2,omptempty"`
	Supplier                      *Bool      `xmlrpc:"supplier,omptempty"`
	SupplierInvoiceCount          *Int       `xmlrpc:"supplier_invoice_count,omptempty"`
	TaskCount                     *Int       `xmlrpc:"task_count,omptempty"`
	TaskIds                       *Relation  `xmlrpc:"task_ids,omptempty"`
	TeamId                        *Many2One  `xmlrpc:"team_id,omptempty"`
	Title                         *Many2One  `xmlrpc:"title,omptempty"`
	TotalInvoiced                 *Float     `xmlrpc:"total_invoiced,omptempty"`
	Trust                         *Selection `xmlrpc:"trust,omptempty"`
	Type                          *Selection `xmlrpc:"type,omptempty"`
	Tz                            *Selection `xmlrpc:"tz,omptempty"`
	TzOffset                      *String    `xmlrpc:"tz_offset,omptempty"`
	UserId                        *Many2One  `xmlrpc:"user_id,omptempty"`
	UserIds                       *Relation  `xmlrpc:"user_ids,omptempty"`
	Vat                           *String    `xmlrpc:"vat,omptempty"`
	Website                       *String    `xmlrpc:"website,omptempty"`
	WebsiteMessageIds             *Relation  `xmlrpc:"website_message_ids,omptempty"`
	WriteDate                     *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid                      *Many2One  `xmlrpc:"write_uid,omptempty"`
	Zip                           *String    `xmlrpc:"zip,omptempty"`
}

ResPartner represents res.partner model.

func (*ResPartner) Many2One

func (rp *ResPartner) Many2One() *Many2One

Many2One convert ResPartner to *Many2One.

type ResPartnerCategory

type ResPartnerCategory struct {
	LastUpdate  *Time     `xmlrpc:"__last_update,omptempty"`
	Active      *Bool     `xmlrpc:"active,omptempty"`
	ChildIds    *Relation `xmlrpc:"child_ids,omptempty"`
	Color       *Int      `xmlrpc:"color,omptempty"`
	CreateDate  *Time     `xmlrpc:"create_date,omptempty"`
	CreateUid   *Many2One `xmlrpc:"create_uid,omptempty"`
	DisplayName *String   `xmlrpc:"display_name,omptempty"`
	Id          *Int      `xmlrpc:"id,omptempty"`
	Name        *String   `xmlrpc:"name,omptempty"`
	ParentId    *Many2One `xmlrpc:"parent_id,omptempty"`
	ParentLeft  *Int      `xmlrpc:"parent_left,omptempty"`
	ParentRight *Int      `xmlrpc:"parent_right,omptempty"`
	PartnerIds  *Relation `xmlrpc:"partner_ids,omptempty"`
	WriteDate   *Time     `xmlrpc:"write_date,omptempty"`
	WriteUid    *Many2One `xmlrpc:"write_uid,omptempty"`
}

ResPartnerCategory represents res.partner.category model.

func (*ResPartnerCategory) Many2One

func (rpc *ResPartnerCategory) Many2One() *Many2One

Many2One convert ResPartnerCategory to *Many2One.

type ResPartnerCategorys

type ResPartnerCategorys []ResPartnerCategory

ResPartnerCategorys represents array of res.partner.category model.

type ResPartners

type ResPartners []ResPartner

ResPartners represents array of res.partner model.

type ResUsers

type ResUsers struct {
	LastUpdate                    *Time      `xmlrpc:"__last_update,omptempty"`
	ActionId                      *Many2One  `xmlrpc:"action_id,omptempty"`
	Active                        *Bool      `xmlrpc:"active,omptempty"`
	ActivityDateDeadline          *Time      `xmlrpc:"activity_date_deadline,omptempty"`
	ActivityIds                   *Relation  `xmlrpc:"activity_ids,omptempty"`
	ActivityState                 *Selection `xmlrpc:"activity_state,omptempty"`
	ActivitySummary               *String    `xmlrpc:"activity_summary,omptempty"`
	ActivityTypeId                *Many2One  `xmlrpc:"activity_type_id,omptempty"`
	ActivityUserId                *Many2One  `xmlrpc:"activity_user_id,omptempty"`
	AliasContact                  *Selection `xmlrpc:"alias_contact,omptempty"`
	AliasId                       *Many2One  `xmlrpc:"alias_id,omptempty"`
	BankAccountCount              *Int       `xmlrpc:"bank_account_count,omptempty"`
	BankIds                       *Relation  `xmlrpc:"bank_ids,omptempty"`
	Barcode                       *String    `xmlrpc:"barcode,omptempty"`
	CalendarLastNotifAck          *Time      `xmlrpc:"calendar_last_notif_ack,omptempty"`
	CategoryId                    *Relation  `xmlrpc:"category_id,omptempty"`
	ChannelIds                    *Relation  `xmlrpc:"channel_ids,omptempty"`
	ChildIds                      *Relation  `xmlrpc:"child_ids,omptempty"`
	City                          *String    `xmlrpc:"city,omptempty"`
	Color                         *Int       `xmlrpc:"color,omptempty"`
	Comment                       *String    `xmlrpc:"comment,omptempty"`
	CommercialCompanyName         *String    `xmlrpc:"commercial_company_name,omptempty"`
	CommercialPartnerCountryId    *Many2One  `xmlrpc:"commercial_partner_country_id,omptempty"`
	CommercialPartnerId           *Many2One  `xmlrpc:"commercial_partner_id,omptempty"`
	CompaniesCount                *Int       `xmlrpc:"companies_count,omptempty"`
	CompanyId                     *Many2One  `xmlrpc:"company_id,omptempty"`
	CompanyIds                    *Relation  `xmlrpc:"company_ids,omptempty"`
	CompanyName                   *String    `xmlrpc:"company_name,omptempty"`
	CompanyType                   *Selection `xmlrpc:"company_type,omptempty"`
	ContactAddress                *String    `xmlrpc:"contact_address,omptempty"`
	ContractIds                   *Relation  `xmlrpc:"contract_ids,omptempty"`
	ContractsCount                *Int       `xmlrpc:"contracts_count,omptempty"`
	CountryId                     *Many2One  `xmlrpc:"country_id,omptempty"`
	CreateDate                    *Time      `xmlrpc:"create_date,omptempty"`
	CreateUid                     *Many2One  `xmlrpc:"create_uid,omptempty"`
	Credit                        *Float     `xmlrpc:"credit,omptempty"`
	CreditLimit                   *Float     `xmlrpc:"credit_limit,omptempty"`
	CurrencyId                    *Many2One  `xmlrpc:"currency_id,omptempty"`
	Customer                      *Bool      `xmlrpc:"customer,omptempty"`
	Date                          *Time      `xmlrpc:"date,omptempty"`
	Debit                         *Float     `xmlrpc:"debit,omptempty"`
	DebitLimit                    *Float     `xmlrpc:"debit_limit,omptempty"`
	DisplayName                   *String    `xmlrpc:"display_name,omptempty"`
	Email                         *String    `xmlrpc:"email,omptempty"`
	EmailFormatted                *String    `xmlrpc:"email_formatted,omptempty"`
	Employee                      *Bool      `xmlrpc:"employee,omptempty"`
	EmployeeIds                   *Relation  `xmlrpc:"employee_ids,omptempty"`
	Function                      *String    `xmlrpc:"function,omptempty"`
	GroupsId                      *Relation  `xmlrpc:"groups_id,omptempty"`
	HasUnreconciledEntries        *Bool      `xmlrpc:"has_unreconciled_entries,omptempty"`
	Id                            *Int       `xmlrpc:"id,omptempty"`
	ImStatus                      *String    `xmlrpc:"im_status,omptempty"`
	Image                         *String    `xmlrpc:"image,omptempty"`
	ImageMedium                   *String    `xmlrpc:"image_medium,omptempty"`
	ImageSmall                    *String    `xmlrpc:"image_small,omptempty"`
	IndustryId                    *Many2One  `xmlrpc:"industry_id,omptempty"`
	InvoiceIds                    *Relation  `xmlrpc:"invoice_ids,omptempty"`
	InvoiceWarn                   *Selection `xmlrpc:"invoice_warn,omptempty"`
	InvoiceWarnMsg                *String    `xmlrpc:"invoice_warn_msg,omptempty"`
	IsCompany                     *Bool      `xmlrpc:"is_company,omptempty"`
	JournalItemCount              *Int       `xmlrpc:"journal_item_count,omptempty"`
	Lang                          *Selection `xmlrpc:"lang,omptempty"`
	LastTimeEntriesChecked        *Time      `xmlrpc:"last_time_entries_checked,omptempty"`
	LogIds                        *Relation  `xmlrpc:"log_ids,omptempty"`
	Login                         *String    `xmlrpc:"login,omptempty"`
	LoginDate                     *Time      `xmlrpc:"login_date,omptempty"`
	MachineCompanyName            *String    `xmlrpc:"machine_company_name,omptempty"`
	MachineUserEmail              *String    `xmlrpc:"machine_user_email,omptempty"`
	MachineUserLogin              *String    `xmlrpc:"machine_user_login,omptempty"`
	MeetingCount                  *Int       `xmlrpc:"meeting_count,omptempty"`
	MeetingIds                    *Relation  `xmlrpc:"meeting_ids,omptempty"`
	MessageBounce                 *Int       `xmlrpc:"message_bounce,omptempty"`
	MessageChannelIds             *Relation  `xmlrpc:"message_channel_ids,omptempty"`
	MessageFollowerIds            *Relation  `xmlrpc:"message_follower_ids,omptempty"`
	MessageIds                    *Relation  `xmlrpc:"message_ids,omptempty"`
	MessageIsFollower             *Bool      `xmlrpc:"message_is_follower,omptempty"`
	MessageLastPost               *Time      `xmlrpc:"message_last_post,omptempty"`
	MessageNeedaction             *Bool      `xmlrpc:"message_needaction,omptempty"`
	MessageNeedactionCounter      *Int       `xmlrpc:"message_needaction_counter,omptempty"`
	MessagePartnerIds             *Relation  `xmlrpc:"message_partner_ids,omptempty"`
	MessageUnread                 *Bool      `xmlrpc:"message_unread,omptempty"`
	MessageUnreadCounter          *Int       `xmlrpc:"message_unread_counter,omptempty"`
	Mobile                        *String    `xmlrpc:"mobile,omptempty"`
	Name                          *String    `xmlrpc:"name,omptempty"`
	NewPassword                   *String    `xmlrpc:"new_password,omptempty"`
	NotificationType              *Selection `xmlrpc:"notification_type,omptempty"`
	OpportunityCount              *Int       `xmlrpc:"opportunity_count,omptempty"`
	OpportunityIds                *Relation  `xmlrpc:"opportunity_ids,omptempty"`
	OptOut                        *Bool      `xmlrpc:"opt_out,omptempty"`
	ParentId                      *Many2One  `xmlrpc:"parent_id,omptempty"`
	ParentName                    *String    `xmlrpc:"parent_name,omptempty"`
	PartnerId                     *Many2One  `xmlrpc:"partner_id,omptempty"`
	PartnerShare                  *Bool      `xmlrpc:"partner_share,omptempty"`
	Password                      *String    `xmlrpc:"password,omptempty"`
	PasswordCrypt                 *String    `xmlrpc:"password_crypt,omptempty"`
	PaymentTokenCount             *Int       `xmlrpc:"payment_token_count,omptempty"`
	PaymentTokenIds               *Relation  `xmlrpc:"payment_token_ids,omptempty"`
	Phone                         *String    `xmlrpc:"phone,omptempty"`
	PickingWarn                   *Selection `xmlrpc:"picking_warn,omptempty"`
	PickingWarnMsg                *String    `xmlrpc:"picking_warn_msg,omptempty"`
	PropertyAccountPayableId      *Many2One  `xmlrpc:"property_account_payable_id,omptempty"`
	PropertyAccountPositionId     *Many2One  `xmlrpc:"property_account_position_id,omptempty"`
	PropertyAccountReceivableId   *Many2One  `xmlrpc:"property_account_receivable_id,omptempty"`
	PropertyAutosalesConfig       *Many2One  `xmlrpc:"property_autosales_config,omptempty"`
	PropertyPaymentTermId         *Many2One  `xmlrpc:"property_payment_term_id,omptempty"`
	PropertyProductPricelist      *Many2One  `xmlrpc:"property_product_pricelist,omptempty"`
	PropertyPurchaseCurrencyId    *Many2One  `xmlrpc:"property_purchase_currency_id,omptempty"`
	PropertyStockCustomer         *Many2One  `xmlrpc:"property_stock_customer,omptempty"`
	PropertyStockSupplier         *Many2One  `xmlrpc:"property_stock_supplier,omptempty"`
	PropertySupplierPaymentTermId *Many2One  `xmlrpc:"property_supplier_payment_term_id,omptempty"`
	PurchaseOrderCount            *Int       `xmlrpc:"purchase_order_count,omptempty"`
	PurchaseWarn                  *Selection `xmlrpc:"purchase_warn,omptempty"`
	PurchaseWarnMsg               *String    `xmlrpc:"purchase_warn_msg,omptempty"`
	Ref                           *String    `xmlrpc:"ref,omptempty"`
	RefCompanyIds                 *Relation  `xmlrpc:"ref_company_ids,omptempty"`
	ResourceCalendarId            *Many2One  `xmlrpc:"resource_calendar_id,omptempty"`
	ResourceIds                   *Relation  `xmlrpc:"resource_ids,omptempty"`
	SaleOrderCount                *Int       `xmlrpc:"sale_order_count,omptempty"`
	SaleOrderIds                  *Relation  `xmlrpc:"sale_order_ids,omptempty"`
	SaleTeamId                    *Many2One  `xmlrpc:"sale_team_id,omptempty"`
	SaleWarn                      *Selection `xmlrpc:"sale_warn,omptempty"`
	SaleWarnMsg                   *String    `xmlrpc:"sale_warn_msg,omptempty"`
	Self                          *Many2One  `xmlrpc:"self,omptempty"`
	Share                         *Bool      `xmlrpc:"share,omptempty"`
	Signature                     *String    `xmlrpc:"signature,omptempty"`
	SignupExpiration              *Time      `xmlrpc:"signup_expiration,omptempty"`
	SignupToken                   *String    `xmlrpc:"signup_token,omptempty"`
	SignupType                    *String    `xmlrpc:"signup_type,omptempty"`
	SignupUrl                     *String    `xmlrpc:"signup_url,omptempty"`
	SignupValid                   *Bool      `xmlrpc:"signup_valid,omptempty"`
	Siret                         *String    `xmlrpc:"siret,omptempty"`
	State                         *Selection `xmlrpc:"state,omptempty"`
	StateId                       *Many2One  `xmlrpc:"state_id,omptempty"`
	Street                        *String    `xmlrpc:"street,omptempty"`
	Street2                       *String    `xmlrpc:"street2,omptempty"`
	Supplier                      *Bool      `xmlrpc:"supplier,omptempty"`
	SupplierInvoiceCount          *Int       `xmlrpc:"supplier_invoice_count,omptempty"`
	TargetSalesDone               *Int       `xmlrpc:"target_sales_done,omptempty"`
	TargetSalesInvoiced           *Int       `xmlrpc:"target_sales_invoiced,omptempty"`
	TargetSalesWon                *Int       `xmlrpc:"target_sales_won,omptempty"`
	TaskCount                     *Int       `xmlrpc:"task_count,omptempty"`
	TaskIds                       *Relation  `xmlrpc:"task_ids,omptempty"`
	TeamId                        *Many2One  `xmlrpc:"team_id,omptempty"`
	Title                         *Many2One  `xmlrpc:"title,omptempty"`
	TotalInvoiced                 *Float     `xmlrpc:"total_invoiced,omptempty"`
	Trust                         *Selection `xmlrpc:"trust,omptempty"`
	Type                          *Selection `xmlrpc:"type,omptempty"`
	Tz                            *Selection `xmlrpc:"tz,omptempty"`
	TzOffset                      *String    `xmlrpc:"tz_offset,omptempty"`
	UserId                        *Many2One  `xmlrpc:"user_id,omptempty"`
	UserIds                       *Relation  `xmlrpc:"user_ids,omptempty"`
	Vat                           *String    `xmlrpc:"vat,omptempty"`
	Website                       *String    `xmlrpc:"website,omptempty"`
	WebsiteMessageIds             *Relation  `xmlrpc:"website_message_ids,omptempty"`
	WriteDate                     *Time      `xmlrpc:"write_date,omptempty"`
	WriteUid                      *Many2One  `xmlrpc:"write_uid,omptempty"`
	Zip                           *String    `xmlrpc:"zip,omptempty"`
}

ResUsers represents res.users model.

func (*ResUsers) Many2One

func (ru *ResUsers) Many2One() *Many2One

Many2One convert ResUsers to *Many2One.

type ResUserss

type ResUserss []ResUsers

ResUserss represents array of res.users model.

type Selection

type Selection struct {
	// contains filtered or unexported fields
}

Selection represents selection odoo type.

func NewSelection

func NewSelection(v interface{}) *Selection

NewSelection creates a new *Selection.

func (*Selection) Get

func (s *Selection) Get() interface{}

Get *Selection value.

type String

type String struct {
	// contains filtered or unexported fields
}

String is a string wrapper

func NewString

func NewString(v string) *String

NewString creates a new *String.

func (*String) Get

func (s *String) Get() string

Get *String value.

type Time

type Time struct {
	// contains filtered or unexported fields
}

Time is a time.Time wrapper.

func NewTime

func NewTime(v time.Time) *Time

NewTime creates a new *Time.

func (*Time) Get

func (t *Time) Get() time.Time

Get *Time value.

type Version

type Version struct {
	ServerVersion     *String     `xmlrpc:"server_version"`
	ServerVersionInfo interface{} `xmlrpc:"server_version_info"`
	ServerSerie       *String     `xmlrpc:"server_serie"`
	ProtocolVersion   *Int        `xmlrpc:"protocol_version"`
}

Version describes odoo instance version.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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