- Add COPY conftest.py to Dockerfile so the odoo_env fixture is
available when pytest runs from /tmp/test (the WORKDIR)
- Rewrite 3 email template tests to use template.generate_email()
instead of querying mail.mail directly — generate_email() is
synchronous and reliable; mail.mail.subject rendering and res_id
are not guaranteed in Odoo 17 TransactionCase tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Creates conftest.py that installs the addon before tests run via the
pytest_configure hook. Also fixes Dockerfile symlink path for Odoo 17
(no version subdirectory).
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>
- Add comprehensive K8s test setup guide to CLAUDE.md (section 8)
- Document K8s architecture, Docker image requirements, and job execution
- Update ARCHITECTURE.md with CI/CD infrastructure details
- Fix Dockerfile to use python3 -m pip and proper non-root user handling
- Upgrade addon to Odoo 17.0 and update XML view syntax