change the tree to list

This commit is contained in:
Suherdy Yacob 2026-03-26 08:51:57 +07:00
parent f35643c493
commit 75e10d1d9b

View File

@ -5,12 +5,12 @@
<field name="name">mapan.app.notification.tree</field> <field name="name">mapan.app.notification.tree</field>
<field name="model">mapan.app.notification</field> <field name="model">mapan.app.notification</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree string="App Notifications" default_order="create_date desc" create="false" edit="false" delete="false"> <list string="App Notifications" default_order="create_date desc" create="false" edit="false" delete="false">
<field name="create_date" string="Sent On"/> <field name="create_date" string="Sent On"/>
<field name="title"/> <field name="title"/>
<field name="body"/> <field name="body"/>
<field name="is_global"/> <field name="is_global"/>
</tree> </list>
</field> </field>
</record> </record>
@ -49,7 +49,7 @@
<record id="action_mapan_app_notification_history" model="ir.actions.act_window"> <record id="action_mapan_app_notification_history" model="ir.actions.act_window">
<field name="name">Notification History</field> <field name="name">Notification History</field>
<field name="res_model">mapan.app.notification</field> <field name="res_model">mapan.app.notification</field>
<field name="view_mode">tree,form</field> <field name="view_mode">list,form</field>
<field name="help" type="html"> <field name="help" type="html">
<p class="o_view_nocontent_smiling_face"> <p class="o_view_nocontent_smiling_face">
No notifications sent yet! No notifications sent yet!