Skip to content

Commit 12320e3

Browse files
committed
[MIG] Create 19.0 from 18.0 for Odoo 19.0
1 parent 34c06aa commit 12320e3

16 files changed

Lines changed: 101 additions & 52 deletions

File tree

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Do NOT update manually; changes here will be overwritten by Copier
2-
_commit: v1.29
2+
_commit: v1.34
33
_src_path: git+https://github.com/OCA/oca-addons-repo-template
44
additional_ruff_rules: []
55
ci: GitHub
@@ -14,7 +14,7 @@ github_enable_stale_action: true
1414
github_enforce_dev_status_compatibility: true
1515
include_wkhtmltopdf: false
1616
odoo_test_flavor: Both
17-
odoo_version: 18.0
17+
odoo_version: 19.0
1818
org_name: Odoo Community Association (OCA)
1919
org_slug: OCA
2020
rebel_module_groups: []

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
test-requirements.txt merge=union

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: pre-commit
33
on:
44
pull_request:
55
branches:
6-
- "18.0*"
6+
- "19.0*"
77
push:
88
branches:
9-
- "18.0"
10-
- "18.0-ocabot-*"
9+
- "19.0"
10+
- "19.0-ocabot-*"
1111

1212
jobs:
1313
pre-commit:

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: tests
33
on:
44
pull_request:
55
branches:
6-
- "18.0*"
6+
- "19.0*"
77
push:
88
branches:
9-
- "18.0"
10-
- "18.0-ocabot-*"
9+
- "19.0"
10+
- "19.0-ocabot-*"
1111

1212
jobs:
1313
unreleased-deps:
@@ -35,14 +35,14 @@ jobs:
3535
fail-fast: false
3636
matrix:
3737
include:
38-
- container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest
38+
- container: ghcr.io/oca/oca-ci/py3.10-odoo19.0:latest
3939
name: test with Odoo
40-
- container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest
40+
- container: ghcr.io/oca/oca-ci/py3.10-ocb19.0:latest
4141
name: test with OCB
4242
makepot: "true"
4343
services:
4444
postgres:
45-
image: postgres:12.0
45+
image: postgres:13
4646
env:
4747
POSTGRES_USER: odoo
4848
POSTGRES_PASSWORD: odoo

.pre-commit-config.yaml

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
exclude: |
22
(?x)
33
# NOT INSTALLABLE ADDONS
4+
^base_rest/|
5+
^base_rest_auth_api_key/|
6+
^base_rest_pydantic/|
47
^extendable/|
8+
^fastapi/|
9+
^pydantic/|
10+
^rest_log/|
511
# END NOT INSTALLABLE ADDONS
612
# Files and folders generated by bots, to avoid loops
713
^setup/|/static/description/index\.html$|
@@ -40,11 +46,11 @@ repos:
4046
language: fail
4147
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
4248
- repo: https://github.com/sbidoul/whool
43-
rev: v1.2
49+
rev: v1.3
4450
hooks:
4551
- id: whool-init
4652
- repo: https://github.com/oca/maintainer-tools
47-
rev: bf9ecb9938b6a5deca0ff3d870fbd3f33341fded
53+
rev: f9b919b9868143135a9c9cb03021089cabba8223
4854
hooks:
4955
# update the NOT INSTALLABLE ADDONS section above
5056
- id: oca-update-pre-commit-excluded-addons
@@ -53,15 +59,15 @@ repos:
5359
- id: oca-gen-addon-readme
5460
args:
5561
- --addons-dir=.
56-
- --branch=18.0
62+
- --branch=19.0
5763
- --org-name=OCA
5864
- --repo-name=rest-framework
5965
- --if-source-changed
6066
- --keep-source-digest
6167
- --convert-fragments-to-markdown
6268
- id: oca-gen-external-dependencies
6369
- repo: https://github.com/OCA/odoo-pre-commit-hooks
64-
rev: v0.0.33
70+
rev: v0.1.6
6571
hooks:
6672
- id: oca-checks-odoo-module
6773
- id: oca-checks-po
@@ -80,8 +86,8 @@ repos:
8086
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
8187
language: node
8288
additional_dependencies:
83-
- "prettier@3.3.3"
84-
- "@prettier/plugin-xml@3.4.1"
89+
- "prettier@3.6.2"
90+
- "@prettier/plugin-xml@3.4.2"
8591
- repo: local
8692
hooks:
8793
- id: eslint
@@ -94,10 +100,11 @@ repos:
94100
types: [javascript]
95101
language: node
96102
additional_dependencies:
97-
- "eslint@9.12.0"
98-
- "eslint-plugin-jsdoc@50.3.1"
103+
- "eslint@9.35.0"
104+
- "eslint-plugin-jsdoc@57.0.8"
105+
- "globals@16.0.0"
99106
- repo: https://github.com/pre-commit/pre-commit-hooks
100-
rev: v4.6.0
107+
rev: v6.0.0
101108
hooks:
102109
- id: trailing-whitespace
103110
# exclude autogenerated files
@@ -106,8 +113,6 @@ repos:
106113
# exclude autogenerated files
107114
exclude: /README\.rst$|\.pot?$
108115
- id: debug-statements
109-
- id: fix-encoding-pragma
110-
args: ["--remove"]
111116
- id: check-case-conflict
112117
- id: check-docstring-first
113118
- id: check-executables-have-shebangs
@@ -119,13 +124,13 @@ repos:
119124
- id: mixed-line-ending
120125
args: ["--fix=lf"]
121126
- repo: https://github.com/astral-sh/ruff-pre-commit
122-
rev: v0.6.8
127+
rev: v0.13.0
123128
hooks:
124129
- id: ruff
125130
args: [--fix, --exit-non-zero-on-fix]
126131
- id: ruff-format
127132
- repo: https://github.com/OCA/pylint-odoo
128-
rev: v9.1.3
133+
rev: v9.3.15
129134
hooks:
130135
- id: pylint_odoo
131136
name: pylint with optional checks

.pylintrc

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ manifest-required-authors=Odoo Community Association (OCA)
1010
manifest-required-keys=license
1111
manifest-deprecated-keys=description,active
1212
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
13-
valid-odoo-versions=18.0
13+
valid-odoo-versions=19.0
1414

1515
[MESSAGES CONTROL]
1616
disable=all
@@ -99,6 +99,29 @@ enable=anomalous-backslash-in-string,
9999
xml-deprecated-qweb-directive,
100100
xml-deprecated-tree-attribute,
101101
external-request-timeout,
102+
bad-builtin-groupby,
103+
category-allowed,
104+
deprecated-name-get,
105+
deprecated-odoo-model-method,
106+
inheritable-method-lambda,
107+
inheritable-method-string,
108+
invalid-email,
109+
manifest-behind-migrations,
110+
manifest-data-duplicated,
111+
missing-odoo-file,
112+
no-raise-unlink,
113+
no-search-all,
114+
no-wizard-in-models,
115+
prohibited-method-override,
116+
prefer-env-translation,
117+
translation-format-interpolation,
118+
translation-format-truncated,
119+
translation-fstring-interpolation,
120+
translation-not-lazy,
121+
translation-too-few-args,
122+
translation-too-many-args,
123+
translation-unsupported-format,
124+
no-write-in-compute,
102125
# messages that do not cause the lint step to fail
103126
consider-merging-classes-inherited,
104127
create-user-wo-reset-password,
@@ -114,7 +137,8 @@ enable=anomalous-backslash-in-string,
114137
old-api7-method-defined,
115138
redefined-builtin,
116139
too-complex,
117-
unnecessary-utf8-coding-comment
140+
unnecessary-utf8-coding-comment,
141+
manifest-external-assets
118142

119143

120144
[REPORTS]

.pylintrc-mandatory

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manifest-required-authors=Odoo Community Association (OCA)
99
manifest-required-keys=license
1010
manifest-deprecated-keys=description,active
1111
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3
12-
valid-odoo-versions=18.0
12+
valid-odoo-versions=19.0
1313

1414
[MESSAGES CONTROL]
1515
disable=all
@@ -90,7 +90,30 @@ enable=anomalous-backslash-in-string,
9090
xml-attribute-translatable,
9191
xml-deprecated-qweb-directive,
9292
xml-deprecated-tree-attribute,
93-
external-request-timeout
93+
external-request-timeout,
94+
bad-builtin-groupby,
95+
category-allowed,
96+
deprecated-name-get,
97+
deprecated-odoo-model-method,
98+
inheritable-method-lambda,
99+
inheritable-method-string,
100+
invalid-email,
101+
manifest-behind-migrations,
102+
manifest-data-duplicated,
103+
missing-odoo-file,
104+
no-raise-unlink,
105+
no-search-all,
106+
no-wizard-in-models,
107+
prohibited-method-override,
108+
prefer-env-translation,
109+
translation-format-interpolation,
110+
translation-format-truncated,
111+
translation-fstring-interpolation,
112+
translation-not-lazy,
113+
translation-too-few-args,
114+
translation-too-many-args,
115+
translation-unsupported-format,
116+
no-write-in-compute
94117

95118
[REPORTS]
96119
msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}

README.md

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=18.0)
3-
[![Pre-commit Status](https://github.com/OCA/rest-framework/actions/workflows/pre-commit.yml/badge.svg?branch=18.0)](https://github.com/OCA/rest-framework/actions/workflows/pre-commit.yml?query=branch%3A18.0)
4-
[![Build Status](https://github.com/OCA/rest-framework/actions/workflows/test.yml/badge.svg?branch=18.0)](https://github.com/OCA/rest-framework/actions/workflows/test.yml?query=branch%3A18.0)
5-
[![codecov](https://codecov.io/gh/OCA/rest-framework/branch/18.0/graph/badge.svg)](https://codecov.io/gh/OCA/rest-framework)
6-
[![Translation Status](https://translation.odoo-community.org/widgets/rest-framework-18-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/rest-framework-18-0/?utm_source=widget)
2+
[![Runboat](https://img.shields.io/badge/runboat-Try%20me-875A7B.png)](https://runboat.odoo-community.org/builds?repo=OCA/rest-framework&target_branch=19.0)
3+
[![Pre-commit Status](https://github.com/OCA/rest-framework/actions/workflows/pre-commit.yml/badge.svg?branch=19.0)](https://github.com/OCA/rest-framework/actions/workflows/pre-commit.yml?query=branch%3A19.0)
4+
[![Build Status](https://github.com/OCA/rest-framework/actions/workflows/test.yml/badge.svg?branch=19.0)](https://github.com/OCA/rest-framework/actions/workflows/test.yml?query=branch%3A19.0)
5+
[![codecov](https://codecov.io/gh/OCA/rest-framework/branch/19.0/graph/badge.svg)](https://codecov.io/gh/OCA/rest-framework)
6+
[![Translation Status](https://translation.odoo-community.org/widgets/rest-framework-19-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/rest-framework-19-0/?utm_source=widget)
77

88
<!-- /!\ do not modify above this line -->
99

@@ -17,17 +17,7 @@ rest-framework
1717

1818
[//]: # (addons)
1919

20-
Available addons
21-
----------------
22-
addon | version | maintainers | summary
23-
--- | --- | --- | ---
24-
[base_rest](base_rest/) | 18.0.1.1.1 | | Develop your own high level REST APIs for Odoo thanks to this addon.
25-
[base_rest_auth_api_key](base_rest_auth_api_key/) | 18.0.1.1.0 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Base Rest: Add support for the auth_api_key security policy into the openapi documentation
26-
[base_rest_pydantic](base_rest_pydantic/) | 18.0.1.0.2 | | Pydantic binding for base_rest
27-
[extendable](extendable/) | 18.0.1.0.2 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Extendable classes registry loader for Odoo
28-
[fastapi](fastapi/) | 18.0.1.3.0 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Odoo FastAPI endpoint
29-
[pydantic](pydantic/) | 18.0.1.0.1 | <a href='https://github.com/lmignon'><img src='https://github.com/lmignon.png' width='32' height='32' style='border-radius:50%;' alt='lmignon'/></a> | Utility addon to ease mapping between Pydantic and Odoo models
30-
[rest_log](rest_log/) | 18.0.1.0.1 | <a href='https://github.com/simahawk'><img src='https://github.com/simahawk.png' width='32' height='32' style='border-radius:50%;' alt='simahawk'/></a> | Track REST API calls into DB
20+
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
3121

3222
[//]: # (end addons)
3323

base_rest/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@
3333
"apispec",
3434
]
3535
},
36-
"installable": True,
36+
"installable": False,
3737
}

base_rest_auth_api_key/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"website": "https://github.com/OCA/rest-framework",
1313
"depends": ["base_rest", "auth_api_key"],
1414
"maintainers": ["lmignon"],
15-
"installable": True,
15+
"installable": False,
1616
"auto_install": True,
1717
"external_dependencies": {
1818
"python": [

0 commit comments

Comments
 (0)