1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

finance/odoo: update to 16.0.20230804

- Add commit date to PORTREVISION
- Add missing dependency
- Fix issues with recent version of Werkzeug 2.3.x
- Fix typo into pkg-message
- Other minor modifications

PR:		272379 272794
Reported by:	Jens Grassel <freebsd-ports  at_ jan0sch.de>, yzrh _at_ noema.org, fgarcia _at koali.es
This commit is contained in:
Jose Alonso Cardenas Marquez 2023-08-05 00:52:08 -05:00
parent 056db3d877
commit 13e5bae111
5 changed files with 4745 additions and 220 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= odoo
PORTVERSION= 16.0
PORTVERSION= 16.0.20230804
CATEGORIES= finance www
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -10,7 +10,7 @@ WWW= https://www.odoo.com
LICENSE= LGPL3
USE_GITHUB= yes
GH_TAGNAME= 0a766557bcf95e0b9fc3363103fce8277b0fa835
GH_TAGNAME= b46544d3cbd4116f69a03064c61798cef8435c5b
LIB_DEPENDS= libxml2.so:textproc/libxml2 \
libxslt.so:textproc/libxslt \
@ -54,6 +54,7 @@ RUN_DEPENDS= wkhtmltopdf>0:converters/wkhtmltopdf \
${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}libsass>0:www/py-libsass@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests-file>0:www/py-requests-file@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}werkzeug>0:www/py-werkzeug@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}secure-cookie>0:www/py-secure-cookie@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}XlsxWriter>=0:textproc/py-xlsxwriter@${PY_FLAVOR} \
@ -87,18 +88,10 @@ CONFLICTS= odoo14 odoo15
ETCDIR= ${PREFIX}/etc/odoo
post-patch:
@${REINPLACE_CMD} -i "" -e 's|werkzeug.url_quote_plus|werkzeug.urls.url_quote_plus|g' \
${WRKSRC}/odoo/addons/base/models/ir_ui_view.py
@${REINPLACE_CMD} -i "" -e 's|werkzeug.url_unquote_plus|werkzeug.urls.url_quote_plus|g' \
-e 's|.NumberConverter|.converters.NumberConverter|g' \
${WRKSRC}/odoo/addons/base/models/ir_http.py \
${WRKSRC}/odoo/addons/http_routing/models/ir_http.py
@${REINPLACE_CMD} -i "" -e 's|from werkzeug import url_encode|from werkzeug.urls import url_encode|g' \
${WRKSRC}/odoo/addons/mail/models/mail_thread.py \
${WRKSRC}/odoo/addons/hr/models/hr_employee.py
@${REINPLACE_CMD} -i "" -e 's|(index !== |(index == |g' \
${WRKSRC}/odoo/addons/web/static/src/legacy/js/libs/content-disposition.js \
${WRKSRC}/odoo/addons/web/static/src/core/network/download.js
@${REINPLACE_CMD} -i "" -e 's|charset =|_charset =|g' ${WRKSRC}/odoo/http.py
post-extract:
@cd ${WRKSRC}/addons/ && ${MV} * ${WRKSRC}/odoo/addons/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1668642684
SHA256 (odoo-odoo-16.0-0a766557bcf95e0b9fc3363103fce8277b0fa835_GH0.tar.gz) = 85574d017294467beb0d8933bc02375cde1991baf43e2b75958d041ca855c29f
SIZE (odoo-odoo-16.0-0a766557bcf95e0b9fc3363103fce8277b0fa835_GH0.tar.gz) = 141506848
TIMESTAMP = 1691214238
SHA256 (odoo-odoo-16.0.20230804-b46544d3cbd4116f69a03064c61798cef8435c5b_GH0.tar.gz) = 86e044f9d79fa42e0c718a33701dfb09539c1323b9efd8e0e5a66bc19a789421
SIZE (odoo-odoo-16.0.20230804-b46544d3cbd4116f69a03064c61798cef8435c5b_GH0.tar.gz) = 156000245

View File

@ -4,4 +4,4 @@ db_host = localhost
db_port = 5432
db_user = odoouser
db_password = odoopwd
;addons_path = /usr/local/lib/python3.7/site-packages/odoo/addons/
;addons_path = /usr/local/lib/python3.9/site-packages/odoo/addons/

View File

@ -37,7 +37,7 @@ Odoo 16 ERP was installed
7) If you want securizing Odoo access from web browser (https), you can use a
web server like proxy. Look at following documentation:
https://www.odoo.com/documentation/15.0/administration/install/deploy.html#https
https://www.odoo.com/documentation/16.0/administration/install/deploy.html#https
EOM
}

File diff suppressed because it is too large Load Diff