<?xml version="1.0" encoding="UTF-8"?>
<odoo>
    <record id="action_sos_service_call_log_report_form_list" model="ir.actions.act_window">
        <field name="name">Service Call Log Report</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">sos_service_call_log_report</field>
        <field name="view_mode">tree,form</field>
    </record>

    <record id="sos_service_call_log_report_view_tree" model="ir.ui.view">
        <field name="name">sos_service_call_log_report.view.tree</field>
        <field name="model">sos_service_call_log_report</field>
        <field name="arch" type="xml">
            <tree>
            <field name="ref_no"/>
                <field name="customer_name"/>
                <field name="date"/>
                <field name="product_name"/>
                <field name="product_code"/>
                <field name="product_type"/>
                <field name="status" widget="badge" decoration-success="status == 'close'" decoration-danger="status == 'open'"/>

                <field name="write_uid" string="Last Edited By" optional="hide"/>
                <field name="write_date" string="Last Edited On" optional="hide"/>
            </tree>
        </field>
    </record>
    <record id="sos_service_call_log_report_form_view" model="ir.ui.view">
        <field name="name">Form</field>
        <field name="model">sos_service_call_log_report</field>
        <field name="arch" type="xml">
        <form string="Model Form">
            <sheet>
                <h2 style="text-align: center;text-transform: uppercase;text-shadow: 1px 1p 1px #140718;color: #65407c;padding:5px;">Service Call Log Report</h2><hr></hr><br></br>  
                    <group>
                        <group>
                        <field name="ref_no"/>
                            <field name="customer_name"/>
                            <field name="contact_person"/>
                            <field name="location"/>
                            <field name="mobile_no"/>
                            <field name="email"/>
                            <field name="product_name"/>
                            <field name="product_code"/>
                            <field name="product_type"/>
                        </group>
                        <group>
                            <field name="date"/>
                            <field name="issue_details"/>
                            <field name="person_assigned_for_issue"/>
                            <field name="action_taken"/>
                            <field name="Date_of_action_Completed"/>
                            <field name="status"/>
                            <field name="others"/>
                        </group>
                    </group>

                <!-- <notebook>
                <page string="Customer Property">

                <field name="line_ids_customer_property">
                    <tree editable="bottom">
                        <field name="customer_property_name"/>
                        <field name="customer_property_received_date"/>
                        <field name="customer_property_ref_no"/>
                        <field name="customer_property_stored_at"/>
                        <field name="protecting_customer_property"/>
                        <field name="master_list_last_reviewed"/>
                    </tree>
                </field>
                </page>
                </notebook> -->
            </sheet>
        </form>
        </field>
    </record>
    <menuitem id="sos_service_call_log_report_menu"
            name="Service Call Log Report" parent="ce_forms_menu_root" 
            action="action_sos_service_call_log_report_form_list" groups="sos_inventory.sos_ce_user,sos_inventory.sos_management_user"/>
              

</odoo>