Project Post-sale Automation
project_crm_postsale_automation · OCA/project
-
Security25/25No findings
-
Activity25/25Last human commit 5 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 17.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module automates the creation of recurring post-sale sales opportunities directly from your projects.
It allows account managers to set up automated schedules for customer follow-ups. Based on the selected timeline, the system automatically creates the corresponding leads in the CRM, pre-fills the responsible salesperson, assigns the customer, and formats the opportunity name dynamically based on the current period.
The scheduling engine supports multiple recurrence levels to adapt to any business cycle:
- Short-term tracking: Set up schedules based on a specific number of days or weeks.
- Calendar-aligned tracking: Schedule follow-ups by months, quarters, semesters, or years.
- Smart date adjustment: For monthly or annual cycles, you can pick a specific day of the month (1-31). If a month is shorter than your chosen day (like February or a 30-day month), the system automatically realigns and schedules it for the very last day of that month.
Internal instructions or specific notes written on the project are automatically copied into the description of every new lead. Additionally, seasonal tags are assigned to each opportunity to make pipeline filtering and sales reporting easier.
The automated generation process is designed to handle errors safely. If a single project has a configuration issue, the system logs the error and immediately skips to the next project, ensuring the daily routine for all other active projects finishes successfully.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_project_postsale_form |
project.project.postsale.form | project.project | form | Inherits project.edit_project |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
-
is_postsaleBooleandefault=Falsehelp='Technical field to identify leads generated automatically by the post-sale automation.'string='Is a Post-sale Lead' -
postsale_cycle_dateDatehelp='The logical date of the post-sale cycle this lead belongs to. Used to prevent duplicates.'string='Post-sale Cycle Date' -
project_idMany2one → project.projectcomodel_name='project.project'index=Truestring='Project'
No public methods.
-
postsale_activeBooleanstring='Activate Post-sale'tracking=True -
postsale_day_of_monthIntegerdefault=1help='Day of the month to generate the opportunity (1-31). If the month has fewer days, the last day of that month will be used.'string='Day of Month' -
postsale_generate_tagsBooleandefault=Truehelp="Automatically create and assign a tag like 'Q2 2026 - Postsale' to the lead."string='Generate CRM Tags' -
postsale_intervalIntegerdefault=1string='Interval' -
postsale_last_dateDatestring='Last Generation Date' -
postsale_lead_countIntegercompute='_compute_postsale_lead_count'string='Post-sale Leads' -
postsale_name_templateChardefault='{period_label} {year} - {project_name}'help='Allowed variables: {project_name}, {period_label}, {year}'string='Name Template' -
postsale_next_dateDatestring='Next Generation Date' -
postsale_next_executionsHtmlcompute='_compute_postsale_next_executions'string='Next Executions Preview' -
postsale_notesHtmlhelp='Internal notes or description that will propagate directly into the generated CRM Lead description.'string='Internal Notes' -
postsale_partner_idMany2one → res.partnercomodel_name='res.partner'help='Customer assigned to the generated leads. Defaults to the project customer.'string='Post-sale Customer' -
postsale_ruleSelectiondefault='months'string='Unit' args: [('days', 'Days'), ('weeks', 'Weeks'), ('months', 'Months'), ('quarters', 'Quarters'), ('semesters', 'Semesters'), ('years', 'Years')] -
postsale_user_idMany2one → res.userscomodel_name='res.users'domain="[('share', '=', False), ('sale_team_id', '!=', False)]"help='Internal user responsible for the generated post-sale leads (must have a Sales Team assigned).'ondelete='restrict'string='Post-sale Responsible'
-
action_generate_postsale_opportunity(self)Creates the opportunity. Called by Cron and Debug button. -
action_view_postsale_leads(self) -
write(self, vals)Override to log in chatter when activated/deactivated
Loading…