Skip to content

OpenStack Resellers

This page documents how to use the manager and record objects for resellers.

Details

Name Value
Odoo Modules OpenStack Integration
Odoo Model Name openstack.reseller
Manager resellers
Record Type Reseller

Manager

The reseller manager is available as the resellers attribute on the Odoo client object.

>>> from openstack_odooclient import Client as OdooClient
>>> odoo_client = OdooClient(
...     hostname="localhost",
...     port=8069,
...     protocol="jsonrpc",
...     database="odoodb",
...     user="test-user",
...     password="<password>",
... )
>>> odoo_client.resellers.get(1234)
Reseller(record={'id': 1234, ...}, fields=None)

For more information on how to use managers, refer to Managers.

Record

The reseller manager returns Reseller record objects.

To import the record class for type hinting purposes:

from openstack_odooclient import Reseller

The record class currently implements the following fields and methods.

For more information on attributes and methods common to all record types, see Record Attributes and Methods.

alternative_billing_url

alternative_billing_url: str | None

The URL to the cloud billing page for the reseller, if available.

alternative_support_url

alternative_support_url: str | None

The URL to the cloud support centre for the reseller, if available.

demo_project_id

demo_project_id: int | None

The ID for the optional demo project belonging to the reseller.

demo_project_name

demo_project_name: str | None

The name of the optional demo project belonging to the reseller.

demo_project

demo_project: Project | None

An optional demo project belonging to the reseller.

This fetches the full record from Odoo once, and caches it for subsequent accesses.

hide_billing

hide_billing: bool

Whether or not the billing URL should be hidden.

hide_support

hide_support: bool

Whether or not the support URL should be hidden.

name

name: str

The automatically generated reseller name.

This is set to the reseller partner's name.

partner_id

partner_id: int

The ID for the reseller partner.

partner_name

partner_name: str

The name of the reseller partner.

partner

partner: Partner

The reseller partner.

This fetches the full record from Odoo once, and caches it for subsequent accesses.

tier_id

tier_id: int

The ID for the tier this reseller is under.

tier_name

tier_name: str

The name of the tier this reseller is under.

tier

tier: ResellerTier

The tier this reseller is under.

This fetches the full record from Odoo once, and caches it for subsequent accesses.