Setup:
- K8s test job with init container auto-installing itsulu_blog_publisher
- Dockerfile simplified: symlink addon to /var/lib/odoo/addons, no conftest needed
- Postgres init container creates fresh test DB for each job
Fixes:
- Disabled website_blog_publisher_templates.xml (RELAXNG validation issue in Odoo 17)
Template elements need schema rework; deferred to Phase 2.5
- Fixed XML entity escaping in retained template code (&& → &&)
Test Result:
✅ TestBlogTopicQueueManagement::test_topic_is_created_with_pending_state PASSED
Model itsulu.blog.topic registers correctly
Default state='pending' works as expected
Next:
- Run all 7 blog_topic tests to ensure complete coverage
- GREEN phase: implement remaining model methods/fields
- REFACTOR: pre-commit check
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
62 lines
2.4 KiB
Python
62 lines
2.4 KiB
Python
# -*- coding: utf-8 -*-
|
|
{
|
|
'name': 'ITSulu Blog Publisher',
|
|
'version': '17.0.1.0.0',
|
|
'summary': 'AI-powered blog post generation with multi-LLM support, scheduling, and social media copy',
|
|
'description': """
|
|
ITSulu Blog Publisher
|
|
=====================
|
|
Replaces the CoWork/Windows VM blog pipeline with a fully server-side Odoo addon.
|
|
|
|
Features
|
|
--------
|
|
* On-demand blog generation via backend button or website toolbar
|
|
* Three configurable daily schedule slots (morning / afternoon / evening)
|
|
* Multi-LLM provider support: Anthropic Claude, OpenAI, Google Gemini, Ollama / Open WebUI
|
|
* Independent image generation provider (DALL·E, etc.)
|
|
* Single structured-JSON LLM call per post — lowest possible token usage
|
|
* Auto-populates all SEO fields (meta title, description, keywords, tags)
|
|
* Per-schedule / per-run social media platform enable/disable
|
|
(X/Twitter A+B, BlueSky A+B, Fediverse/Mastodon, LinkedIn)
|
|
* Notification email with social copy ready to paste — matches ITSulu Insights template
|
|
* Topic queue from ITSulu/company services — priority-ordered
|
|
* Editable system prompt and user prompt templates
|
|
* Full generation log with token usage, duration, error messages, and Retry button
|
|
* Supports Anthropic Pro user account API tokens (claude.ai/api)
|
|
""",
|
|
'author': 'ITSulu',
|
|
'website': 'https://itsulu.com',
|
|
'category': 'Website/Blog',
|
|
'license': 'LGPL-3',
|
|
'depends': [
|
|
'base',
|
|
'base_setup',
|
|
'mail',
|
|
'website',
|
|
'website_blog',
|
|
],
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'data/mail_template_data.xml',
|
|
'data/ir_cron_data.xml',
|
|
'views/generate_now_wizard_views.xml',
|
|
'views/blog_topic_views.xml',
|
|
'views/blog_schedule_views.xml',
|
|
'views/blog_generation_log_views.xml',
|
|
'views/blog_post_social_views.xml',
|
|
# 'views/website_blog_publisher_templates.xml', # TODO: Fix RELAXNG validation for Odoo 17 template syntax
|
|
'views/menu_views.xml',
|
|
],
|
|
'assets': {
|
|
'web.assets_backend': [
|
|
'itsulu_blog_publisher/static/src/css/blog_publisher.css',
|
|
],
|
|
'website.assets_frontend': [
|
|
'itsulu_blog_publisher/static/src/css/website_blog_publisher.css',
|
|
],
|
|
},
|
|
'installable': True,
|
|
'application': True,
|
|
'auto_install': False,
|
|
'images': ['static/description/banner.png'],
|
|
}
|