Commit Graph
2128 Commits
Author SHA1 Message Date
Janik von Rotz 5b1917e55c feat(task): add ripgrep installation and remove outdated MacOS instructions
- Add `ripgrep` to the list of installed packages for all supported OSes
- Remove obsolete MacOS-specific installation instructions from README.md
- Update installation messages for clarity and consistency
- Ensure `ripgrep` is included in dependency installations across platforms
2025-11-07 11:01:19 +01:00
Janik von Rotz 0bf782b78f feat(task): add aggregate-git-folders command and improve activate-venv handling
- Add new command `aggregate-git-folders` to run gitaggregate for provided repos.yaml
- Make `activate-venv` a default call for all commands by moving it to the main execution block
- Remove redundant `activate-venv` calls from individual functions
- Improve `activate-venv` function with better error handling and messaging
- Update CHANGELOG.md to reflect the changes
- Fix regex pattern in install-requirements for requirements.txt file detection
- Set default language for Odoo initialization via environment variable
- Remove deprecated `activate-venv` call from version command
2025-11-07 10:54:55 +01:00
Janik von Rotz e5e4607201 feat(task): add run-open-upgrade command and rename upgrade-odoo to run-enterprise-upgrade 2025-11-07 08:10:59 +01:00
Kurt Gisler bae671c80f New Snippets 2025-11-06 13:29:08 +01:00
Ulrich Kilian 5b54c711b7 feat: add submodule 2025-11-06 09:52:22 +01:00
Ulrich Kilian 9f5b58d3c3 add module 2025-11-05 17:17:06 +01:00
Ulrich Kilian 6f790b8aa0 fix(base): modules 2025-11-05 17:17:06 +01:00
Janik von Rotz a0382add31 feat(task): refactor taskfile template for improved consistency and readability
- Replace `#!/bin/bash` shebang with `#!/usr/bin/env bash` for portability
- Standardize conditional checks using `[[ ]]` instead of `[ ]`
- Remove `function` keyword from all function declarations
- Use `local` keyword for variables inside functions to limit scope
- Convert variable names to snake_case for consistency
- Improve quoting consistency by using single quotes where appropriate
- Enhance readability of help table generation and command descriptions
- Update string comparisons and loop conditions for better clarity
- Refactor build and publish functions to use local variables
- Improve error handling and output messages in publish function
- Standardize directory traversal and file checking logic in docs function
2025-11-05 17:04:47 +01:00
Janik von Rotz 4b1f9df214 feat(task): refactor migrate-module function and improve module path handling
- Remove unused Odoo version-specific migration logic
- Simplify module path extraction using dirname and basename
- Activate virtual environment before running odoo-module-migrator
- Improve clarity and maintainability of migration command execution
- Remove commented-out code blocks for better readability
2025-11-05 16:20:02 +01:00
Janik von Rotz be51a8263a feat(odoo): support multiline PYTHON_INSTALL and update test dependencies
- Extend `PYTHON_INSTALL` parsing to handle both comma and newline-separated formats
- Update documentation to reflect new multiline support for `PYTHON_INSTALL`
- Modify `install-python-packages` script to differentiate between input formats
- Update test case to use `prometheus-client,pyjwt` as example dependencies
- Improve flexibility for users specifying multiple Python packages via env var
2025-11-05 14:23:02 +01:00
Janik von Rotz 264a19e11b feat(odoo): update image tag to generic version and simplify documentation examples
- Replace specific image tags with generic `18.0` tag in README.md
- Simplify docker-compose and Dockerfile examples to use stable tag
- Improve clarity and maintainability of image customization instructions
2025-11-05 13:51:11 +01:00
Janik von Rotz 4a1edfa5fe feat(odoo): improve addons path resolution and update documentation
- Refactor `set-addons-path` script to use more robust manifest filtering
- Filter modules by Odoo version using `ripgrep` for better performance
- Ensure unique and sorted addon paths in final configuration
- Update `README.md` with detailed `pyproject.toml` example
- Document `repos.yml` usage for git-aggregator
- Improve code readability and maintainability in path resolution logic
2025-11-05 13:50:19 +01:00
Janik von Rotz fb6710256a feat(task): refactor git folder management functions and improve variable scoping
- Remove `function` keyword from all function declarations for consistency
- Use `local` keyword for variables inside functions to limit scope
- Replace `test -z` and `test -n` with `[[ -z ]]` and `[[ -n ]]` for better readability
- Standardize variable naming to snake_case
- Update template variables in `odoo_revision` file
- Update `.gitmodules.csv` with new commit references for submodules
2025-11-05 10:45:49 +01:00
Janik von Rotz 891cf98f16 feat(task): add get-module-checksum command and update admin password hashing
- Add new `get-module-checksum` command to compute module checksums using `addon_hash`
- Include `odoo-addon-module-auto-update` dependency for checksum functionality
- Add new `bin/get-module-checksum` script with fallback import handling
- Rename `generate-admin-passwd` command to `generate-admin-password` for clarity
- Update admin password hashing to use `bin/hash-password` script
- Update task help table and documentation to reflect new/changed commands
- Improve argument validation in `get-module-version` and `generate-admin-password` functions
2025-11-05 09:24:26 +01:00
Janik von Rotz 7b3a7ae558 feat(task): rename upgrade-module to migrate-module and update related documentation 2025-11-05 08:43:37 +01:00
Janik von Rotz e8072520e8 feat(task): remove setup-mail command and move script to Odoo image
- Removed `setup-mail` command from taskfile
- Moved `setup-mail` script to Odoo image scripts directory
- Updated Dockerfile to copy `setup-mail` from new location
- Updated README to reflect new location of `setup-mail` script
- Modified `init-db` script to conditionally execute mail setup only when database is initialized
- Added proper shebang line to `setup-mail` script
2025-11-05 08:35:56 +01:00
Janik von Rotz 017e681049 feat(task): update documentation and upgrade script 2025-11-05 08:35:56 +01:00
Kurt Gisler 5029d410f4 New Snippet 2025-11-04 18:37:36 +01:00
Janik von Rotz 7db12640cb feat(task): update documentation generation to use markdown templates and add development status
- Replace RST templates with MD templates for module documentation
- Move LICENSE copy step after OCA readme generation
- Add `development_status` field to module manifest template
- Rename `DESCRIPTION.rst`, `CONTRIBUTORS.rst`, and `USAGE.rst` to `.md` extensions
- Maintain existing documentation generation logic and structure
2025-11-04 11:20:31 +01:00
Janik von Rotz 95efe161eb feat(task): replace generate-module-docs with generate-oca-module-docs and update documentation generation
- Replace `generate-module-docs` command with `generate-oca-module-docs` for OCA-compliant README generation
- Remove redundant template copying logic from documentation generation
- Delete unused `templates/README.rst` file
- Update help table to reflect command changes
- Rename internal function `template-module-readme` for clarity
- Adjust module scaffolding logic accordingly
2025-11-04 11:09:05 +01:00
Janik von Rotz 91751b6a9b feat(task): add list-packages command and update install logic
- Add `list-packages` command to display installed Python packages
- Modify `install` task to exclude "python-ldap" from requirements installation
- Rename "Repo commands" section to "Setup commands" for clarity
- Update submodule hashes for multiple addons and Odoo core
2025-11-04 09:38:24 +01:00
Janik von Rotz 271b45c9c9 feat(workflow): update build-and-publish workflow to target 16.0 branch
- Change trigger branch from "18.0" to "16.0"
- Maintain existing job structure and environment variables
- Ensure consistent workflow execution for correct Odoo version
2025-11-04 09:17:52 +01:00
Janik von Rotz 2ba9d0bbb6 feat(task): improve module upload with dynamic versioning and naming
- Use `get-module-version` to dynamically determine module version
- Extract module name using `basename` for consistent file naming
- Update zip file path to include module name and version
- Adjust upload summary to use dynamic module name and version variables
- Maintain existing upload logic and Nextcloud integration
17.0.20251021 19.0.20251021
2025-11-03 11:35:06 +01:00
Janik von Rotz cd8d807a9d feat(odoo): update README with sorted paths and linked scripts
- Reorder image paths alphabetically for better readability
- Add GitHub links to all listed management scripts
- Maintain existing documentation structure and content accuracy
2025-11-03 10:29:28 +01:00
Janik von Rotz 3039bc07df feat(odoo): add script to install Python packages with uv and PyPi check 2025-11-03 10:09:00 +01:00
Janik von Rotz 06196ac8c8 feat(docker): update build command to accept output parameter and improve platform handling
- Change `build` task signature from `[folder][--push]` to `[folder][output]`
- Replace hardcoded `--push` flag with flexible `docker_output` variable
- Standardize platform variable naming to uppercase `PLATFORM`
- Maintain existing build logic and Docker image tagging behavior
2025-11-03 09:53:42 +01:00
Janik von Rotz 70b69876de feat(odoo): standardize log function calls in download-git-archive script
- Replace `log_entrypoint` with `log-entrypoint` for consistency
- Ensure uniform error and info logging throughout the script
- Maintain existing functionality and download logic
2025-11-03 09:50:52 +01:00
Janik von Rotz c2b17acbd2 feat(deps): add Odoo 19.0 support and update dependencies
- Add repo templates for Odoo 19.0 with comprehensive configuration
- Update README to include Odoo 19.0 in supported versions
- Simplify Odoo install command by removing redundant pip install step
- Add lxml_html_clean to requirements for HTML sanitization
- Add copier to requirements for repository templating
- Improve task install function with better OS-specific handling
- Update .gitignore patterns and tmp directory handling
- Set https://www.mint-system.ch/ as maintainer-tools args in pre-commit config
2025-11-01 16:53:22 +01:00
Janik von Rotz ac169401e4 revert(deps): switch back to requirements.txt and remove uv sync
- Reintroduce `requirements.txt` for Python dependencies
- Replace `uv sync --active` with `uv pip install -r requirements.txt` in install script
- Update venv directory references from `venv*` to `.venv*` in scripts and .gitignore
- Remove unused shell.nix and Nix-related documentation
- Adjust task template to use default `.venv` instead of versioned environments
2025-10-31 17:03:16 +01:00
Janik von Rotz 0eb7f72ae7 chore(ci): add GitHub Actions workflow for building and publishing with uv 2025-10-31 15:41:36 +01:00
Janik von Rotz 46156c7066 chore(deps): migrate from requirements.txt to pyproject.toml and uv lock
- Remove `requirements.txt` in favor of `pyproject.toml` dependencies
- Add `uv.lock` file for dependency resolution
- Update `task` script to use `uv sync --active` instead of `uv pip install -r requirements.txt`
- Replace `install-python-packages` script with `sync-python-project` in Odoo image
- Modify Python package installation logic in Odoo container to use `uv sync` with `pyproject.toml`
- Adjust test cases in `task` script to validate new Python project syncing
- Update documentation to reflect changes in Python dependency management
2025-10-31 13:44:13 +01:00
Janik von Rotz 35923edf7c chore(thirdparty): remove thirdparty folder and update documentation
- Delete `thirdparty/.gitkeep` file
- Remove `thirdparty/` volume mount from `compose.yml.template`
- Update `AGENTS.md` to remove reference to `thirdparty/` directory
- Revise `README.md` instructions to load modules from external folder instead of thirdparty
- Update `.env.template` example paths for `ODOO_ADDONS_PATH` to reflect external folder usage
2025-10-31 11:43:20 +01:00
Janik von Rotz d62a09404a chore(task): refactor variable declarations and exports for consistency
- Use direct export syntax for all variables
- Replace local variable assignments with exported variables
- Standardize variable naming to uppercase
- Remove redundant local declarations before export
- Improve code clarity and reduce verbosity in template generation functions
2025-10-31 11:21:53 +01:00
Kurt Gisler 10b1f6cf8d New Snippet 2025-10-31 10:04:55 +01:00
Kurt Gisler 6238c3e1a8 New Snippet 2025-10-31 10:02:30 +01:00
Janik von Rotz 3a79689245 Merge pull request #42 from Mint-System/chore-task-script-style-guide
chore(task): enforce bash coding conventions and modernize syntax
2025-10-31 09:43:08 +01:00
Janik von Rotz ae4b8fa66c chore(task): enforce bash coding conventions and modernize syntax
- Convert function declarations to use modern syntax without 'function' keyword
- Replace uppercase variable names with lowercase equivalents
- Use proper quoting for variables and command substitutions
- Replace legacy test conditions with modern [[ ]] syntax
- Update string literals to use single quotes where appropriate
- Improve readability and maintainability of bash scripts
2025-10-31 09:27:56 +01:00
Janik von Rotz 7c45c00f02 docs(agents): expand coding conventions and environment tooling guidelines 2025-10-30 17:06:33 +01:00
Janik von Rotz edb4822012 feat(images/odoo): optimize enterprise module download and update dependencies
- Refactor download-git-archive script to skip redundant downloads using .last_ref tracking
- Enforce bash coding conventions: lowercase variables, proper quoting, and modern conditionals
- Update enterprise, odoo, and themes submodule references
- Bump Python version from 3.10 to 3.11 for version 17.0
2025-10-30 14:19:34 +01:00
Janik von Rotz aaa23bde68 chore(odoo): refine database initialization and SSH key removal logic 2025-10-29 20:12:49 +01:00
Janik von Rotz e07cc568c1 chore(workflows): add name to checkout step in build workflow 2025-10-29 19:44:57 +01:00
Janik von Rotz 6e9f3afa2e docs(agents): simplify project structure documentation and remove outdated sections 2025-10-29 19:23:46 +01:00
Janik von Rotz 069648b278 feat(images/odoo): enforce bash coding conventions and improve git config handling
- Enforce bash coding conventions across all scripts as outlined in new AGENTS.md
- Convert local variables to lowercase and use proper quoting
- Update conditionals to use `[[ ... ]]` and remove `function` keyword
- Add support for setting git author name and email via env vars
- Improve SSH key handling and git operations
- Update documentation and changelog to reflect changes
2025-10-29 19:03:23 +01:00
Janik von Rotz 627f56c97b feat(task): export MODULE_SUMMARY and enhance OCA readme generation with org name 2025-10-29 17:17:05 +01:00
Janik von Rotz 5dc8f62cb5 feat(snippets): docs 2025-10-29 16:27:25 +01:00
Janik von Rotz e3b5828a7e feat(docs): update snippet inheritance and remove obsolete reports 2025-10-29 16:21:46 +01:00
Janik von Rotz cf8866c464 feat(docs): snippets 2025-10-29 16:18:45 +01:00
Janik von Rotz 71dff5dd68 feat(task): export PYTHONPATH and restore editable install flags 2025-10-29 14:47:16 +01:00
Janik von Rotz b1a0769e5a feat(odoo): update addons git repos and database version to 18.0 2025-10-28 17:58:30 +01:00
Janik von Rotz f565b36a85 feat(odoo): improve logging and path resolution in set-addons-path script 2025-10-28 17:48:41 +01:00