Skip to main content

Track project template origin in project copies

Project description

This module extends the project management functionality by tracking the origin template of projects that are created from templates.

Features

  • Template Origin Tracking: Adds a project_template_id field to track which template a project was copied from

  • Automatic Template Reference: When copying a project, the template origin is automatically preserved

  • Settings Tab Integration: Displays the template origin in the project’s settings tab as a read-only field

Technical Details

Dependencies

  • project_template: This module depends on the project_template module for template functionality

Models

Project

Extends project.project with:

  • project_template_id (Many2one): Reference to the project template this project was copied from

Methods

  • copy(): Overrides the copy method to preserve template origin when copying projects

Views

  • project.xml: Adds the project_template_id field to the settings tab of the project form view

Installation

  1. Ensure the project_template module is installed

  2. Install this module through the Odoo interface or by adding it to your addons path

Usage

  1. Create a project and mark it as a template using the project_template module

  2. Copy the project using the template functionality

  3. The copied project will show the original template in the “Project Template Origin” field in the settings tab

Testing

Run the test suite:

python -m pytest project_template_origin/tests/

The module includes comprehensive tests covering:

  • Template origin field functionality

  • Project copying with template preservation

  • Field access and display

License

This module is licensed under the AGPL-3 license, same as the Odoo project_template module.

Authors

Project details


Download files

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

Source Distribution

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-project-template-origin-16.0.1.0.0.tar.gz.

File metadata

File hashes

Hashes for odoo-addon-project-template-origin-16.0.1.0.0.tar.gz
Algorithm Hash digest
SHA256 33b65e7da5af03bdb3912d4932b2dddeaa482b98910a7708a865d0b855ba251d
MD5 670ea206f60bed055a0b1ae256f86d69
BLAKE2b-256 ffcb98f24dff10c1b691a94012f94daae5b116198bf82665a1f677cbd9340087

See more details on using hashes here.

File details

Details for the file odoo_addon_project_template_origin-16.0.1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_project_template_origin-16.0.1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 eae62f87b22f5c346e58b7e060500b058696a44d0a74720544a92f1a91a81997
MD5 2061463eda839da9589cbd9c8c18d15a
BLAKE2b-256 2046898d8eaee6d665e02da2bc8dcd82eefd0de8a750c6a1ae5d5d3cbe80c959

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