[IMP] project_recognition_sync: detect revenue recognition date mismatch#1327
Draft
vivah-odoo wants to merge 1 commit into
Draft
[IMP] project_recognition_sync: detect revenue recognition date mismatch#1327vivah-odoo wants to merge 1 commit into
vivah-odoo wants to merge 1 commit into
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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.projectto retrieve revenue recognition journal entries associated with invoices generated from the linked sale order.Recognition Synchronization Detection
Added computed fields:
needs_recognition_syncrecognition_sync_messageThese 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:
date_start)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.