Skip to content

Commit c16a68b

Browse files
committed
[MIG] Adapt to 19.0
1 parent b50faf2 commit c16a68b

13 files changed

Lines changed: 211 additions & 218 deletions

.copier-answers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ odoo_listdb: false
2929
odoo_listdb_staging: true
3030
odoo_oci_image: ghcr.io/pyxiris/man18
3131
odoo_proxy: traefik
32-
odoo_version: 18.0
32+
odoo_version: 19.0
3333
paths_with_crawlers:
3434
- /web/image/website
3535
paths_without_crawlers:

.pre-commit-config.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ repos:
3131
- --addons-dir
3232
- odoo/custom/src/private
3333
- repo: https://github.com/OCA/odoo-pre-commit-hooks
34-
rev: v0.0.33
34+
rev: v0.1.6
3535
hooks:
3636
- id: oca-checks-odoo-module
3737
- id: oca-checks-po
3838
args: ["--fix"]
3939
- repo: https://github.com/astral-sh/ruff-pre-commit
40-
rev: v0.6.8
40+
rev: v0.13.0
4141
hooks:
4242
- id: ruff
4343
args: [--fix, --exit-non-zero-on-fix]
@@ -54,15 +54,12 @@ repos:
5454
- prettier@2.7.1
5555
- "@prettier/plugin-xml@v2.2.0"
5656
- repo: https://github.com/pre-commit/pre-commit-hooks
57-
rev: v4.6.0
57+
rev: v6.0.0
5858
hooks:
5959
- id: trailing-whitespace
6060
- id: end-of-file-fixer
6161
- id: debug-statements
6262

63-
- id: fix-encoding-pragma
64-
args: ["--remove"]
65-
6663
- id: check-case-conflict
6764
- id: check-docstring-first
6865
- id: check-executables-have-shebangs
@@ -74,7 +71,7 @@ repos:
7471
- id: mixed-line-ending
7572
args: ["--fix=lf"]
7673
- repo: https://github.com/OCA/pylint-odoo
77-
rev: v9.1.3
74+
rev: v9.3.15
7875
hooks:
7976
- id: pylint_odoo
8077
name: pylint with optional checks
@@ -104,5 +101,5 @@ repos:
104101
- --convert-fragments-to-markdown
105102
- --gen-html
106103
- --if-fragments-changed
107-
- --branch=18.0
104+
- --branch=19.0
108105
- --template-filename=.module-readme.rst.j2

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manifest-required-authors=Liam Noonan
88
manifest-required-keys=license
99
manifest-deprecated-keys=description,active
1010
license-allowed=AGPL-3,GPL-2,GPL-2 or any later version,GPL-3,GPL-3 or any later version,LGPL-3,OPL-1,OEEL-1
11-
valid-odoo-versions=18.0
11+
valid-odoo-versions=19.0
1212

1313
[MESSAGES CONTROL]
1414
disable=all

.pylintrc-mandatory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ score=n
66
readme-template-url="https://github.com/OCA/maintainer-tools/blob/master/template/module/README.rst"
77
manifest-required-keys=license
88
manifest-deprecated-keys=active
9-
valid-odoo-versions=18.0
9+
valid-odoo-versions=19.0
1010

1111
[MESSAGES CONTROL]
1212
disable=all

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Doodba deployment](https://img.shields.io/badge/deployment-doodba-informational)](https://github.com/Tecnativa/doodba)
22
[![Last template update](https://img.shields.io/badge/last%20template%20update-v9.0.5-informational)](https://github.com/Tecnativa/doodba-copier-template/tree/v9.0.5)
3-
[![Odoo](https://img.shields.io/badge/odoo-v18.0-a3478a)](https://github.com/odoo/odoo/tree/18.0)
3+
[![Odoo](https://img.shields.io/badge/odoo-v19.0-a3478a)](https://github.com/odoo/odoo/tree/19.0)
44
[![Deployment data](https://img.shields.io/badge/%F0%9F%8C%90%20prod-manmanufacturing.com-green)](http://manmanufacturing.com)
55
[![Deployment data](https://img.shields.io/badge/%E2%9A%92%20demo-test.manmanufacturing.com-yellow)](http://test.manmanufacturing.com)
66
[![LGPL-3.0-or-later license](https://img.shields.io/badge/license-LGPL--3.0--or--later-success})](LICENSE)

common.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ version: "2.4"
22

33
services:
44
odoo:
5-
image: ghcr.io/pyxiris/man18:18.0
5+
image: ghcr.io/pyxiris/man18:19.0
66
build:
77
context: ./odoo
88
args:
99
DB_VERSION: "17"
10-
ODOO_VERSION: "18.0"
10+
ODOO_VERSION: "19.0"
1111
UID: "${UID:-1000}"
1212
GID: "${GID:-1000}"
1313
environment:

devel.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ services:
99
default:
1010
public:
1111
ports:
12-
- "127.0.0.1:${PORT_PREFIX:-18}899:6899"
13-
- "127.0.0.1:${PORT_PREFIX:-18}069:8069"
14-
- "127.0.0.1:${PORT_PREFIX:-18}072:8072"
12+
- "127.0.0.1:${PORT_PREFIX:-19}899:6899"
13+
- "127.0.0.1:${PORT_PREFIX:-19}069:8069"
14+
- "127.0.0.1:${PORT_PREFIX:-19}072:8072"
1515
environment:
1616
PORT: "6899 8069 8072"
1717
TARGET: odoo
@@ -41,7 +41,7 @@ services:
4141
PYTHONOPTIMIZE: ""
4242
PYTHONPATH: /opt/odoo/custom/src/odoo
4343
SMTP_PORT: "1025"
44-
WDB_WEB_PORT: "${PORT_PREFIX:-18}984"
44+
WDB_WEB_PORT: "${PORT_PREFIX:-19}984"
4545
# To avoid installing demo data export DOODBA_WITHOUT_DEMO=all
4646
WITHOUT_DEMO: "${DOODBA_WITHOUT_DEMO-false}"
4747
volumes:
@@ -63,7 +63,7 @@ services:
6363
- --limit-time-real-cron=9999999
6464
- --limit-time-real=9999999
6565
- --workers=0
66-
- --dev=reload,qweb,werkzeug,xml
66+
- --dev=reload,qweb,werkzeug,xml,access
6767
- --from-filter=manmanufacturing.com
6868

6969
db:
@@ -78,7 +78,7 @@ services:
7878
image: docker.io/sosedoff/pgweb
7979
networks: *public
8080
ports:
81-
- "127.0.0.1:${PORT_PREFIX:-18}081:8081"
81+
- "127.0.0.1:${PORT_PREFIX:-19}081:8081"
8282
environment:
8383
DATABASE_URL: postgres://odoo:odoopassword@db:5432/devel?sslmode=disable
8484
depends_on:
@@ -90,7 +90,7 @@ services:
9090
service: smtpfake
9191
networks: *public
9292
ports:
93-
- "127.0.0.1:${PORT_PREFIX:-18}025:8025"
93+
- "127.0.0.1:${PORT_PREFIX:-19}025:8025"
9494
environment:
9595
MP_SMTP_RELAY_HOST: &mailserver mailserver
9696

@@ -127,7 +127,7 @@ services:
127127
image: docker.io/kozea/wdb
128128
networks: *public
129129
ports:
130-
- "127.0.0.1:${PORT_PREFIX:-18}984:1984"
130+
- "127.0.0.1:${PORT_PREFIX:-19}984:1984"
131131
# HACK https://github.com/Kozea/wdb/issues/136
132132
init: true
133133

odoo/custom/src/addons.yaml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
./web:
22
- web_responsive
3-
- web_refresher
4-
- web_theme_classic
5-
- web_copy_confirm
3+
# - web_refresher
4+
# - web_theme_classic
5+
# - web_copy_confirm
66
- web_favicon
7-
- web_pivot_computed_measure
8-
- web_remember_tree_column_width
9-
- web_timeline
10-
- web_tree_many2one_clickable
11-
- web_widget_domain_editor_dialog
12-
- web_widget_open_tab
7+
# - web_pivot_computed_measure
8+
# - web_remember_tree_column_width
9+
# - web_timeline
10+
# - web_tree_many2one_clickable
11+
# - web_widget_domain_editor_dialog
12+
# - web_widget_open_tab
1313
- web_dark_mode
1414

15-
./spreadsheet:
16-
- spreadsheet_oca
17-
- spreadsheet_dashboard
15+
# ./spreadsheet:
16+
# - spreadsheet_oca
17+
# - spreadsheet_dashboard
1818

19-
./mail:
20-
- mail_composer_cc_bcc
21-
- mail_tracking
22-
- mail_attach_existing_attachment
23-
- mail_attach_existing_attachment_account
24-
- mail_autosubscribe
25-
- mail_debrand
26-
- mail_optional_follower_notification
27-
- mail_partner_opt_out
28-
- mail_restrict_follower_selection
29-
# ./exp-odoo:
30-
# - mail_send_single_message
19+
# ./mail:
20+
# - mail_composer_cc_bcc
21+
# - mail_tracking
22+
# - mail_attach_existing_attachment
23+
# - mail_attach_existing_attachment_account
24+
# - mail_autosubscribe
25+
# - mail_debrand
26+
# - mail_optional_follower_notification
27+
# - mail_partner_opt_out
28+
# - mail_restrict_follower_selection

odoo/custom/src/repos.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
merges:
1515
- ocb $ODOO_VERSION
1616
- odoo $ODOO_VERSION
17-
- odoo refs/pull/241583/head # Backport improvements to the odoo-mailgate script in 19.0 to 18.0
1817

1918
./web:
2019
defaults:
@@ -25,14 +24,13 @@
2524
target: agg
2625
merges:
2726
- oca-web $ODOO_VERSION
28-
- px-web 18.0-web_responsive
29-
- px-web 18.0-web_theme_classic
27+
- px-web 19.0-mig-web_dark_mode
3028

31-
./mail:
32-
defaults:
33-
depth: $DEPTH_MERGE
34-
remotes:
35-
oca-mail: https://github.com/OCA/mail.git
36-
target: agg
37-
merges:
38-
- oca-mail $ODOO_VERSION
29+
# ./mail:
30+
# defaults:
31+
# depth: $DEPTH_MERGE
32+
# remotes:
33+
# oca-mail: https://github.com/OCA/mail.git
34+
# target: agg
35+
# merges:
36+
# - oca-mail $ODOO_VERSION

0 commit comments

Comments
 (0)