I encountered the following error while adding an action in Tryton:
Exception: Error in tag record model ir.action.act_window with id health.act_open_patient_evaluation.
I only added the following code in my XML file:
<record model="ir.action.act_window" id="act_open_patient_evaluation">
<field name="name">Open Patient Evaluation</field>
<field name="res_model">gnuhealth.patient.evaluation</field>
<field name="view_mode">form</field>
<field name="view_id" ref="gnuhealth_patient_evaluation_view"/>
</record>
After restarting the server and upgrading the module, this error appeared.
What I’ve tried so far:
- Checked if
gnuhealth_patient_evaluation_view
exists in the database using the following query:
SELECT id, name FROM ir_ui_view WHERE model = 'gnuhealth.patient.evaluation';
- If this view does not exist, how can I properly add or fix it?
- Checked if the
act_open_patient_evaluation
ID is already used using:
SELECT id, name FROM ir_action WHERE name = 'Open Patient Evaluation';
- If it already exists, what is the safest way to remove it?
- Tried deleting the action from the database manually, but is there a safer way to remove it instead of modifying PostgreSQL directly?
What is the best approach to fix this issue or remove the conflicting action?
Thanks!