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.11.30"
- 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.11.30"
- 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.11.30"
- 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.11.30"
- 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.11.30"
- 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.11.30"
- 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.11.30"
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.14.9"
rev: "v0.15.22"
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
10 changes: 0 additions & 10 deletions openstack_odooclient/managers/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,16 +151,6 @@ class AccountMove(
* ``cancel`` - Cancelled invoice
"""

_field_mapping = {
# Odoo version.
"13.0": {
# Key is local value, value is remote value.
"move_type": "type",
"is_move_sent": "invoice_sent",
"payment_state": "invoice_payment_state",
},
}

def action_post(self) -> None:
"""Change this draft account move (invoice) into "posted" state."""
self._env.action_post(self.id)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ dynamic = ["version"]
dev = [
"mike>=2.1.3",
"mkdocs-material>=9.7.0",
"mypy==1.19.0",
"mypy==2.3.0",
"poethepoet>=0.38.0",
"pytest>=9.0.2",
"pytest-cov>=7.0.0",
"pytest-mock>=3.15.1",
"ruff==0.14.9",
"ruff==0.15.22",
"towncrier>=25.8.0",
]

Expand Down
Loading
Loading