Skip to main content

Schedule blog posts publication date

Project description

Odoo Community Association

Blog Scheduled Publication

Beta License: AGPL-3 OCA/website Translate me on Weblate Try me on Runboat

This module allows you to schedule blog posts for automatic publication at a specific date and time.

Features

  • Scheduled Publication Date: Add a datetime field to schedule when posts should be published

  • Quick Publish Button: One-click immediate publication from the form view

  • Schedule Wizard: User-friendly wizard to set the publication date

  • Visual Feedback: Information banner displays scheduled date on the form

  • Smart Publication Logic: Automatically prevents immediate publication if a future date is set

  • Automatic Cron Job: Runs every hour to publish scheduled posts

  • Notification System: Sends notifications to blog followers when posts are published

  • Search Filters: Filter and group posts by publication or scheduled dates

Technical Details

  • Extends blog.post model with scheduling fields and methods

  • Includes a transient model blog.post.schedule.date for the scheduling wizard

  • Inherits and enhances form and search views from website_blog

  • The cron job uses _publish_scheduled_posts() method to process scheduled posts

  • Handles edge cases like setting past dates, clearing scheduled dates, and multiple record writes

Table of contents

Configuration

To use this module, you need to:

  1. Install the module from Apps menu

  2. Go to Website > Content > Blog Posts

  3. Create or edit a blog post

  4. In the “Publishing Options” section, you will find the “Scheduled Publication Date” field

  5. Set a future date and time when you want the post to be published

  6. Save the post

The post will be automatically published when the scheduled date and time arrives.

Note: The cron job that publishes scheduled posts runs every hour. If you need more frequent checks, you can adjust the cron job interval in Settings > Technical > Automation > Scheduled Actions.

Usage

Using the Form View

  1. Go to Website > Content > Blog Posts

  2. Open a blog post form

  3. You will see two buttons in the button box:

    • Publish: Click to publish the post immediately

    • Schedule: Click to open the scheduling wizard

  4. When clicking “Schedule”, a dialog will appear asking for the publication date

  5. Select the desired date and time, then click “Schedule”

  6. The post will display an information banner showing the scheduled publication date

Using the Schedule Type Field

In the blog post form, you can also set the “Scheduled Publication Date” field directly:

  • Set the date field to a future date and time

  • The post will automatically be scheduled for that time

  • The post will remain unpublished until the scheduled time

Viewing Scheduled Posts

Use the search filters to find scheduled posts:

  • Published: Filter to show only published posts

  • Not Published: Filter to show unpublished posts (including scheduled ones)

You can also group posts by:

  • Publication Date: Group by the actual publication date

  • Scheduled Publication Date: Group by the scheduled publication date

Automatic Publication

A cron job runs every hour to publish posts that have reached their scheduled time:

  • Posts are automatically published when the scheduled date/time arrives

  • Notifications are sent to blog followers when posts are published

  • The scheduled date is cleared after publication

Immediate Publication

If you need to publish a scheduled post immediately:

  1. Open the blog post form

  2. Click the “Publish” button

  3. Confirm the action in the dialog

  4. The post will be published immediately and the scheduled date will be cleared

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Escodoo

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainers:

marcelsavegnago CristianoMafraJunior

This module is part of the OCA/website project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_website_blog_scheduled_publication-18.0.1.0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_website_blog_scheduled_publication-18.0.1.0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9701d80e971233edaaa30ce96cb5d6d7891cf014b26cab0b4df0fd5b7079e9f5
MD5 8674ec7f8ade55ba9eb5eb9c31e0336e
BLAKE2b-256 2339407c8923b9edbe9a50634c18384ea02cf8f6855cad0731aa64654dd65592

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page