# 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: 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:

```
GET https://docs.openg2p.org/1.3/pbms/developer-zone/odoo-modules/openg2p-program-documents.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
