Skip to content

Commit

Permalink
finance/odoo: Remove obsolete patch file
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
alonsobsd committed Mar 27, 2024
1 parent 09ef57b commit 081d75e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
8 changes: 7 additions & 1 deletion finance/odoo/Makefile
Expand Up @@ -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
Expand All @@ -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>
11 changes: 0 additions & 11 deletions finance/odoo/files/patch-odoo_release.py

This file was deleted.

0 comments on commit 081d75e

Please sign in to comment.