Skip to content
Health
67/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity12/25
    In 2 Odoo series since 17.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.17 MB
Module directory on disk
Code analysis 0 migration notes 1 model 1 view 0 HTTP endpoints

Description

This module provides the functionality to display posts in the calendar view.

It is installed automatically together with Social Media Base, because the calendar is meant to be part of the standard experience of the posts: it adds the calendar view to the Posts menu without any configuration. Uninstalling it is permanent as long as Social Media Base is not installed again: neither an update of the apps list nor an upgrade of Social Media Base brings the calendar back, but installing Social Media Base again does.

Dependencies

Odoo dependencies
OCA/social:
odoo/odoo:
- utm
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 1

XML IDNameModelTypeStatus
social_post_view_calendar social.post.view.calendar social.post calendar New

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 1

New fields (2)
  • color Integer
    compute='_compute_color'
  • date_calendar Datetime
    compute='_compute_date_calendar' store=True
Public methods (1)
  • default_get(self, fields_list)
    @api.model
    Propose the day clicked on the calendar as the schedule date. The calendar places the events by ``date_calendar``, which is only a read-only summary of the dates of the post, so the date the user clicked cannot be written there: it is turned into the date the post is really sent, and the post is switched to ``schedule`` because that is the only mode where a date can be chosen. A day already past is dropped on purpose: *Social Media Base* refuses a schedule date behind the clock with a validation error, so keeping it would make the form unsavable. Leaving ``send_post_date`` out of the defaults lets ``_compute_send_post_date`` propose its usual one hour from now.

Loading…

Loading…