fix: remove duplicate itsulu_social_id field and fix CI addons path
- Remove duplicate BlogPost._inherit class from blog_schedule.py that redefined itsulu_social_id with invalid 'limit' parameter, causing 'unknown parameter limit' warnings on every Odoo startup - Use $CI_PROJECT_DIR instead of /builds/$CI_PROJECT_PATH for addons path in unit_tests — CI_PROJECT_DIR is the correct GitLab predefined variable that works across all runner types Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8148b9eb3a
commit
c6c912b809
2 changed files with 1 additions and 16 deletions
|
|
@ -58,7 +58,7 @@ unit_tests:
|
|||
- |
|
||||
odoo -d $TEMPLATE_DATABASE \
|
||||
-i base,website,website_blog,mail,itsulu_blog_publisher \
|
||||
--addons-path=/usr/lib/python3/dist-packages/odoo/addons,/builds/$CI_PROJECT_PATH/addons \
|
||||
--addons-path=/usr/lib/python3/dist-packages/odoo/addons,$CI_PROJECT_DIR/addons \
|
||||
--without-demo=all --stop-after-init --db_host=$POSTGRES_HOST --db_user=$POSTGRES_USER \
|
||||
--db_password=$POSTGRES_PASSWORD
|
||||
# Install test dependencies
|
||||
|
|
|
|||
|
|
@ -467,18 +467,3 @@ class BlogTag(models.Model):
|
|||
result_ids.append(new_tag.id)
|
||||
|
||||
return self.browse(result_ids)
|
||||
|
||||
|
||||
# ------------------------------------------------------------------ #
|
||||
# Extend blog.post with itsulu_social_id for email template access #
|
||||
# ------------------------------------------------------------------ #
|
||||
|
||||
class BlogPost(models.Model):
|
||||
_inherit = 'blog.post'
|
||||
|
||||
itsulu_social_id = fields.One2many(
|
||||
comodel_name='itsulu.blog.post.social',
|
||||
inverse_name='blog_post_id',
|
||||
string='Social Media Copy',
|
||||
limit=1,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue