Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!-- towncrier release notes start -->

## [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

Expand Down
6 changes: 3 additions & 3 deletions docs/managers/account-move.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand All @@ -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`

Expand All @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion docs/managers/attachment.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions docs/managers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions docs/managers/product.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down Expand Up @@ -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`

Expand Down Expand Up @@ -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`

Expand Down
10 changes: 5 additions & 5 deletions docs/managers/sale-order.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Cancel the given sale order.
... )
```

*Added in version 0.2.0.*
*Added in version 0.2.1.*

#### Parameters

Expand Down Expand Up @@ -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`

Expand All @@ -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`

Expand All @@ -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`

Expand Down Expand Up @@ -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`

Expand Down
2 changes: 1 addition & 1 deletion openstack_odooclient/base/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]],
Expand Down
2 changes: 1 addition & 1 deletion openstack_odooclient/base/record/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
"""
...

Expand Down
4 changes: 2 additions & 2 deletions openstack_odooclient/base/record_manager/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions openstack_odooclient/managers/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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
Expand All @@ -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)]
Expand Down
10 changes: 5 additions & 5 deletions openstack_odooclient/managers/sale_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand All @@ -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"]
Expand Down Expand Up @@ -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)

Expand All @@ -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
Expand Down