Documentation ¶
Overview ¶
Package odoo contains client code of library
Index ¶
- Constants
- type Bool
- type Client
- func (c *Client) Close()
- func (c *Client) Count(model string, criteria *Criteria, options *Options) (int64, error)
- func (c *Client) Create(model string, values []interface{}) ([]int64, error)
- func (c *Client) CreateIrModel(im *IrModel) (int64, error)
- func (c *Client) CreateIrModelFields(imf *IrModelFields) (int64, error)
- func (c *Client) CreateIrModelFieldss(imfs []*IrModelFields) ([]int64, error)
- func (c *Client) CreateIrModels(ims []*IrModel) ([]int64, error)
- func (c *Client) CreateMukRestClientGenerator(mc *MukRestClientGenerator) (int64, error)
- func (c *Client) CreateMukRestClientGenerators(mcs []*MukRestClientGenerator) ([]int64, error)
- func (c *Client) CreateResPartner(rp *ResPartner) (int64, error)
- func (c *Client) CreateResPartners(rps []*ResPartner) ([]int64, error)
- func (c *Client) CreateSaleOrder(so *SaleOrder) (int64, error)
- func (c *Client) CreateSaleOrders(sos []*SaleOrder) ([]int64, error)
- func (c *Client) Delete(model string, ids []int64) error
- func (c *Client) DeleteIrModel(id int64) error
- func (c *Client) DeleteIrModelFields(id int64) error
- func (c *Client) DeleteIrModelFieldss(ids []int64) error
- func (c *Client) DeleteIrModels(ids []int64) error
- func (c *Client) DeleteMukRestClientGenerator(id int64) error
- func (c *Client) DeleteMukRestClientGenerators(ids []int64) error
- func (c *Client) DeleteResPartner(id int64) error
- func (c *Client) DeleteResPartners(ids []int64) error
- func (c *Client) DeleteSaleOrder(id int64) error
- func (c *Client) DeleteSaleOrders(ids []int64) error
- func (c *Client) ExecuteKw(method, model string, args []interface{}, options *Options) (interface{}, error)
- func (c *Client) FieldsGet(model string, options *Options) (map[string]interface{}, error)
- func (c *Client) FindIrModel(criteria *Criteria) (*IrModel, error)
- func (c *Client) FindIrModelFields(criteria *Criteria) (*IrModelFields, error)
- func (c *Client) FindIrModelFieldsId(criteria *Criteria, options *Options) (int64, error)
- func (c *Client) FindIrModelFieldsIds(criteria *Criteria, options *Options) ([]int64, error)
- func (c *Client) FindIrModelFieldss(criteria *Criteria, options *Options) (*IrModelFieldss, error)
- func (c *Client) FindIrModelId(criteria *Criteria, options *Options) (int64, error)
- func (c *Client) FindIrModelIds(criteria *Criteria, options *Options) ([]int64, error)
- func (c *Client) FindIrModels(criteria *Criteria, options *Options) (*IrModels, error)
- func (c *Client) FindMukRestClientGenerator(criteria *Criteria) (*MukRestClientGenerator, error)
- func (c *Client) FindMukRestClientGeneratorId(criteria *Criteria, options *Options) (int64, error)
- func (c *Client) FindMukRestClientGeneratorIds(criteria *Criteria, options *Options) ([]int64, error)
- func (c *Client) FindMukRestClientGenerators(criteria *Criteria, options *Options) (*MukRestClientGenerators, error)
- func (c *Client) FindResPartner(criteria *Criteria) (*ResPartner, error)
- func (c *Client) FindResPartnerId(criteria *Criteria, options *Options) (int64, error)
- func (c *Client) FindResPartnerIds(criteria *Criteria, options *Options) ([]int64, error)
- func (c *Client) FindResPartners(criteria *Criteria, options *Options) (*ResPartners, error)
- func (c *Client) FindSaleOrder(criteria *Criteria) (*SaleOrder, error)
- func (c *Client) FindSaleOrderId(criteria *Criteria, options *Options) (int64, error)
- func (c *Client) FindSaleOrderIds(criteria *Criteria, options *Options) ([]int64, error)
- func (c *Client) FindSaleOrders(criteria *Criteria, options *Options) (*SaleOrders, error)
- func (c *Client) GetIrModel(id int64) (*IrModel, error)
- func (c *Client) GetIrModelFields(id int64) (*IrModelFields, error)
- func (c *Client) GetIrModelFieldss(ids []int64) (*IrModelFieldss, error)
- func (c *Client) GetIrModels(ids []int64) (*IrModels, error)
- func (c *Client) GetMukRestClientGenerator(id int64) (*MukRestClientGenerator, error)
- func (c *Client) GetMukRestClientGenerators(ids []int64) (*MukRestClientGenerators, error)
- func (c *Client) GetResPartner(id int64) (*ResPartner, error)
- func (c *Client) GetResPartners(ids []int64) (*ResPartners, error)
- func (c *Client) GetSaleOrder(id int64) (*SaleOrder, error)
- func (c *Client) GetSaleOrders(ids []int64) (*SaleOrders, error)
- func (c *Client) Read(model string, ids []int64, options *Options, elem interface{}) error
- func (c *Client) Search(model string, criteria *Criteria, options *Options) ([]int64, error)
- func (c *Client) SearchRead(model string, criteria *Criteria, options *Options, elem interface{}) error
- func (c *Client) Update(model string, ids []int64, values interface{}) error
- func (c *Client) UpdateIrModel(im *IrModel) error
- func (c *Client) UpdateIrModelFields(imf *IrModelFields) error
- func (c *Client) UpdateIrModelFieldss(ids []int64, imf *IrModelFields) error
- func (c *Client) UpdateIrModels(ids []int64, im *IrModel) error
- func (c *Client) UpdateMukRestClientGenerator(mc *MukRestClientGenerator) error
- func (c *Client) UpdateMukRestClientGenerators(ids []int64, mc *MukRestClientGenerator) error
- func (c *Client) UpdateResPartner(rp *ResPartner) error
- func (c *Client) UpdateResPartners(ids []int64, rp *ResPartner) error
- func (c *Client) UpdateSaleOrder(so *SaleOrder) error
- func (c *Client) UpdateSaleOrders(ids []int64, so *SaleOrder) error
- func (c *Client) Version() (Version, error)
- type ClientConfig
- type Criteria
- type Criterion
- type Float
- type Int
- type IrModel
- type IrModelFields
- type IrModelFieldss
- type IrModels
- type Many2One
- type MukRestClientGenerator
- type MukRestClientGenerators
- type Options
- func (o *Options) Add(opt string, v interface{}) *Options
- func (o *Options) AllFields(fields ...string) *Options
- func (o *Options) Attributes(attributes ...string) *Options
- func (o *Options) FetchFields(fields ...string) *Options
- func (o *Options) Limit(limit int) *Options
- func (o *Options) Offset(offset int) *Options
- type Relation
- func (r *Relation) AddNewRecord(values interface{})
- func (r *Relation) AddRecord(record int64)
- func (r *Relation) DeleteRecord(record int64)
- func (r *Relation) Get() []int64
- func (r *Relation) RemoveAllRecords()
- func (r *Relation) RemoveRecord(record int64)
- func (r *Relation) ReplaceAllRecords(newRecords []int64)
- func (r *Relation) UpdateRecord(record int64, values interface{})
- type ResPartner
- type ResPartners
- type SaleOrder
- type SaleOrders
- type Selection
- type String
- type Time
- type Version
Constants ¶
const IrModelFieldsModel = "ir.model.fields"
IrModelFieldsModel is the odoo model name.
const IrModelModel = "ir.model"
IrModelModel is the odoo model name.
const MukRestClientGeneratorModel = "muk_rest.client_generator"
MukRestClientGeneratorModel is the odoo model name.
const ResPartnerModel = "res.partner"
ResPartnerModel is the odoo model name.
const SaleOrderModel = "sale.order"
SaleOrderModel is the odoo model name.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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) Count ¶
Count model records matching with *Criteria. https://www.odoo.com/documentation/13.0/webservices/odoo.html#count-records
func (*Client) Create ¶
Create new model instances. https://www.odoo.com/documentation/13.0/webservices/odoo.html#create-records
func (*Client) CreateIrModel ¶
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) CreateIrModelFieldss ¶
func (c *Client) CreateIrModelFieldss(imfs []*IrModelFields) ([]int64, error)
CreateIrModelFields creates a new ir.model.fields model and returns its id.
func (*Client) CreateIrModels ¶
CreateIrModel creates a new ir.model model and returns its id.
func (*Client) CreateMukRestClientGenerator ¶
func (c *Client) CreateMukRestClientGenerator(mc *MukRestClientGenerator) (int64, error)
CreateMukRestClientGenerator creates a new muk_rest.client_generator model and returns its id.
func (*Client) CreateMukRestClientGenerators ¶
func (c *Client) CreateMukRestClientGenerators(mcs []*MukRestClientGenerator) ([]int64, error)
CreateMukRestClientGenerator creates a new muk_rest.client_generator 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) CreateResPartners ¶
func (c *Client) CreateResPartners(rps []*ResPartner) ([]int64, error)
CreateResPartner creates a new res.partner model and returns its id.
func (*Client) CreateSaleOrder ¶
CreateSaleOrder creates a new sale.order model and returns its id.
func (*Client) CreateSaleOrders ¶
CreateSaleOrder creates a new sale.order model and returns its id.
func (*Client) Delete ¶
Delete existing model row(s). https://www.odoo.com/documentation/13.0/webservices/odoo.html#delete-records
func (*Client) DeleteIrModel ¶
DeleteIrModel deletes an existing ir.model record.
func (*Client) DeleteIrModelFields ¶
DeleteIrModelFields deletes an existing ir.model.fields record.
func (*Client) DeleteIrModelFieldss ¶
DeleteIrModelFieldss deletes existing ir.model.fields records.
func (*Client) DeleteIrModels ¶
DeleteIrModels deletes existing ir.model records.
func (*Client) DeleteMukRestClientGenerator ¶
DeleteMukRestClientGenerator deletes an existing muk_rest.client_generator record.
func (*Client) DeleteMukRestClientGenerators ¶
DeleteMukRestClientGenerators deletes existing muk_rest.client_generator records.
func (*Client) DeleteResPartner ¶
DeleteResPartner deletes an existing res.partner record.
func (*Client) DeleteResPartners ¶
DeleteResPartners deletes existing res.partner records.
func (*Client) DeleteSaleOrder ¶
DeleteSaleOrder deletes an existing sale.order record.
func (*Client) DeleteSaleOrders ¶
DeleteSaleOrders deletes existing sale.order 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 ¶
FieldsGet inspect model fields. https://www.odoo.com/documentation/13.0/webservices/odoo.html#listing-record-fields
func (*Client) FindIrModel ¶
FindIrModel finds ir.model record by querying it with criteria.
func (*Client) FindIrModelFields ¶
func (c *Client) FindIrModelFields(criteria *Criteria) (*IrModelFields, error)
FindIrModelFields finds ir.model.fields record by querying it with criteria.
func (*Client) FindIrModelFieldsId ¶
FindIrModelFieldsId finds record id by querying it with criteria.
func (*Client) FindIrModelFieldsIds ¶
FindIrModelFieldsIds finds records ids 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) FindIrModelId ¶
FindIrModelId finds record id by querying it with criteria.
func (*Client) FindIrModelIds ¶
FindIrModelIds finds records ids by querying it and filtering it with criteria and options.
func (*Client) FindIrModels ¶
FindIrModels finds ir.model records by querying it and filtering it with criteria and options.
func (*Client) FindMukRestClientGenerator ¶
func (c *Client) FindMukRestClientGenerator(criteria *Criteria) (*MukRestClientGenerator, error)
FindMukRestClientGenerator finds muk_rest.client_generator record by querying it with criteria.
func (*Client) FindMukRestClientGeneratorId ¶
FindMukRestClientGeneratorId finds record id by querying it with criteria.
func (*Client) FindMukRestClientGeneratorIds ¶
func (c *Client) FindMukRestClientGeneratorIds(criteria *Criteria, options *Options) ([]int64, error)
FindMukRestClientGeneratorIds finds records ids by querying it and filtering it with criteria and options.
func (*Client) FindMukRestClientGenerators ¶
func (c *Client) FindMukRestClientGenerators(criteria *Criteria, options *Options) (*MukRestClientGenerators, error)
FindMukRestClientGenerators finds muk_rest.client_generator 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) FindResPartnerId ¶
FindResPartnerId finds record id by querying it with criteria.
func (*Client) FindResPartnerIds ¶
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) FindSaleOrder ¶
FindSaleOrder finds sale.order record by querying it with criteria.
func (*Client) FindSaleOrderId ¶
FindSaleOrderId finds record id by querying it with criteria.
func (*Client) FindSaleOrderIds ¶
FindSaleOrderIds finds records ids by querying it and filtering it with criteria and options.
func (*Client) FindSaleOrders ¶
func (c *Client) FindSaleOrders(criteria *Criteria, options *Options) (*SaleOrders, error)
FindSaleOrders finds sale.order records by querying it and filtering it with criteria and options.
func (*Client) GetIrModel ¶
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 ¶
GetIrModels gets ir.model existing records.
func (*Client) GetMukRestClientGenerator ¶
func (c *Client) GetMukRestClientGenerator(id int64) (*MukRestClientGenerator, error)
GetMukRestClientGenerator gets muk_rest.client_generator existing record.
func (*Client) GetMukRestClientGenerators ¶
func (c *Client) GetMukRestClientGenerators(ids []int64) (*MukRestClientGenerators, error)
GetMukRestClientGenerators gets muk_rest.client_generator existing records.
func (*Client) GetResPartner ¶
func (c *Client) GetResPartner(id int64) (*ResPartner, error)
GetResPartner gets res.partner existing record.
func (*Client) GetResPartners ¶
func (c *Client) GetResPartners(ids []int64) (*ResPartners, error)
GetResPartners gets res.partner existing records.
func (*Client) GetSaleOrder ¶
GetSaleOrder gets sale.order existing record.
func (*Client) GetSaleOrders ¶
func (c *Client) GetSaleOrders(ids []int64) (*SaleOrders, error)
GetSaleOrders gets sale.order existing records.
func (*Client) Read ¶
Read model records matching with ids. https://www.odoo.com/documentation/13.0/webservices/odoo.html#read-records
func (*Client) Search ¶
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 ¶
Update existing model row(s). https://www.odoo.com/documentation/13.0/webservices/odoo.html#update-records
func (*Client) UpdateIrModel ¶
UpdateIrModel updates an existing ir.model record.
func (*Client) UpdateIrModelFields ¶
func (c *Client) UpdateIrModelFields(imf *IrModelFields) error
UpdateIrModelFields updates 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 ¶
UpdateIrModels updates existing ir.model records. All records (represented by ids) will be updated by im values.
func (*Client) UpdateMukRestClientGenerator ¶
func (c *Client) UpdateMukRestClientGenerator(mc *MukRestClientGenerator) error
UpdateMukRestClientGenerator updates an existing muk_rest.client_generator record.
func (*Client) UpdateMukRestClientGenerators ¶
func (c *Client) UpdateMukRestClientGenerators(ids []int64, mc *MukRestClientGenerator) error
UpdateMukRestClientGenerators updates existing muk_rest.client_generator records. All records (represented by ids) will be updated by mc values.
func (*Client) UpdateResPartner ¶
func (c *Client) UpdateResPartner(rp *ResPartner) error
UpdateResPartner updates an existing res.partner record.
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) UpdateSaleOrder ¶
UpdateSaleOrder updates an existing sale.order record.
func (*Client) UpdateSaleOrders ¶
UpdateSaleOrders updates existing sale.order records. All records (represented by ids) will be updated by so values.
type ClientConfig ¶
ClientConfig is the configuration to create a new *Client by givin connection infomations.
type Criteria ¶
type Criteria []interface{}
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 (*Criteria) AddCriterion ¶
Add a new Criterion to a *Criteria.
type Criterion ¶
type Criterion []interface{}
func NewCriterion ¶
func (*Criterion) ToInterface ¶
func (c *Criterion) ToInterface() []interface{}
type Float ¶
type Float struct {
// contains filtered or unexported fields
}
Float is a float64 wrapper
type IrModel ¶
type IrModel struct { LastUpdate *Time `xmlrpc:"__last_update,omptempty"` Abstract *Bool `xmlrpc:"abstract,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"` HideMergeAction *Bool `xmlrpc:"hide_merge_action,omptempty"` Id *Int `xmlrpc:"id,omptempty"` Info *String `xmlrpc:"info,omptempty"` InheritedModelIds *Relation `xmlrpc:"inherited_model_ids,omptempty"` IsMailActivity *Bool `xmlrpc:"is_mail_activity,omptempty"` IsMailBlacklist *Bool `xmlrpc:"is_mail_blacklist,omptempty"` IsMailThread *Bool `xmlrpc:"is_mail_thread,omptempty"` IsMailThreadSms *Bool `xmlrpc:"is_mail_thread_sms,omptempty"` IsMailingEnabled *Bool `xmlrpc:"is_mailing_enabled,omptempty"` IsMergeEnabled *Bool `xmlrpc:"is_merge_enabled,omptempty"` Model *String `xmlrpc:"model,omptempty"` Modules *String `xmlrpc:"modules,omptempty"` Name *String `xmlrpc:"name,omptempty"` Order *String `xmlrpc:"order,omptempty"` RefMergeIrActServerId *Many2One `xmlrpc:"ref_merge_ir_act_server_id,omptempty"` RuleIds *Relation `xmlrpc:"rule_ids,omptempty"` State *Selection `xmlrpc:"state,omptempty"` Transient *Bool `xmlrpc:"transient,omptempty"` ViewIds *Relation `xmlrpc:"view_ids,omptempty"` WebsiteFormAccess *Bool `xmlrpc:"website_form_access,omptempty"` WebsiteFormDefaultFieldId *Many2One `xmlrpc:"website_form_default_field_id,omptempty"` WebsiteFormKey *String `xmlrpc:"website_form_key,omptempty"` WebsiteFormLabel *String `xmlrpc:"website_form_label,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"` GroupExpand *Bool `xmlrpc:"group_expand,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"` SerializationFieldId *Many2One `xmlrpc:"serialization_field_id,omptempty"` Size *Int `xmlrpc:"size,omptempty"` State *Selection `xmlrpc:"state,omptempty"` Store *Bool `xmlrpc:"store,omptempty"` Tracking *Int `xmlrpc:"tracking,omptempty"` Translate *Bool `xmlrpc:"translate,omptempty"` Ttype *Selection `xmlrpc:"ttype,omptempty"` WebsiteFormBlacklisted *Bool `xmlrpc:"website_form_blacklisted,omptempty"` WriteDate *Time `xmlrpc:"write_date,omptempty"` WriteUid *Many2One `xmlrpc:"write_uid,omptempty"` }
IrModelFields represents ir.model.fields model.
func (*IrModelFields) Many2One ¶
func (imf *IrModelFields) Many2One() *Many2One
Many2One convert IrModelFields to *Many2One.
type IrModelFieldss ¶
type IrModelFieldss []IrModelFields
IrModelFieldss represents array of ir.model.fields model.
type Many2One ¶
Many2One represents odoo many2one type. https://www.odoo.com/documentation/13.0/reference/orm.html#relational-fields
func NewMany2One ¶
NewMany2One create a new *Many2One.
type MukRestClientGenerator ¶
type MukRestClientGenerator struct { LastUpdate *Time `xmlrpc:"__last_update,omptempty"` CreateDate *Time `xmlrpc:"create_date,omptempty"` CreateUid *Many2One `xmlrpc:"create_uid,omptempty"` DisplayName *String `xmlrpc:"display_name,omptempty"` Id *Int `xmlrpc:"id,omptempty"` Language *Selection `xmlrpc:"language,omptempty"` Options *String `xmlrpc:"options,omptempty"` SendOptions *Bool `xmlrpc:"send_options,omptempty"` WriteDate *Time `xmlrpc:"write_date,omptempty"` WriteUid *Many2One `xmlrpc:"write_uid,omptempty"` }
MukRestClientGenerator represents muk_rest.client_generator model.
func (*MukRestClientGenerator) Many2One ¶
func (mc *MukRestClientGenerator) Many2One() *Many2One
Many2One convert MukRestClientGenerator to *Many2One.
type MukRestClientGenerators ¶
type MukRestClientGenerators []MukRestClientGenerator
MukRestClientGenerators represents array of muk_rest.client_generator model.
type Options ¶
type Options map[string]interface{}
Options allow you to filter search results.
func (*Options) AllFields ¶
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 ¶
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 ¶
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 ¶
Limit adds the limit options. https://www.odoo.com/documentation/13.0/webservices/odoo.html#pagination
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 (*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 ¶
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 ¶
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) 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 ¶
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 ¶
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 ¶
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 ResPartner ¶
type ResPartner struct { LastUpdate *Time `xmlrpc:"__last_update,omptempty"` AccountManager *Many2One `xmlrpc:"account_manager,omptempty"` AccountRepresentedCompanyIds *Relation `xmlrpc:"account_represented_company_ids,omptempty"` Active *Bool `xmlrpc:"active,omptempty"` ActiveLangCount *Int `xmlrpc:"active_lang_count,omptempty"` ActivityCalendarEventId *Many2One `xmlrpc:"activity_calendar_event_id,omptempty"` ActivityDateDeadline *Time `xmlrpc:"activity_date_deadline,omptempty"` ActivityExceptionDecoration *Selection `xmlrpc:"activity_exception_decoration,omptempty"` ActivityExceptionIcon *String `xmlrpc:"activity_exception_icon,omptempty"` ActivityIds *Relation `xmlrpc:"activity_ids,omptempty"` ActivityState *Selection `xmlrpc:"activity_state,omptempty"` ActivitySummary *String `xmlrpc:"activity_summary,omptempty"` ActivityTypeIcon *String `xmlrpc:"activity_type_icon,omptempty"` ActivityTypeId *Many2One `xmlrpc:"activity_type_id,omptempty"` ActivityUserId *Many2One `xmlrpc:"activity_user_id,omptempty"` AdditionalInfo *String `xmlrpc:"additional_info,omptempty"` Avatar1024 *String `xmlrpc:"avatar_1024,omptempty"` Avatar128 *String `xmlrpc:"avatar_128,omptempty"` Avatar1920 *String `xmlrpc:"avatar_1920,omptempty"` Avatar256 *String `xmlrpc:"avatar_256,omptempty"` Avatar512 *String `xmlrpc:"avatar_512,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"` CanPublish *Bool `xmlrpc:"can_publish,omptempty"` CategoryId *Relation `xmlrpc:"category_id,omptempty"` CertificationsCompanyCount *Int `xmlrpc:"certifications_company_count,omptempty"` CertificationsCount *Int `xmlrpc:"certifications_count,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"` CommercialPartnerId *Many2One `xmlrpc:"commercial_partner_id,omptempty"` CompanyId *Many2One `xmlrpc:"company_id,omptempty"` CompanyName *String `xmlrpc:"company_name,omptempty"` CompanyRegistry *String `xmlrpc:"company_registry,omptempty"` CompanyType *Selection `xmlrpc:"company_type,omptempty"` ContactAddress *String `xmlrpc:"contact_address,omptempty"` ContactAddressComplete *String `xmlrpc:"contact_address_complete,omptempty"` ContractIds *Relation `xmlrpc:"contract_ids,omptempty"` CountryCode *String `xmlrpc:"country_code,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"` CustomerRank *Int `xmlrpc:"customer_rank,omptempty"` CustomerSummary *String `xmlrpc:"customer_summary,omptempty"` Date *Time `xmlrpc:"date,omptempty"` Debit *Float `xmlrpc:"debit,omptempty"` DebitLimit *Float `xmlrpc:"debit_limit,omptempty"` DisplayName *String `xmlrpc:"display_name,omptempty"` DocumentCount *Int `xmlrpc:"document_count,omptempty"` DuplicatedBankAccountPartnersCount *Int `xmlrpc:"duplicated_bank_account_partners_count,omptempty"` Email *String `xmlrpc:"email,omptempty"` EmailBounced *Bool `xmlrpc:"email_bounced,omptempty"` EmailFormatted *String `xmlrpc:"email_formatted,omptempty"` EmailNormalized *String `xmlrpc:"email_normalized,omptempty"` EmailScore *Float `xmlrpc:"email_score,omptempty"` Employee *Bool `xmlrpc:"employee,omptempty"` EmployeeIds *Relation `xmlrpc:"employee_ids,omptempty"` EmployeesCount *Int `xmlrpc:"employees_count,omptempty"` EventCount *Int `xmlrpc:"event_count,omptempty"` FailedMessageIds *Relation `xmlrpc:"failed_message_ids,omptempty"` Firstname *String `xmlrpc:"firstname,omptempty"` FollowupLineId *Many2One `xmlrpc:"followup_line_id,omptempty"` FollowupNextActionDate *Time `xmlrpc:"followup_next_action_date,omptempty"` FollowupReminderType *Selection `xmlrpc:"followup_reminder_type,omptempty"` FollowupResponsibleId *Many2One `xmlrpc:"followup_responsible_id,omptempty"` FollowupStatus *Selection `xmlrpc:"followup_status,omptempty"` Function *String `xmlrpc:"function,omptempty"` HasMessage *Bool `xmlrpc:"has_message,omptempty"` HasUnreconciledEntries *Bool `xmlrpc:"has_unreconciled_entries,omptempty"` IapEnrichInfo *String `xmlrpc:"iap_enrich_info,omptempty"` IapSearchDomain *String `xmlrpc:"iap_search_domain,omptempty"` Id *Int `xmlrpc:"id,omptempty"` ImStatus *String `xmlrpc:"im_status,omptempty"` Image1024 *String `xmlrpc:"image_1024,omptempty"` Image128 *String `xmlrpc:"image_128,omptempty"` Image1920 *String `xmlrpc:"image_1920,omptempty"` Image256 *String `xmlrpc:"image_256,omptempty"` Image512 *String `xmlrpc:"image_512,omptempty"` ImageMedium *String `xmlrpc:"image_medium,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"` IsBlacklisted *Bool `xmlrpc:"is_blacklisted,omptempty"` IsCompany *Bool `xmlrpc:"is_company,omptempty"` IsPublic *Bool `xmlrpc:"is_public,omptempty"` IsPublished *Bool `xmlrpc:"is_published,omptempty"` IsSeoOptimized *Bool `xmlrpc:"is_seo_optimized,omptempty"` JournalItemCount *Int `xmlrpc:"journal_item_count,omptempty"` Lang *Selection `xmlrpc:"lang,omptempty"` LastTimeEntriesChecked *Time `xmlrpc:"last_time_entries_checked,omptempty"` LastWebsiteSoId *Many2One `xmlrpc:"last_website_so_id,omptempty"` Lastname *String `xmlrpc:"lastname,omptempty"` MassMailingContactIds *Relation `xmlrpc:"mass_mailing_contact_ids,omptempty"` MassMailingContactsCount *Int `xmlrpc:"mass_mailing_contacts_count,omptempty"` MassMailingStatsCount *Int `xmlrpc:"mass_mailing_stats_count,omptempty"` MassMailingStatsIds *Relation `xmlrpc:"mass_mailing_stats_ids,omptempty"` MeetingCount *Int `xmlrpc:"meeting_count,omptempty"` MeetingIds *Relation `xmlrpc:"meeting_ids,omptempty"` MessageAttachmentCount *Int `xmlrpc:"message_attachment_count,omptempty"` MessageBounce *Int `xmlrpc:"message_bounce,omptempty"` MessageContent *String `xmlrpc:"message_content,omptempty"` MessageFollowerIds *Relation `xmlrpc:"message_follower_ids,omptempty"` MessageHasError *Bool `xmlrpc:"message_has_error,omptempty"` MessageHasErrorCounter *Int `xmlrpc:"message_has_error_counter,omptempty"` MessageHasSmsError *Bool `xmlrpc:"message_has_sms_error,omptempty"` MessageIds *Relation `xmlrpc:"message_ids,omptempty"` MessageIsFollower *Bool `xmlrpc:"message_is_follower,omptempty"` MessageMainAttachmentId *Many2One `xmlrpc:"message_main_attachment_id,omptempty"` MessageNeedaction *Bool `xmlrpc:"message_needaction,omptempty"` MessageNeedactionCounter *Int `xmlrpc:"message_needaction_counter,omptempty"` MessagePartnerIds *Relation `xmlrpc:"message_partner_ids,omptempty"` MessagesFromCount *Int `xmlrpc:"messages_from_count,omptempty"` MessagesToCount *Int `xmlrpc:"messages_to_count,omptempty"` Mobile *String `xmlrpc:"mobile,omptempty"` MobileBlacklisted *Bool `xmlrpc:"mobile_blacklisted,omptempty"` MyActivityDateDeadline *Time `xmlrpc:"my_activity_date_deadline,omptempty"` Name *String `xmlrpc:"name,omptempty"` OcnToken *String `xmlrpc:"ocn_token,omptempty"` OnTimeRate *Float `xmlrpc:"on_time_rate,omptempty"` OnlinePartnerInformation *String `xmlrpc:"online_partner_information,omptempty"` OpportunityCount *Int `xmlrpc:"opportunity_count,omptempty"` OpportunityIds *Relation `xmlrpc:"opportunity_ids,omptempty"` ParentId *Many2One `xmlrpc:"parent_id,omptempty"` ParentName *String `xmlrpc:"parent_name,omptempty"` PartnerGid *Int `xmlrpc:"partner_gid,omptempty"` PartnerLatitude *Float `xmlrpc:"partner_latitude,omptempty"` PartnerLongitude *Float `xmlrpc:"partner_longitude,omptempty"` PaymentTokenCount *Int `xmlrpc:"payment_token_count,omptempty"` PaymentTokenIds *Relation `xmlrpc:"payment_token_ids,omptempty"` Phone *String `xmlrpc:"phone,omptempty"` PhoneBlacklisted *Bool `xmlrpc:"phone_blacklisted,omptempty"` PhoneMobileSearch *String `xmlrpc:"phone_mobile_search,omptempty"` PhoneSanitized *String `xmlrpc:"phone_sanitized,omptempty"` PhoneSanitizedBlacklisted *Bool `xmlrpc:"phone_sanitized_blacklisted,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"` 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"` PurchaseLineIds *Relation `xmlrpc:"purchase_line_ids,omptempty"` PurchaseOrderCount *Int `xmlrpc:"purchase_order_count,omptempty"` PurchaseWarn *Selection `xmlrpc:"purchase_warn,omptempty"` PurchaseWarnMsg *String `xmlrpc:"purchase_warn_msg,omptempty"` ReceiptReminderEmail *Bool `xmlrpc:"receipt_reminder_email,omptempty"` Ref *String `xmlrpc:"ref,omptempty"` RefCompanyIds *Relation `xmlrpc:"ref_company_ids,omptempty"` RegistrationIds *Relation `xmlrpc:"registration_ids,omptempty"` ReminderDateBeforeReceipt *Int `xmlrpc:"reminder_date_before_receipt,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"` SameCompanyRegistryPartnerId *Many2One `xmlrpc:"same_company_registry_partner_id,omptempty"` SameVatPartnerId *Many2One `xmlrpc:"same_vat_partner_id,omptempty"` SddCount *Int `xmlrpc:"sdd_count,omptempty"` SddMandateIds *Relation `xmlrpc:"sdd_mandate_ids,omptempty"` Self *Many2One `xmlrpc:"self,omptempty"` SeoName *String `xmlrpc:"seo_name,omptempty"` ShowCreditLimit *Bool `xmlrpc:"show_credit_limit,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"` SlaIds *Relation `xmlrpc:"sla_ids,omptempty"` SlideChannelCompanyCount *Int `xmlrpc:"slide_channel_company_count,omptempty"` SlideChannelCompletedIds *Relation `xmlrpc:"slide_channel_completed_ids,omptempty"` SlideChannelCount *Int `xmlrpc:"slide_channel_count,omptempty"` SlideChannelIds *Relation `xmlrpc:"slide_channel_ids,omptempty"` Spammer *Bool `xmlrpc:"spammer,omptempty"` StateId *Many2One `xmlrpc:"state_id,omptempty"` Street *String `xmlrpc:"street,omptempty"` Street2 *String `xmlrpc:"street2,omptempty"` SubscriptionCount *Int `xmlrpc:"subscription_count,omptempty"` SupplierInvoiceCount *Int `xmlrpc:"supplier_invoice_count,omptempty"` SupplierRank *Int `xmlrpc:"supplier_rank,omptempty"` TaskCount *Int `xmlrpc:"task_count,omptempty"` TaskIds *Relation `xmlrpc:"task_ids,omptempty"` TeamId *Many2One `xmlrpc:"team_id,omptempty"` TicketCount *Int `xmlrpc:"ticket_count,omptempty"` Title *Many2One `xmlrpc:"title,omptempty"` TotalDue *Float `xmlrpc:"total_due,omptempty"` TotalInvoiced *Float `xmlrpc:"total_invoiced,omptempty"` TotalOverdue *Float `xmlrpc:"total_overdue,omptempty"` TrackingEmailsCount *Int `xmlrpc:"tracking_emails_count,omptempty"` Trust *Selection `xmlrpc:"trust,omptempty"` Type *Selection `xmlrpc:"type,omptempty"` Tz *Selection `xmlrpc:"tz,omptempty"` TzOffset *String `xmlrpc:"tz_offset,omptempty"` UnpaidInvoiceIds *Relation `xmlrpc:"unpaid_invoice_ids,omptempty"` UnpaidInvoicesCount *Int `xmlrpc:"unpaid_invoices_count,omptempty"` UnreconciledAmlIds *Relation `xmlrpc:"unreconciled_aml_ids,omptempty"` UsePartnerCreditLimit *Bool `xmlrpc:"use_partner_credit_limit,omptempty"` UserId *Many2One `xmlrpc:"user_id,omptempty"` UserIds *Relation `xmlrpc:"user_ids,omptempty"` UserLivechatUsername *String `xmlrpc:"user_livechat_username,omptempty"` Vat *String `xmlrpc:"vat,omptempty"` VisitorIds *Relation `xmlrpc:"visitor_ids,omptempty"` VshnControlApiInflight *String `xmlrpc:"vshn_control_api_inflight,omptempty"` VshnControlApiMetaStatus *String `xmlrpc:"vshn_control_api_meta_status,omptempty"` Website *String `xmlrpc:"website,omptempty"` WebsiteDescription *String `xmlrpc:"website_description,omptempty"` WebsiteId *Many2One `xmlrpc:"website_id,omptempty"` WebsiteMessageIds *Relation `xmlrpc:"website_message_ids,omptempty"` WebsiteMetaDescription *String `xmlrpc:"website_meta_description,omptempty"` WebsiteMetaKeywords *String `xmlrpc:"website_meta_keywords,omptempty"` WebsiteMetaOgImg *String `xmlrpc:"website_meta_og_img,omptempty"` WebsiteMetaTitle *String `xmlrpc:"website_meta_title,omptempty"` WebsitePublished *Bool `xmlrpc:"website_published,omptempty"` WebsiteShortDescription *String `xmlrpc:"website_short_description,omptempty"` WebsiteUrl *String `xmlrpc:"website_url,omptempty"` WriteDate *Time `xmlrpc:"write_date,omptempty"` WriteUid *Many2One `xmlrpc:"write_uid,omptempty"` XClassification *Selection `xmlrpc:"x_classification,omptempty"` XHubspotId *String `xmlrpc:"x_hubspot_id,omptempty"` XInvoiceContact *String `xmlrpc:"x_invoice_contact,omptempty"` XOdoo8ID *String `xmlrpc:"x_odoo_8_ID,omptempty"` XStudioMany2ManyField2VqZb *Relation `xmlrpc:"x_studio_many2many_field_2vqZb,omptempty"` XStudioMany2OneFieldP3Zm5 *Many2One `xmlrpc:"x_studio_many2one_field_P3Zm5,omptempty"` XStudioMany2OneFieldGaElv *Many2One `xmlrpc:"x_studio_many2one_field_gaElv,omptempty"` XStudioRelatedFieldHJLOY *Selection `xmlrpc:"x_studio_related_field_hJLOY,omptempty"` XStudioRelatedFieldSmqd9 *Many2One `xmlrpc:"x_studio_related_field_smqd9,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 SaleOrder ¶
type SaleOrder struct { LastUpdate *Time `xmlrpc:"__last_update,omptempty"` AccessToken *String `xmlrpc:"access_token,omptempty"` AccessUrl *String `xmlrpc:"access_url,omptempty"` AccessWarning *String `xmlrpc:"access_warning,omptempty"` ActivityCalendarEventId *Many2One `xmlrpc:"activity_calendar_event_id,omptempty"` ActivityDateDeadline *Time `xmlrpc:"activity_date_deadline,omptempty"` ActivityExceptionDecoration *Selection `xmlrpc:"activity_exception_decoration,omptempty"` ActivityExceptionIcon *String `xmlrpc:"activity_exception_icon,omptempty"` ActivityIds *Relation `xmlrpc:"activity_ids,omptempty"` ActivityState *Selection `xmlrpc:"activity_state,omptempty"` ActivitySummary *String `xmlrpc:"activity_summary,omptempty"` ActivityTypeIcon *String `xmlrpc:"activity_type_icon,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"` AmountUndiscounted *Float `xmlrpc:"amount_undiscounted,omptempty"` AmountUntaxed *Float `xmlrpc:"amount_untaxed,omptempty"` AnalyticAccountId *Many2One `xmlrpc:"analytic_account_id,omptempty"` ArchivedProductCount *Int `xmlrpc:"archived_product_count,omptempty"` ArchivedProductIds *Relation `xmlrpc:"archived_product_ids,omptempty"` AuthorizedTransactionIds *Relation `xmlrpc:"authorized_transaction_ids,omptempty"` AutoGenerated *Bool `xmlrpc:"auto_generated,omptempty"` AutoPurchaseOrderId *Many2One `xmlrpc:"auto_purchase_order_id,omptempty"` CampaignId *Many2One `xmlrpc:"campaign_id,omptempty"` CartQuantity *Int `xmlrpc:"cart_quantity,omptempty"` CartRecoveryEmailSent *Bool `xmlrpc:"cart_recovery_email_sent,omptempty"` ClientOrderRef *String `xmlrpc:"client_order_ref,omptempty"` CloseReasonId *Many2One `xmlrpc:"close_reason_id,omptempty"` CommercialPartnerId *Many2One `xmlrpc:"commercial_partner_id,omptempty"` CommitmentDate *Time `xmlrpc:"commitment_date,omptempty"` CompanyId *Many2One `xmlrpc:"company_id,omptempty"` CountryCode *String `xmlrpc:"country_code,omptempty"` CountryId *Many2One `xmlrpc:"country_id,omptempty"` CreateDate *Time `xmlrpc:"create_date,omptempty"` CreateUid *Many2One `xmlrpc:"create_uid,omptempty"` CurrencyId *Many2One `xmlrpc:"currency_id,omptempty"` CurrencyRate *Float `xmlrpc:"currency_rate,omptempty"` DateOrder *Time `xmlrpc:"date_order,omptempty"` DeliveryCount *Int `xmlrpc:"delivery_count,omptempty"` DeliveryStatus *Selection `xmlrpc:"delivery_status,omptempty"` DisplayName *String `xmlrpc:"display_name,omptempty"` EffectiveDate *Time `xmlrpc:"effective_date,omptempty"` EndDate *Time `xmlrpc:"end_date,omptempty"` ExpectedDate *Time `xmlrpc:"expected_date,omptempty"` ExpenseCount *Int `xmlrpc:"expense_count,omptempty"` ExpenseIds *Relation `xmlrpc:"expense_ids,omptempty"` FailedMessageIds *Relation `xmlrpc:"failed_message_ids,omptempty"` FiscalPositionId *Many2One `xmlrpc:"fiscal_position_id,omptempty"` Grid *String `xmlrpc:"grid,omptempty"` GridProductTmplId *Many2One `xmlrpc:"grid_product_tmpl_id,omptempty"` GridUpdate *Bool `xmlrpc:"grid_update,omptempty"` HasMessage *Bool `xmlrpc:"has_message,omptempty"` Health *Selection `xmlrpc:"health,omptempty"` HistoryCount *Int `xmlrpc:"history_count,omptempty"` Id *Int `xmlrpc:"id,omptempty"` Incoterm *Many2One `xmlrpc:"incoterm,omptempty"` IncotermLocation *String `xmlrpc:"incoterm_location,omptempty"` IndustryId *Many2One `xmlrpc:"industry_id,omptempty"` InternalNote *String `xmlrpc:"internal_note,omptempty"` InvoiceCount *Int `xmlrpc:"invoice_count,omptempty"` InvoiceIds *Relation `xmlrpc:"invoice_ids,omptempty"` InvoiceStatus *Selection `xmlrpc:"invoice_status,omptempty"` IsAbandonedCart *Bool `xmlrpc:"is_abandoned_cart,omptempty"` IsBatch *Bool `xmlrpc:"is_batch,omptempty"` IsExpired *Bool `xmlrpc:"is_expired,omptempty"` IsInvoiceCron *Bool `xmlrpc:"is_invoice_cron,omptempty"` IsProductMilestone *Bool `xmlrpc:"is_product_milestone,omptempty"` IsSubscription *Bool `xmlrpc:"is_subscription,omptempty"` IsUpselling *Bool `xmlrpc:"is_upselling,omptempty"` JsonPopover *String `xmlrpc:"json_popover,omptempty"` Kpi1MonthMrrDelta *Float `xmlrpc:"kpi_1month_mrr_delta,omptempty"` Kpi1MonthMrrPercentage *Float `xmlrpc:"kpi_1month_mrr_percentage,omptempty"` Kpi3MonthsMrrDelta *Float `xmlrpc:"kpi_3months_mrr_delta,omptempty"` Kpi3MonthsMrrPercentage *Float `xmlrpc:"kpi_3months_mrr_percentage,omptempty"` L10NDin5008Addresses *String `xmlrpc:"l10n_din5008_addresses,omptempty"` L10NDin5008DocumentTitle *String `xmlrpc:"l10n_din5008_document_title,omptempty"` L10NDin5008TemplateData *String `xmlrpc:"l10n_din5008_template_data,omptempty"` LastInvoiceDate *Time `xmlrpc:"last_invoice_date,omptempty"` ManageMeteredOrder *Bool `xmlrpc:"manage_metered_order,omptempty"` MediumId *Many2One `xmlrpc:"medium_id,omptempty"` MessageAttachmentCount *Int `xmlrpc:"message_attachment_count,omptempty"` MessageContent *String `xmlrpc:"message_content,omptempty"` MessageFollowerIds *Relation `xmlrpc:"message_follower_ids,omptempty"` MessageHasError *Bool `xmlrpc:"message_has_error,omptempty"` MessageHasErrorCounter *Int `xmlrpc:"message_has_error_counter,omptempty"` MessageHasSmsError *Bool `xmlrpc:"message_has_sms_error,omptempty"` MessageIds *Relation `xmlrpc:"message_ids,omptempty"` MessageIsFollower *Bool `xmlrpc:"message_is_follower,omptempty"` MessageMainAttachmentId *Many2One `xmlrpc:"message_main_attachment_id,omptempty"` MessageNeedaction *Bool `xmlrpc:"message_needaction,omptempty"` MessageNeedactionCounter *Int `xmlrpc:"message_needaction_counter,omptempty"` MessagePartnerIds *Relation `xmlrpc:"message_partner_ids,omptempty"` MeteredUsageCount *Int `xmlrpc:"metered_usage_count,omptempty"` MilestoneCount *Int `xmlrpc:"milestone_count,omptempty"` MyActivityDateDeadline *Time `xmlrpc:"my_activity_date_deadline,omptempty"` Name *String `xmlrpc:"name,omptempty"` NextInvoiceDate *Time `xmlrpc:"next_invoice_date,omptempty"` Note *String `xmlrpc:"note,omptempty"` OnlyServices *Bool `xmlrpc:"only_services,omptempty"` OpportunityId *Many2One `xmlrpc:"opportunity_id,omptempty"` OrderLine *Relation `xmlrpc:"order_line,omptempty"` OrderLogIds *Relation `xmlrpc:"order_log_ids,omptempty"` Origin *String `xmlrpc:"origin,omptempty"` OriginOrderId *Many2One `xmlrpc:"origin_order_id,omptempty"` PartnerCreditWarning *String `xmlrpc:"partner_credit_warning,omptempty"` PartnerId *Many2One `xmlrpc:"partner_id,omptempty"` PartnerInvoiceId *Many2One `xmlrpc:"partner_invoice_id,omptempty"` PartnerShippingId *Many2One `xmlrpc:"partner_shipping_id,omptempty"` PaymentException *Bool `xmlrpc:"payment_exception,omptempty"` PaymentTermId *Many2One `xmlrpc:"payment_term_id,omptempty"` PaymentTokenId *Many2One `xmlrpc:"payment_token_id,omptempty"` PercentageSatisfaction *Int `xmlrpc:"percentage_satisfaction,omptempty"` PickingIds *Relation `xmlrpc:"picking_ids,omptempty"` PickingPolicy *Selection `xmlrpc:"picking_policy,omptempty"` PlanningFirstSaleLineId *Many2One `xmlrpc:"planning_first_sale_line_id,omptempty"` PlanningHoursPlanned *Float `xmlrpc:"planning_hours_planned,omptempty"` PlanningHoursToPlan *Float `xmlrpc:"planning_hours_to_plan,omptempty"` PlanningInitialDate *Time `xmlrpc:"planning_initial_date,omptempty"` PricelistId *Many2One `xmlrpc:"pricelist_id,omptempty"` ProcurementGroupId *Many2One `xmlrpc:"procurement_group_id,omptempty"` ProjectCount *Int `xmlrpc:"project_count,omptempty"` ProjectId *Many2One `xmlrpc:"project_id,omptempty"` ProjectIds *Relation `xmlrpc:"project_ids,omptempty"` PurchaseOrderCount *Int `xmlrpc:"purchase_order_count,omptempty"` RatingAvg *Float `xmlrpc:"rating_avg,omptempty"` RatingAvgText *Selection `xmlrpc:"rating_avg_text,omptempty"` RatingCount *Int `xmlrpc:"rating_count,omptempty"` RatingIds *Relation `xmlrpc:"rating_ids,omptempty"` RatingLastFeedback *String `xmlrpc:"rating_last_feedback,omptempty"` RatingLastImage *String `xmlrpc:"rating_last_image,omptempty"` RatingLastText *Selection `xmlrpc:"rating_last_text,omptempty"` RatingLastValue *Float `xmlrpc:"rating_last_value,omptempty"` RatingPercentageSatisfaction *Float `xmlrpc:"rating_percentage_satisfaction,omptempty"` RecurrenceId *Many2One `xmlrpc:"recurrence_id,omptempty"` RecurringLive *Bool `xmlrpc:"recurring_live,omptempty"` RecurringMonthly *Float `xmlrpc:"recurring_monthly,omptempty"` Reference *String `xmlrpc:"reference,omptempty"` RenewState *Selection `xmlrpc:"renew_state,omptempty"` ReportGrids *Bool `xmlrpc:"report_grids,omptempty"` RequirePayment *Bool `xmlrpc:"require_payment,omptempty"` RequireSignature *Bool `xmlrpc:"require_signature,omptempty"` SaleOrderOptionIds *Relation `xmlrpc:"sale_order_option_ids,omptempty"` SaleOrderTemplateId *Many2One `xmlrpc:"sale_order_template_id,omptempty"` ShopWarning *String `xmlrpc:"shop_warning,omptempty"` ShowJsonPopover *Bool `xmlrpc:"show_json_popover,omptempty"` ShowRecInvoiceButton *Bool `xmlrpc:"show_rec_invoice_button,omptempty"` ShowUpdateFpos *Bool `xmlrpc:"show_update_fpos,omptempty"` ShowUpdatePricelist *Bool `xmlrpc:"show_update_pricelist,omptempty"` Signature *String `xmlrpc:"signature,omptempty"` SignedBy *String `xmlrpc:"signed_by,omptempty"` SignedOn *Time `xmlrpc:"signed_on,omptempty"` SourceId *Many2One `xmlrpc:"source_id,omptempty"` StageCategory *Selection `xmlrpc:"stage_category,omptempty"` StageId *Many2One `xmlrpc:"stage_id,omptempty"` Starred *Bool `xmlrpc:"starred,omptempty"` StarredUserIds *Relation `xmlrpc:"starred_user_ids,omptempty"` StartDate *Time `xmlrpc:"start_date,omptempty"` State *Selection `xmlrpc:"state,omptempty"` SubscriptionChildIds *Relation `xmlrpc:"subscription_child_ids,omptempty"` SubscriptionId *Many2One `xmlrpc:"subscription_id,omptempty"` SubscriptionManagement *Selection `xmlrpc:"subscription_management,omptempty"` TagIds *Relation `xmlrpc:"tag_ids,omptempty"` TasksCount *Int `xmlrpc:"tasks_count,omptempty"` TasksIds *Relation `xmlrpc:"tasks_ids,omptempty"` TaxCountryId *Many2One `xmlrpc:"tax_country_id,omptempty"` TaxTotals *String `xmlrpc:"tax_totals,omptempty"` TeamId *Many2One `xmlrpc:"team_id,omptempty"` TeamUserId *Many2One `xmlrpc:"team_user_id,omptempty"` TermsType *Selection `xmlrpc:"terms_type,omptempty"` TicketCount *Int `xmlrpc:"ticket_count,omptempty"` TimesheetCount *Float `xmlrpc:"timesheet_count,omptempty"` TimesheetEncodeUomId *Many2One `xmlrpc:"timesheet_encode_uom_id,omptempty"` TimesheetIds *Relation `xmlrpc:"timesheet_ids,omptempty"` TimesheetTotalDuration *Int `xmlrpc:"timesheet_total_duration,omptempty"` ToRenew *Bool `xmlrpc:"to_renew,omptempty"` TransactionIds *Relation `xmlrpc:"transaction_ids,omptempty"` TypeName *String `xmlrpc:"type_name,omptempty"` UserId *Many2One `xmlrpc:"user_id,omptempty"` ValidityDate *Time `xmlrpc:"validity_date,omptempty"` VisibleProject *Bool `xmlrpc:"visible_project,omptempty"` WarehouseId *Many2One `xmlrpc:"warehouse_id,omptempty"` WebsiteDescription *String `xmlrpc:"website_description,omptempty"` WebsiteId *Many2One `xmlrpc:"website_id,omptempty"` WebsiteMessageIds *Relation `xmlrpc:"website_message_ids,omptempty"` WebsiteOrderLine *Relation `xmlrpc:"website_order_line,omptempty"` WriteDate *Time `xmlrpc:"write_date,omptempty"` WriteUid *Many2One `xmlrpc:"write_uid,omptempty"` XStudioReference *String `xmlrpc:"x_studio_reference,omptempty"` }
SaleOrder represents sale.order 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.
type String ¶
type String struct {
// contains filtered or unexported fields
}
String is a string wrapper