1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

finance/odoo: Remove obsolete patch file

- Odoo 17.x not support python < 3.10. You must define python=3.10 at
  DEFAULT_VERSIONS into /etc/make.conf if you want test it.

  DEFAULT_VERSIONS+= python=3.10
This commit is contained in:
Jose Alonso Cardenas Marquez 2024-03-27 03:18:36 -05:00
parent 09ef57be3c
commit 081d75ee71
No known key found for this signature in database
GPG Key ID: 335B9246BA5E30F4
2 changed files with 7 additions and 12 deletions

View File

@ -92,6 +92,12 @@ CONFLICTS= odoo14 odoo15 odoo16
ETCDIR= ${PREFIX}/etc/odoo
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 31000
IGNORE= odoo requires Python 3.10+
.endif
post-patch:
@${REINPLACE_CMD} -i "" -e 's|(index !== |(index == |g' \
${WRKSRC}/odoo/addons/web/static/src/core/network/download.js
@ -105,4 +111,4 @@ pre-install:
post-install:
@${INSTALL_SCRIPT} ${FILESDIR}/odoo.conf ${STAGEDIR}${ETCDIR}/odoo.conf.sample
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -1,11 +0,0 @@
--- odoo/release.py.orig 2024-02-22 22:03:20 UTC
+++ odoo/release.py
@@ -12,7 +12,7 @@ RELEASE_LEVELS_DISPLAY = {ALPHA: ALPHA,
# properly comparable using normal operators, for example:
# (6,1,0,'beta',0) < (6,1,0,'candidate',1) < (6,1,0,'candidate',2)
# (6,1,0,'candidate',2) < (6,1,0,'final',0) < (6,1,2,'final',0)
-version_info = ('saas~16', 4, 0, FINAL, 0, '')
+version_info = ('16', 4, 0, FINAL, 0, '')
version = '.'.join(str(s) for s in version_info[:2]) + RELEASE_LEVELS_DISPLAY[version_info[3]] + str(version_info[4] or '') + version_info[5]
series = serie = major_version = '.'.join(str(s) for s in version_info[:2])