ppm_status_report_publish
Publish a draft status report by providing its report ID.
Instructions
Publish a draft status report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| report_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/qod_ppm_mcp/server.py:130-134 (handler)The handler function for the 'ppm_status_report_publish' tool. It calls the Odoo action 'action_publish' on model 'ppm.status.report' with the given report_id, then reads back and returns the report's name, state, and project_id.
@mcp.tool() def ppm_status_report_publish(report_id: int) -> dict[str, Any]: """Publish a draft status report.""" client().call_action("ppm.status.report", "action_publish", [report_id]) return _read_state("ppm.status.report", report_id, ["name", "state", "project_id"]) - src/qod_ppm_mcp/server.py:130-134 (registration)The tool is registered via the @mcp.tool() decorator on line 130, which registers it with the FastMCP server instance 'mcp'.
@mcp.tool() def ppm_status_report_publish(report_id: int) -> dict[str, Any]: """Publish a draft status report.""" client().call_action("ppm.status.report", "action_publish", [report_id]) return _read_state("ppm.status.report", report_id, ["name", "state", "project_id"])