https://github.com/medea-learner/contact_travel
A custom Odoo module named contact_travel that extends contact management by adding a related Voyage model, a smart button showing user-specific trips, and a reward level system based on total travel amounts.
https://github.com/medea-learner/contact_travel
erp odoo odoo-customization odoo-module odoo18 python3 res-partner reward-system smart-button trips-management xml
Last synced: 2 months ago
JSON representation
A custom Odoo module named contact_travel that extends contact management by adding a related Voyage model, a smart button showing user-specific trips, and a reward level system based on total travel amounts.
- Host: GitHub
- URL: https://github.com/medea-learner/contact_travel
- Owner: medea-learner
- Created: 2025-04-14T13:32:26.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-14T14:36:16.000Z (2 months ago)
- Last Synced: 2025-04-15T01:17:28.442Z (2 months ago)
- Topics: erp, odoo, odoo-customization, odoo-module, odoo18, python3, res-partner, reward-system, smart-button, trips-management, xml
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- Security: security/ir.model.access.csv
Awesome Lists containing this project
README
# contact_travel - Odoo Custom Module
## Overview
`contact_travel` is a custom Odoo module that adds travel tracking and a reward system to the standard Contacts app. It introduces a new model `Voyage` for tracking travel-related data and integrates it into the partner view with a smart button and computed fields.## Features
- `Voyage` model to track user travels with name, date, destination, amount.
- Smart button on partner form showing number of voyages.
- Reward level field (`Argent`, `Or`, `Platine`) based on travel total.
- Explanation message for the reward level.
- Filtered voyage list per contact.## Models
- `res.partner` (extended):
- `voyage_ids`, `voyage_count`, `reward_level`, `explanation`
- `contact_travel.voyage`:
- `name`, `departure_date`, `destination`, `partner_id`, `amount`## Installation
1. Copy the module to your Odoo `addons` directory.
2. Restart the server.
3. Activate developer mode.
4. Install the module `contact_travel`.## Usage
- Add some Contacts
- Add some Voyages.
- Go to a given contact.
- Open a contact form.
- Click the "Voyages de l'Utilisateur" button to see related voyages.
- Observe the reward level and explanation fields.## License
MIT