Skip to content

Commit c2b89aa

Browse files
committed
[MIG] Create 19.0 from 18.0 for Odoo 19.0
1 parent edc21e4 commit c2b89aa

17 files changed

Lines changed: 103 additions & 53 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: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
exclude: |
22
(?x)
33
# NOT INSTALLABLE ADDONS
4+
^base_import_async/|
5+
^queue_job/|
6+
^queue_job_batch/|
7+
^queue_job_cron/|
8+
^queue_job_cron_jobrunner/|
9+
^queue_job_subscribe/|
10+
^test_queue_job/|
11+
^test_queue_job_batch/|
412
# END NOT INSTALLABLE ADDONS
513
# Files and folders generated by bots, to avoid loops
614
^setup/|/static/description/index\.html$|
@@ -39,11 +47,11 @@ repos:
3947
language: fail
4048
files: '[a-zA-Z0-9_]*/i18n/en\.po$'
4149
- repo: https://github.com/sbidoul/whool
42-
rev: v1.2
50+
rev: v1.3
4351
hooks:
4452
- id: whool-init
4553
- repo: https://github.com/oca/maintainer-tools
46-
rev: bf9ecb9938b6a5deca0ff3d870fbd3f33341fded
54+
rev: f9b919b9868143135a9c9cb03021089cabba8223
4755
hooks:
4856
# update the NOT INSTALLABLE ADDONS section above
4957
- id: oca-update-pre-commit-excluded-addons
@@ -52,15 +60,15 @@ repos:
5260
- id: oca-gen-addon-readme
5361
args:
5462
- --addons-dir=.
55-
- --branch=18.0
63+
- --branch=19.0
5664
- --org-name=OCA
5765
- --repo-name=queue
5866
- --if-source-changed
5967
- --keep-source-digest
6068
- --convert-fragments-to-markdown
6169
- id: oca-gen-external-dependencies
6270
- repo: https://github.com/OCA/odoo-pre-commit-hooks
63-
rev: v0.0.33
71+
rev: v0.1.6
6472
hooks:
6573
- id: oca-checks-odoo-module
6674
- id: oca-checks-po
@@ -79,8 +87,8 @@ repos:
7987
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
8088
language: node
8189
additional_dependencies:
82-
- "prettier@3.3.3"
83-
- "@prettier/plugin-xml@3.4.1"
90+
- "prettier@3.6.2"
91+
- "@prettier/plugin-xml@3.4.2"
8492
- repo: local
8593
hooks:
8694
- id: eslint
@@ -93,10 +101,11 @@ repos:
93101
types: [javascript]
94102
language: node
95103
additional_dependencies:
96-
- "eslint@9.12.0"
97-
- "eslint-plugin-jsdoc@50.3.1"
104+
- "eslint@9.35.0"
105+
- "eslint-plugin-jsdoc@57.0.8"
106+
- "globals@16.0.0"
98107
- repo: https://github.com/pre-commit/pre-commit-hooks
99-
rev: v4.6.0
108+
rev: v6.0.0
100109
hooks:
101110
- id: trailing-whitespace
102111
# exclude autogenerated files
@@ -105,8 +114,6 @@ repos:
105114
# exclude autogenerated files
106115
exclude: /README\.rst$|\.pot?$
107116
- id: debug-statements
108-
- id: fix-encoding-pragma
109-
args: ["--remove"]
110117
- id: check-case-conflict
111118
- id: check-docstring-first
112119
- id: check-executables-have-shebangs
@@ -118,13 +125,13 @@ repos:
118125
- id: mixed-line-ending
119126
args: ["--fix=lf"]
120127
- repo: https://github.com/astral-sh/ruff-pre-commit
121-
rev: v0.6.8
128+
rev: v0.13.0
122129
hooks:
123130
- id: ruff
124131
args: [--fix, --exit-non-zero-on-fix]
125132
- id: ruff-format
126133
- repo: https://github.com/OCA/pylint-odoo
127-
rev: v9.1.3
134+
rev: v9.3.15
128135
hooks:
129136
- id: pylint_odoo
130137
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 & 17 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/queue&target_branch=18.0)
3-
[![Pre-commit Status](https://github.com/OCA/queue/actions/workflows/pre-commit.yml/badge.svg?branch=18.0)](https://github.com/OCA/queue/actions/workflows/pre-commit.yml?query=branch%3A18.0)
4-
[![Build Status](https://github.com/OCA/queue/actions/workflows/test.yml/badge.svg?branch=18.0)](https://github.com/OCA/queue/actions/workflows/test.yml?query=branch%3A18.0)
5-
[![codecov](https://codecov.io/gh/OCA/queue/branch/18.0/graph/badge.svg)](https://codecov.io/gh/OCA/queue)
6-
[![Translation Status](https://translation.odoo-community.org/widgets/queue-18-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/queue-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/queue&target_branch=19.0)
3+
[![Pre-commit Status](https://github.com/OCA/queue/actions/workflows/pre-commit.yml/badge.svg?branch=19.0)](https://github.com/OCA/queue/actions/workflows/pre-commit.yml?query=branch%3A19.0)
4+
[![Build Status](https://github.com/OCA/queue/actions/workflows/test.yml/badge.svg?branch=19.0)](https://github.com/OCA/queue/actions/workflows/test.yml?query=branch%3A19.0)
5+
[![codecov](https://codecov.io/gh/OCA/queue/branch/19.0/graph/badge.svg)](https://codecov.io/gh/OCA/queue)
6+
[![Translation Status](https://translation.odoo-community.org/widgets/queue-19-0/-/svg-badge.svg)](https://translation.odoo-community.org/engage/queue-19-0/?utm_source=widget)
77

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

@@ -17,18 +17,7 @@ queue
1717

1818
[//]: # (addons)
1919

20-
Available addons
21-
----------------
22-
addon | version | maintainers | summary
23-
--- | --- | --- | ---
24-
[base_import_async](base_import_async/) | 18.0.1.0.0 | | Import CSV files in the background
25-
[queue_job](queue_job/) | 18.0.2.0.2 | <a href='https://github.com/guewen'><img src='https://github.com/guewen.png' width='32' height='32' style='border-radius:50%;' alt='guewen'/></a> | Job Queue
26-
[queue_job_batch](queue_job_batch/) | 18.0.1.0.0 | | Job Queue Batch
27-
[queue_job_cron](queue_job_cron/) | 18.0.1.1.1 | | Scheduled Actions as Queue Jobs
28-
[queue_job_cron_jobrunner](queue_job_cron_jobrunner/) | 18.0.1.0.1 | <a href='https://github.com/ivantodorovich'><img src='https://github.com/ivantodorovich.png' width='32' height='32' style='border-radius:50%;' alt='ivantodorovich'/></a> | Run jobs without a dedicated JobRunner
29-
[queue_job_subscribe](queue_job_subscribe/) | 18.0.1.0.0 | | Control which users are subscribed to queue job notifications
30-
[test_queue_job](test_queue_job/) | 18.0.2.0.0 | | Queue Job Tests
31-
[test_queue_job_batch](test_queue_job_batch/) | 18.0.1.0.0 | | Test Job Queue Batch
20+
This part will be replaced when running the oca-gen-addons-table script from OCA/maintainer-tools.
3221

3322
[//]: # (end addons)
3423

base_import_async/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
"base_import_async/static/src/xml/import_data_sidepanel.xml",
2121
],
2222
},
23-
"installable": True,
23+
"installable": False,
2424
"development_status": "Production/Stable",
2525
}

eslint.config.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
var globals = require('globals');
12
jsdoc = require("eslint-plugin-jsdoc");
23

34
const config = [{
@@ -16,6 +17,8 @@ const config = [{
1617
openerp: "readonly",
1718
owl: "readonly",
1819
luxon: "readonly",
20+
QUnit: "readonly",
21+
...globals.browser,
1922
},
2023

2124
ecmaVersion: 2024,
@@ -191,7 +194,7 @@ const config = [{
191194
},
192195

193196
}, {
194-
files: ["**/*.esm.js"],
197+
files: ["**/*.esm.js", "**/*test.js"],
195198

196199
languageOptions: {
197200
ecmaVersion: 2024,

0 commit comments

Comments
 (0)