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
Ensure the project_template module is installed
Install this module through the Odoo interface or by adding it to your addons path
Usage
Create a project and mark it as a template using the project_template module
Copy the project using the template functionality
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.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo-addon-project-template-origin-16.0.1.0.0.tar.gz.
File metadata
- Download URL: odoo-addon-project-template-origin-16.0.1.0.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33b65e7da5af03bdb3912d4932b2dddeaa482b98910a7708a865d0b855ba251d
|
|
| MD5 |
670ea206f60bed055a0b1ae256f86d69
|
|
| BLAKE2b-256 |
ffcb98f24dff10c1b691a94012f94daae5b116198bf82665a1f677cbd9340087
|
File details
Details for the file odoo_addon_project_template_origin-16.0.1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: odoo_addon_project_template_origin-16.0.1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eae62f87b22f5c346e58b7e060500b058696a44d0a74720544a92f1a91a81997
|
|
| MD5 |
2061463eda839da9589cbd9c8c18d15a
|
|
| BLAKE2b-256 |
2046898d8eaee6d665e02da2bc8dcd82eefd0de8a750c6a1ae5d5d3cbe80c959
|