OpenStack Support Subscription Types¶
This page documents how to use the manager and record objects for support subscription types.
Details¶
Name | Value |
---|---|
Odoo Modules | OpenStack Integration |
Odoo Model Name | openstack.support_subscription.type |
Manager | support_subscription_types |
Record Type | SupportSubscriptionType |
Manager¶
The support subscription type manager is available as the support_subscription_types
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.support_subscription_types.get(1234)
SupportSubscriptionType(record={'id': 1234, ...}, fields=None)
For more information on how to use managers, refer to Managers.
Record¶
The support subscription type manager returns SupportSubscriptionType
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.
billing_type
¶
The type of support subscription.
Values:
paid
- Charge the subscription independentlycomplimentary
- Bundled with a contract that includes the charge
name
¶
The name of the support subscription type.
product_id
¶
The ID for the product to use to invoice the support subscription.
product_name
¶
The name of the product to use to invoice the support subscription.
product
¶
The product to use to invoice the support subscription.
This fetches the full record from Odoo once, and caches it for subsequent accesses.
usage_percent
¶
Percentage of usage compared to price (0-100).
support_subscription_ids
¶
A list of IDs for the support subscriptions of this type.
support_subscription
¶
The list of support subscriptions of this type.
This fetches the full records from Odoo once, and caches them for subsequent accesses.
support_subscriptions
¶
An alias for support_subscription
.