You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

69 lines
2.6 KiB

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Form view for the gym report form-->
<record id="gym_report_view_form" model="ir.ui.view">
<field name="name">gym.report.form</field>
<field name="model">gym.report</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<group>
<field name="name"/>
</group>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="activity_ids"/>
<field name="message_ids"/>
</div>
</form>
</field>
</record>
<!--Action for Report-->
<record id="action_gym_report" model="ir.actions.act_window">
<field name="name">Gym Report</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">gym.report</field>
<field name="view_mode">tree,form,kanban</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create your first Report!
</p>
</field>
</record>
<!-- Action for Measurement History-->
<record id="measurement_history_pivot_action" model="ir.actions.act_window">
<field name="name">Measurement History</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">measurement.history</field>
<field name="view_mode">pivot</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create your first Measurement History!
</p>
</field>
</record>
<!--Pivot view for Measurement History -->
<record id="measurement_history_pivot" model="ir.ui.view">
<field name="name">measurement.history.report.pivot</field>
<field name="model">measurement.history</field>
<field name="arch" type="xml">
<pivot string="Measurements">
<field name="date" type="col" interval="day"/>
<field name="member_id" type="row"/>
</pivot>
</field>
</record>
<!--Menu and Sub Menu-->
<menuitem id="gym_report_root"
name="Reports"
parent="gym_mgmt_system_menu_root"
sequence="30"/>
<menuitem id="gym_report_menu"
name="Measurement Report"
parent="gym_report_root"
action="measurement_history_pivot_action"
sequence="10"/>
</odoo>