Skip to content

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.

Notifications You must be signed in to change notification settings

medea-learner/contact_travel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages