You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nothing references it. CRReviewPanel and the spp_change_request_v2.CRReviewPanel template are not used by any XML view, JS registry (registry.category(...)), client action, field widget or Python file. It has been unmounted dead code since the initial export (4da8e30e, 2026-02-03); the three commits that touched it since were formatting and a hotkey removal.
Found while fixing #450: the panel still requested the removed rpc web service in setup(), and would have crashed the first time anyone mounted it. That PR removes only the unused useService("rpc") line and leaves the component in place, so this issue tracks the real decision.
Why it matters
The component ships in web.assets_backend for every backend user (static/src/components/**/* in the manifest), so its JS, template and SCSS are downloaded and compiled for nothing.
It duplicates approval actions (action_approve, _do_request_revision, _do_reject) that the form view already exposes, so any change to that flow has a second, untested copy to keep in sync. It calls two underscore-prefixed model methods (_do_request_revision, _do_reject) directly over RPC, which is not a pattern we want copied.
Remove it (manifest globs already pick up the directory, so deleting the three files is the whole change; bump + HISTORY entry). Recommended unless someone has a plan for it.
Wire it in as the review UI it was designed to be (client action or form-embedded widget), with a tour or e2e test that mounts it, and stop calling underscore-prefixed methods over RPC.
Summary
spp_change_request_v2/static/src/components/review_panel/(review_panel.js276 lines,review_panel.xml317 lines,review_panel.scss50 lines; 643 lines total) definesCRReviewPanel, a split-pane change-request review component with approve / request-changes / decline actions and multi-tier approval display.Nothing references it.
CRReviewPaneland thespp_change_request_v2.CRReviewPaneltemplate are not used by any XML view, JS registry (registry.category(...)), client action, field widget or Python file. It has been unmounted dead code since the initial export (4da8e30e, 2026-02-03); the three commits that touched it since were formatting and a hotkey removal.Found while fixing #450: the panel still requested the removed
rpcweb service insetup(), and would have crashed the first time anyone mounted it. That PR removes only the unuseduseService("rpc")line and leaves the component in place, so this issue tracks the real decision.Why it matters
web.assets_backendfor every backend user (static/src/components/**/*in the manifest), so its JS, template and SCSS are downloaded and compiled for nothing.action_approve,_do_request_revision,_do_reject) that the form view already exposes, so any change to that flow has a second, untested copy to keep in sync. It calls two underscore-prefixed model methods (_do_request_revision,_do_reject) directly over RPC, which is not a pattern we want copied.Options
Refs
spp_change_request_v2/__manifest__.pyassets→spp_change_request_v2/static/src/components/**/*