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:
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
¶
The URL to the cloud billing page for the reseller, if available.
alternative_support_url
¶
The URL to the cloud support centre for the reseller, if available.
demo_project_id
¶
The ID for the optional demo project belonging to the reseller.
demo_project_name
¶
The name of the optional demo project belonging to the reseller.
demo_project
¶
An optional demo project belonging to the reseller.
This fetches the full record from Odoo once, and caches it for subsequent accesses.
hide_billing
¶
Whether or not the billing URL should be hidden.
hide_support
¶
Whether or not the support URL should be hidden.
name
¶
The automatically generated reseller name.
This is set to the reseller partner's name.
partner_id
¶
The ID for the reseller partner.
partner_name
¶
The name of the reseller partner.
partner
¶
The reseller partner.
This fetches the full record from Odoo once, and caches it for subsequent accesses.
tier_id
¶
The ID for the tier this reseller is under.
tier_name
¶
The name of the tier this reseller is under.
tier
¶
The tier this reseller is under.
This fetches the full record from Odoo once, and caches it for subsequent accesses.