Before you answer saying "just set the view to inactive or delete it using developer mode in the UI" please read carefully to understand why that isn't the answer here.
It seems that Odoo Studio sometimes makes changes that are "destructive" in the sense that it overwrites records created by core modules. In my case, one example is the following record from an Odoo Studio export (please excuse the horrible rendering of text pasted from VS Code which I can't control):
<recordid="sale_enterprise.sale_report_action_dashboard_dashboard"model="ir.actions.act_window.view"context="{'studio': True}"> <fieldname="act_window_id"ref="sale_enterprise.sale_report_action_dashboard"/> <fieldname="multi"eval="False"/> <fieldname="sequence"eval="False"/> <fieldname="view_id"ref="sale_enterprise.sale_report_view_dashboard"/> <fieldname="view_mode">dashboardfield> record>
The original code for this record can be of course found in the "sale_enterprise" module at "report/sale_report_views.xml":
<recordid="sale_report_action_dashboard_dashboard"model="ir.actions.act_window.view"> <fieldname="sequence"eval="1"/> <fieldname="view_mode">dashboardfield> <fieldname="view_id"ref="sale_report_view_dashboard"/> <fieldname="act_window_id"ref="sale_report_action_dashboard"/> record>
There is no page in the Odoo UI (even in developer mode) that I am aware of where I can view records of type "ir.actions.act_window.view". So instead, I could use an Odoo Shell and just unlink it. But I'm pretty sure that just deleting the record is not the solution here. I don't want to remove the record—I was to revert it back to "factory" settings. I want to restore it to the state it was in before Odoo Studio modified it.
This need extends to other models modified by Odoo Studio. How do I "undo" the changes to the records made by Odoo Studio and return to the state of the data before Odoo Studio made any changes?
I tried deleting the records in the exported XML files and then importing the export back into Odoo, but that doesn't seem to have had any effect. The records still exist in "ir.model.data" with the "studio" field set to "True". What is the correct way to reset these modifications back to a "vanilla" state?