> For the complete documentation index, see [llms.txt](https://docs.openg2p.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openg2p.org/1.2/developer-zone/repositories/openg2p-program/openg2p-program-documents.md).

# OpenG2P Program: Documents

### Module name

g2p\_program\_documents

### Module title

OpenG2P Program: Documents

### Technology base

Odoo

### Functionality

The "OpenG2P Program: Documents" module enhances the document management capabilities within the OpenG2P system. It introduces functionalities related to associating documents with program memberships and entitlements. This module is designed to provide a streamlined approach to document handling, enabling easy access and management of supporting documents.

### Key Features

1. **Association with Program Memberships:**
   * Documents can be associated with specific program memberships.
2. **Association with Entitlements:**
   * Supports the association of documents with entitlements.
3. **Preview Functionality:**
   * The module introduces a preview feature for documents.

### Design notes

The module extends the `g2p.program.entitlement.manager.default` model for smooth document copying. No specific configuration is needed, utilizing options from the `g2p_documents` module. Dependencies on `g2p_documents` and `g2p_programs` enhance document management and integrate seamlessly with program-related functionalities.

### Relationships with other entities

* **G2P Documents Module:** Enhances document management by leveraging functionalities from `g2p_documents`.
* **G2P Programs Module:** Integrates with program-related functionalities provided by `g2p_programs`, ensuring a cohesive system for program management and document association.

### Dependencies

The module depends on the following Odoo modules:

* `g2p_documents`
* `g2p_programs`

### User interface

* **Entitlement Form View:** Supporting documents are displayed with the new section named "Supporting Documents."
* **Program Membership Form:** Includes a dedicated "Documents" page.
* **Program View:** Features a "Documents" menu.

### Configuration

No specific configuration is required for this module. Configuration options are available in the `g2p_documents` module.

### Error codes

NA

### Source code

<https://github.com/OpenG2P/openg2p-program/tree/15.0-develop/g2p_program_documents>

### Installation

Standard odoo package installation


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.openg2p.org/1.2/developer-zone/repositories/openg2p-program/openg2p-program-documents.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
