Skip to content

[IMP] project_recognition_sync: detect revenue recognition date mismatch#1327

Draft
vivah-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-project-recognition-sync-vivah
Draft

[IMP] project_recognition_sync: detect revenue recognition date mismatch#1327
vivah-odoo wants to merge 1 commit into
odoo:19.0from
odoo-dev:19.0-project-recognition-sync-vivah

Conversation

@vivah-odoo
Copy link
Copy Markdown

Summary

This PR introduces the initial implementation of the Project Recognition Sync feature.

The objective is to detect when a project's planned date is no longer aligned with the revenue recognition journal entries generated from invoices related to the project's sale order.

Implemented

Recognition Entry Retrieval

Added a helper method on project.project to retrieve revenue recognition journal entries associated with invoices generated from the linked sale order.

Recognition Synchronization Detection

Added computed fields:

  • needs_recognition_sync
  • recognition_sync_message

These fields determine whether the project's planned date differs from the recognition dates of the generated journal entries.

Warning Banner

Extended the project form view to display a warning message whenever a mismatch is detected between:

  • Project planned date (date_start)
  • Revenue recognition entry dates

The warning helps users identify projects that may require revenue recognition adjustments.

Current Flow

Project
→ Sale Order
→ Invoice
→ Revenue Recognition Entries
→ Date Comparison
→ Warning Banner

Notes

This PR only introduces the detection layer and user notification.

The synchronization action and wizard integration will be implemented in a follow-up change.

- Add recognition sync fields on project
- Retrieve recognition journal entries from invoices
- Detect mismatch between project date and recognition dates
- Show warning banner on project form
@robodoo
Copy link
Copy Markdown

robodoo commented Jun 5, 2026

Pull request status dashboard

@vivah-odoo vivah-odoo marked this pull request as draft June 5, 2026 07:07
@vivah-odoo vivah-odoo requested a review from mash-odoo June 5, 2026 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants