[FIX] bemade_sports_clinic: Fix treatment note views for Odoo 18 compatibility
- Change view type from 'tree' to 'list' for Odoo 18 compatibility - Update XML structure to use <list> instead of <tree> tags - Fix parent menu reference to use existing sports_clinic_root menu
This commit is contained in:
parent
e81efd7fdd
commit
8c9d60c550
1 changed files with 7 additions and 7 deletions
|
|
@ -1,17 +1,17 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<!-- Treatment Note Tree View -->
|
||||
<record id="view_treatment_note_tree" model="ir.ui.view">
|
||||
<field name="name">sports.treatment.note.tree</field>
|
||||
<!-- Treatment Note List View -->
|
||||
<record id="view_treatment_note_list" model="ir.ui.view">
|
||||
<field name="name">sports.treatment.note.list</field>
|
||||
<field name="model">sports.treatment.note</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Treatment Notes">
|
||||
<list string="Treatment Notes">
|
||||
<field name="date"/>
|
||||
<field name="patient_id"/>
|
||||
<field name="injury_id"/>
|
||||
<field name="create_uid" string="Created By"/>
|
||||
<field name="create_date" string="Created On"/>
|
||||
</tree>
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
<record id="action_treatment_notes" model="ir.actions.act_window">
|
||||
<field name="name">Treatment Notes</field>
|
||||
<field name="res_model">sports.treatment.note</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="view_mode">list,form</field>
|
||||
<field name="search_view_id" ref="view_treatment_note_search"/>
|
||||
<field name="help" type="html">
|
||||
<p class="o_view_nocontent_smiling_face">
|
||||
|
|
@ -88,7 +88,7 @@
|
|||
<!-- Menu Item -->
|
||||
<menuitem id="menu_treatment_notes"
|
||||
name="Treatment Notes"
|
||||
parent="menu_player_management"
|
||||
parent="sports_clinic_root"
|
||||
action="action_treatment_notes"
|
||||
sequence="30"/>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue