Skip to content
Open
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
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Setup Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: "3.14"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v8.3.2
with:
version: "0.9.17"
version: "0.12.1"
- name: Create virtual environment
run: uv sync --only-dev
- name: Publish the docs to GitHub Pages
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Clone full tree, and checkout tag
uses: actions/checkout@v5
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: "3.14"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v8.3.2
with:
version: "0.9.17"
version: "0.12.1"
- name: Build source dist and wheels
run: uv build
- name: Upload source dist and wheels to artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: dist
path: dist/
Expand All @@ -42,7 +42,7 @@ jobs:
id-token: write
steps:
- name: Clone full tree, and checkout tag
uses: actions/checkout@v5
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Download source dist and wheels from artifacts
Expand All @@ -51,14 +51,14 @@ jobs:
name: dist
path: dist/
- name: Setup Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: "3.14"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v8.3.2
with:
version: "0.9.17"
version: "0.12.1"
- name: Publish source dist and wheels to PyPI
run: uv publish

Expand All @@ -69,7 +69,7 @@ jobs:
contents: write
steps:
- name: Clone and checkout tag
uses: actions/checkout@v5
uses: actions/checkout@v7
- name: Download source dist and wheels from artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -94,22 +94,22 @@ jobs:
contents: write
steps:
- name: Clone full tree, and checkout branch
uses: actions/checkout@v4
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Configure git user
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Setup Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: "3.14"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v8.3.2
with:
version: "0.9.17"
version: "0.12.1"
- name: Create virtual environment
run: uv sync --only-dev
- name: Publish the docs to GitHub Pages
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
- "3.14"
steps:
- name: Clone and checkout branch
uses: actions/checkout@v5
uses: actions/checkout@v7
- name: Setup Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: "${{ matrix.python_version }}"
cache: "pip"
- name: Run pre-commit hooks
uses: pre-commit/action@v3.0.1
uses: j178/prek-action@v2

test:
needs: pre-commit
Expand All @@ -43,18 +43,18 @@ jobs:
- "3.14"
steps:
- name: Clone full tree, and checkout branch
uses: actions/checkout@v5
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: "${{ matrix.python_version }}"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v8.3.2
with:
version: "0.9.17"
version: "0.12.1"
- name: Run tests
run: uv run poe test

Expand All @@ -63,22 +63,22 @@ jobs:
runs-on: ubuntu-24.04
steps:
- name: Clone full tree, and checkout branch
uses: actions/checkout@v5
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v6
uses: actions/setup-python@v7
with:
python-version: "3.14"
cache: "pip"
- name: Setup uv
uses: astral-sh/setup-uv@v7
uses: astral-sh/setup-uv@v8.3.2
with:
version: "0.9.17"
version: "0.12.1"
- name: Build source dist and wheels
run: uv build
- name: Upload source dist and wheels to artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: dist
path: dist/
Expand Down
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@ repos:
- id: check-added-large-files
- id: check-merge-conflict
- repo: https://github.com/crate-ci/typos
rev: "v1.40.0"
rev: "v1.48.0"
hooks:
- id: typos
- repo: https://github.com/astral-sh/uv-pre-commit
rev: "0.9.17"
rev: "0.12.1"
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.9"
rev: "v0.16.1"
hooks:
- id: ruff-check
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.19.0"
rev: "v2.3.0"
hooks:
- id: mypy
additional_dependencies:
- OdooRPC>=0.9.0
- packaging
- typing-extensions>=4.15.0
- typing-extensions>=4.12.2
22 changes: 20 additions & 2 deletions docs/managers/account-move.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,28 @@ All specified records will be processed in a single request.
send_openstack_invoice_email(
account_move: int | AccountMove,
email_ctx: Mapping[str, Any] | None = None,
) -> None
) -> bool
```

Send an OpenStack invoice email for the given
account move (invoice).

*Changed in version 0.3.0*: Now returns ``True`` if the email was
successfully sent, and ``False`` if it was not.

#### Parameters

| Name | Type | Description | Default |
|----------------|----------------------------|-------------------------------------------------|------------|
| `account_move` | `int | AccountMove` | The account move (invoice) to send an email for | (required) |
| `email_ctx` | `Mapping[str, Any] | None` | Optional email context | `None` |

#### Returns

| Type | Description |
|--------|--------------------------------------------------------------|
| `bool` | `True` if the email was successfully sent, otherwise `False` |

## Record

The account move (invoice) manager returns `AccountMove` record objects.
Expand Down Expand Up @@ -326,13 +335,22 @@ Change this draft account move (invoice) into "posted" state.
```python
send_openstack_invoice_email(
email_ctx: Mapping[str, Any] | None = None,
) -> None
) -> bool
```

Send an OpenStack invoice email for this account move (invoice).

*Changed in version 0.3.0*: Now returns ``True`` if the email was
successfully sent, and ``False`` if it was not.

#### Parameters

| Name | Type | Description | Default |
|-------------|----------------------------|------------------------|---------|
| `email_ctx` | `Mapping[str, Any] | None` | Optional email context | `None` |

#### Returns

| Type | Description |
|--------|--------------------------------------------------------------|
| `bool` | `True` if the email was successfully sent, otherwise `False` |
Loading
Loading