mirror of
https://gitlab.com/itsulu-odoo/itsulu-blog-publisher.git
synced 2026-05-30 23:41:23 +00:00
fix: symlink addon into Odoo's addons path for pytest-odoo module registration
pytest-odoo requires models to be under odoo.addons.* to register properly. Create /var/lib/odoo/addons/17.0 and symlink the addon there. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
829ce90e5f
commit
fb97becedc
1 changed files with 3 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ RUN python3 -m pip install --no-cache-dir \
|
|||
RUN mkdir -p /mnt/extra-addons && chmod 777 /mnt/extra-addons
|
||||
COPY --chown=odoo:odoo addons/itsulu_blog_publisher /mnt/extra-addons/itsulu_blog_publisher
|
||||
|
||||
# Symlink addon into Odoo's default addons directory so pytest-odoo can find it
|
||||
RUN mkdir -p /var/lib/odoo/addons/17.0 && ln -s /mnt/extra-addons/itsulu_blog_publisher /var/lib/odoo/addons/17.0/itsulu_blog_publisher
|
||||
|
||||
# Set working directory to a temp location for test running
|
||||
WORKDIR /tmp/test
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue