diff --git a/docs/changelog.md b/docs/changelog.md index a688047..fc1b876 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,7 +2,7 @@ -## [0.2.0](https://github.com/catalyst-cloud/python-openstack-odooclient/releases/tag/0.2.0) - 2025-12-16 +## [0.2.1](https://github.com/catalyst-cloud/python-openstack-odooclient/releases/tag/0.2.1) - 2025-12-16 ### Removed diff --git a/docs/managers/account-move.md b/docs/managers/account-move.md index 263a0a2..0aa4e69 100644 --- a/docs/managers/account-move.md +++ b/docs/managers/account-move.md @@ -186,7 +186,7 @@ message_main_attachment_id: int | None The ID of the main [attachment](attachment.md) on the account move (invoice), if there is one. -*Added in version 0.2.0.* +*Added in version 0.2.1.* ### `message_main_attachment_name` @@ -197,7 +197,7 @@ message_main_attachment_name: str | None The name of the main [attachment](attachment.md) on the account move (invoice), if there is one. -*Added in version 0.2.0.* +*Added in version 0.2.1.* ### `message_main_attachment` @@ -209,7 +209,7 @@ The main [attachment](attachment.md) on the account move (invoice), if there is This fetches the full record from Odoo once, and caches it for subsequent accesses. -*Added in version 0.2.0.* +*Added in version 0.2.1.* ### `move_type` diff --git a/docs/managers/attachment.md b/docs/managers/attachment.md index 9535255..ee73294 100644 --- a/docs/managers/attachment.md +++ b/docs/managers/attachment.md @@ -1,6 +1,6 @@ # Attachments -*Added in version 0.2.0.* +*Added in version 0.2.1.* This page documents how to use the manager and record objects for attachments. diff --git a/docs/managers/index.md b/docs/managers/index.md index 2c69b25..d8a3e90 100644 --- a/docs/managers/index.md +++ b/docs/managers/index.md @@ -803,7 +803,7 @@ for example, when updating a model ref, either its ID (e.g. ``user_id``) or object (e.g. ``user``) field names can be used. -*Added in version 0.2.0.* +*Added in version 0.2.1.* #### Parameters @@ -1427,7 +1427,7 @@ can be used. If you need an updated version of the record object, use the [`refresh`](#refresh) method to fetch the latest version. -*Added in version 0.2.0.* +*Added in version 0.2.1.* ##### Parameters diff --git a/docs/managers/product.md b/docs/managers/product.md index ecdca41..e09f44a 100644 --- a/docs/managers/product.md +++ b/docs/managers/product.md @@ -262,7 +262,7 @@ active: bool Whether or not this product is active (enabled). -*Added in version 0.2.0.* +*Added in version 0.2.1.* ### `categ_id` @@ -329,7 +329,7 @@ The Default Code for this product, if set. In the OpenStack Integration add-on, this is used to store the rated unit for the service product. -*Changed in version 0.2.0*: Made `default_code` optional. +*Changed in version 0.2.1*: Made `default_code` optional. ### `description` @@ -373,7 +373,7 @@ sale_ok: bool Whether or not this product is sellable. -*Added in version 0.2.0.* +*Added in version 0.2.1.* ### `uom_id` diff --git a/docs/managers/sale-order.md b/docs/managers/sale-order.md index 8f8c169..76e7659 100644 --- a/docs/managers/sale-order.md +++ b/docs/managers/sale-order.md @@ -60,7 +60,7 @@ Cancel the given sale order. ... ) ``` -*Added in version 0.2.0.* +*Added in version 0.2.1.* #### Parameters @@ -228,7 +228,7 @@ invoice_count: int The number of [invoices (account moves)](account-move.md) generated from the sale order. -*Added in version 0.2.0.* +*Added in version 0.2.1.* ### `invoice_ids` @@ -238,7 +238,7 @@ invoice_ids: list[int] A list of IDs for [invoices (account moves)](account-move.md) generated from the sale order. -*Added in version 0.2.0.* +*Added in version 0.2.1.* ### `invoices` @@ -251,7 +251,7 @@ The [invoices (account moves)](account-move.md) generated from the sale order. This fetches the full records from Odoo once, and caches them for subsequent accesses. -*Added in version 0.2.0.* +*Added in version 0.2.1.* ### `invoice_status` @@ -425,7 +425,7 @@ Cancel this sale order. >>> sale_order.action_cancel() ``` -*Added in version 0.2.0.* +*Added in version 0.2.1.* ### `action_confirm` diff --git a/openstack_odooclient/base/client.py b/openstack_odooclient/base/client.py index 9cdea81..65b28cf 100644 --- a/openstack_odooclient/base/client.py +++ b/openstack_odooclient/base/client.py @@ -173,7 +173,7 @@ def __init__( This is populated by the manager classes themselves when created, and used by the ``Attachment.res_model_manager`` field. - *Added in version 0.2.0.* + *Added in version 0.2.1.* """ self._record_manager_mapping: dict[ Type[RecordBase[Any]], diff --git a/openstack_odooclient/base/record/base.py b/openstack_odooclient/base/record/base.py index 34236a7..7a9fd5a 100644 --- a/openstack_odooclient/base/record/base.py +++ b/openstack_odooclient/base/record/base.py @@ -195,7 +195,7 @@ def update(self, **fields: Any) -> None: this method. If you need an updated version of the record object, use the `refresh` method to fetch the latest version. - *Added in version 0.2.0.* + *Added in version 0.2.1.* """ ... diff --git a/openstack_odooclient/base/record_manager/protocol.py b/openstack_odooclient/base/record_manager/protocol.py index 1bbf088..270f1c2 100644 --- a/openstack_odooclient/base/record_manager/protocol.py +++ b/openstack_odooclient/base/record_manager/protocol.py @@ -380,7 +380,7 @@ def get_by_unique_field( When ``optional`` is ``True``, ``None`` is returned if a record with the given name does not exist, instead of raising an error. - *Added in version 0.2.0.* + *Added in version 0.2.1.* :param field: The unique field name to query by :type field: str @@ -604,7 +604,7 @@ def update(self, record: int | R, **fields: Any) -> None: when updating a model ref, either its ID (e.g. ``user_id``) or object (e.g. ``user``) field names can be used. - *Added in version 0.2.0.* + *Added in version 0.2.1.* :param record: The record to update (object or ID) :type record: int | R diff --git a/openstack_odooclient/managers/product.py b/openstack_odooclient/managers/product.py index c786b80..17b8f45 100644 --- a/openstack_odooclient/managers/product.py +++ b/openstack_odooclient/managers/product.py @@ -29,7 +29,7 @@ class Product(RecordBase["ProductManager"]): active: bool """Whether or not this product is active (enabled). - *Added in version 0.2.0.* + *Added in version 0.2.1.* """ categ_id: Annotated[int, ModelRef("categ_id", ProductCategory)] @@ -64,7 +64,7 @@ class Product(RecordBase["ProductManager"]): In the OpenStack Integration add-on, this is used to store the rated unit for the service product. - *Changed in version 0.2.0*: Made `default_code` optional. + *Changed in version 0.2.1*: Made `default_code` optional. """ description: str @@ -85,7 +85,7 @@ class Product(RecordBase["ProductManager"]): sale_ok: bool """Whether or not this product is sellable. - *Added in version 0.2.0.* + *Added in version 0.2.1.* """ uom_id: Annotated[int, ModelRef("uom_id", Uom)] diff --git a/openstack_odooclient/managers/sale_order.py b/openstack_odooclient/managers/sale_order.py index 4838e09..4cee356 100644 --- a/openstack_odooclient/managers/sale_order.py +++ b/openstack_odooclient/managers/sale_order.py @@ -62,13 +62,13 @@ class SaleOrder( invoice_count: int """The number of invoices generated from the sale order. - *Added in version 0.2.0.* + *Added in version 0.2.1.* """ invoice_ids: Annotated[list[int], ModelRef("invoice_ids", AccountMove)] """A list of IDs for invoices generated from the sale order. - *Added in version 0.2.0.* + *Added in version 0.2.1.* """ invoices: Annotated[ @@ -80,7 +80,7 @@ class SaleOrder( This fetches the full records from Odoo once, and caches them for subsequent accesses. - *Added in version 0.2.0.* + *Added in version 0.2.1.* """ invoice_status: Literal["no", "to invoice", "invoiced", "upselling"] @@ -174,7 +174,7 @@ class SaleOrder( def action_cancel(self) -> None: """Cancel this sale order. - *Added in version 0.2.0.* + *Added in version 0.2.1.* """ self._env.action_cancel(self.id) @@ -197,7 +197,7 @@ class SaleOrderManager( def action_cancel(self, sale_order: int | SaleOrder) -> None: """Cancel the given sale order. - *Added in version 0.2.0.* + *Added in version 0.2.1.* :param sale_order: The sale order to cancel :type sale_order: int | SaleOrder