Interface OdooV2NodeParameters

Source
interface OdooV2NodeParameters {
    activity_type_id?: {
        mode: "id" | "list";
        value: string;
    };
    activityId?: { mode: "id"
    | "list"; value: string };
    authentication?: "odooApi" | "odooApiKeyApi";
    contactId?: { mode: "id" | "list"; value: string };
    customResource?: { mode: "id" | "list"; value: string };
    filters?:
        | { res_id?: number; res_model?: string }
        | {
            filter: {
                fieldName?: string;
                operator?:
                    | "equal"
                    | "in"
                    | "notEqual"
                    | "like"
                    | "lesserThen"
                    | "lesserOrEqual"
                    | "greaterThen"
                    | "greaterOrEqual"
                    | "childOf"
                    | "notIn";
                value?: string;
            }[];
        };
    limit?: number;
    operation?: | "create"
    | "get"
    | "getAll"
    | "update"
    | "delete";
    opportunityId?: { mode: "id"
    | "list"; value: string };
    options?:
        | { fieldsList?: unknown[] }
        | { fieldsList?: string };
    recordId?: { mode: "id" | "list"; value: string };
    res_id?: { mode: "id" | "list"; value: string };
    res_model?: { mode: "id" | "list"; value: string };
    resource?:
        | "contact"
        | "custom"
        | "opportunity"
        | "activity";
    returnAll?: boolean;
}

Properties§

§readonly activity_type_id?: { ... }

Type of activity to schedule Default: {"mode":"list","value":""}

§readonly activityId?: { ... }

Activity to delete Default: {"mode":"list","value":""}

§readonly authentication?: "odooApi" | "odooApiKeyApi"

Default: "odooApiKeyApi"

§readonly contactId?: { ... }

Contact to delete Default: {"mode":"list","value":""}

§readonly customResource?: { ... }

The Odoo model to operate on Default: {"mode":"list","value":""}

§readonly filters?:
    | { res_id?: number; res_model?: string }
    | {
        filter: {
            fieldName?: string;
            operator?:
                | "equal"
                | "in"
                | "notEqual"
                | "like"
                | "lesserThen"
                | "lesserOrEqual"
                | "greaterThen"
                | "greaterOrEqual"
                | "childOf"
                | "notIn";
            value?: string;
        }[];
    }

Default: {}

§readonly limit?: number

Max number of results to return Default: 50 Type options: {"minValue":1,"maxValue":1000}

§readonly operation?: "create" | "get" | "getAll" | "update" | "delete"

Default: "getAll"

§readonly opportunityId?: { ... }

Opportunity to delete Default: {"mode":"list","value":""}

§readonly options?: { fieldsList?: unknown[] } | { fieldsList?: string }

Default: {}

§readonly recordId?: { ... }

Record to delete Default: {"mode":"list","value":""} Type options: {"loadOptionsDependsOn":["customResource.value"]}

§readonly res_id?: { ... }

Record to attach the activity to Default: {"mode":"list","value":""} Type options: {"loadOptionsDependsOn":["res_model.value"]}

§readonly res_model?: { ... }

The Odoo model of the document to attach the activity to Default: {"mode":"list","value":""}

§readonly resource?: "contact" | "custom" | "opportunity" | "activity"

Default: "contact"

§readonly returnAll?: boolean

Whether to return all results or only up to a given limit