Revert "[IMP] mgmtsystem_nonconformity: Show non conformities on all kind of views"#759
Revert "[IMP] mgmtsystem_nonconformity: Show non conformities on all kind of views"#759pablohmontenegro wants to merge 1 commit into
Conversation
…kind of views" This reverts commit aa68f36.
marcos-mendez
left a comment
There was a problem hiding this comment.
Automated Review -- Tests Failed
1. Root Cause of the Test Failure
The test failure is due to a database connection error, likely caused by the removal of frontend assets and action definitions that were required for proper UI interaction during testing. Specifically, the removal of open_mgmtsystem_nonconformity_thread_list action and associated JS components breaks expected behavior in test scenarios involving chatter topbar interactions.
2. Suggested Fix
- Re-add the
open_mgmtsystem_nonconformity_thread_listaction inmgmtsystem_nonconformity/views/mgmtsystem_nonconformity.xmlto ensure backward compatibility with existing UI logic. - Restore the JS component logic in
mgmtsystem_nonconformity/static/src/components/chatter_topbar/chatter_topbar.esm.jsor refactor to use a supported Odoo mechanism for handling chatter actions. - Ensure
res_modelandres_idfields are correctly populated when creating nonconformities from related models — this may require reintroducing logic to inferres_modelandres_idfrom context, or ensure that callers properly set them.
3. Additional Code Issues
- Missing context handling in
referencefield: Thereferencefield was changed from a default with context-aware logic to a simple field. If this field is used in views or reports, it may now be blank where it was previously auto-populated. - Removal of
MailThreadmixin: The removal of theMailThreadclass that addednon_conformity_countand modified views for chatter integration is likely to break UI rendering in some cases, especially for forms with chatter and viewer groups. - Potential regression in
res_modelandres_idhandling: Without the_default_reference()method or logic to setres_modelandres_id, creating nonconformities from related records may not work as expected unless explicitly handled by the calling code.
4. Test Improvements
To ensure robustness and catch regressions:
- Add a
TransactionCasetest to verify that nonconformities created from a related model (e.g.,project.project) correctly populateres_modelandres_id. - Add a
SavepointCasetest to ensure theopen_mgmtsystem_nonconformity_thread_listaction is functional and correctly filters nonconformities based onres_modelandres_id. - Add a test case for
referencefield behavior to ensure it is correctly set whenactive_modelandactive_idare in the context. - Test UI behavior: Add a test to simulate chatter topbar click and verify that it correctly opens the nonconformity list with proper context.
These tests should be tagged with @tag('post_install', 'functional') to ensure they run in the appropriate environment.
⏰ PR Aging Alert
This PR by @pablohmontenegro has been open for 117 days (3 months).
🔴 Zero human reviews in 117 days. This contributor invested their time to improve this module. The PSC owes them at least a response — even a "needs changes" is better than silence.
💤 No activity for 117 days. Has this PR been forgotten?
Every ignored PR is a contributor who might not come back. Review time matters. (OCA Aging Report)
Reciprocal Review Request
Hi everyone! I found some test failures on this PR and left detailed feedback above. I am happy to discuss or help debug. In the meantime, if any of you get a chance, I would appreciate a look at my open PR(s):
My open PRs across OCA:
- server-tools#3554 [MIG] datetime_formatter: Migration to 18.0
- server-tools#3548 [18.0][MIG] base_kanban_stage: Migration to 18.0
- hr-attendance#262 [16.0][ADD] Hr_attendance_idsecure: iDSecure (ControliD) attendance integration
- stock-logistics-workflow#2276 [16.0][ADD] stock_move_line_devaluation
- stock-logistics-workflow#2275 [16.0][ADD] Stock move line analytic account
- stock-logistics-workflow#2268 [16.0][ADD] stock_move_line_picking_partner
- purchase-workflow#2694 [16.0][IMP]Purchase workflow added to review state & exception fix
Reviewing each other's work helps the whole community move forward. Thank you!
Environment via OCA Neural Reviewer: Minikube + K8s Job + oca-ci/py3.10-odoo16.0 | Odoo 16.0
Automated review by OCA Neural Reviewer + qwen3-coder:30b
This reverts commit aa68f36.
Ticket 71104: revertimos este commit porque da error al entrar en diario de bancos donde hay extractos.
Este pr reemplaza a #571 ya que #571 estaba agregado a nuestra imagen pero acá https://adhoc.adhoc.ar/odoo/discuss/helpdesk.ticket/103330/helpdesk.ticket/103226/adhoc.module.repository/454 en la nota 17/11/2025 10:29 am Vib me dijo que daba conflicto ( https://adhoc.adhoc.ar/mail/message/13163157 ). Como el pr está cerrado y no se permite reabrirlo para corregir conflictos tuve que crear este nuevo pr con el revert.