Using the code below, when I open the form view, it pulls the view from another xml file. It's driving me crazy as I can't for the life of me find out what's causing the issue. any ideas where I'm going wrong ?
<odoo>
<!-- Action to Show User-Specific Jobs -->
<record id="action_myags" model="ir.actions.act_window">
<field name="name">My Jobs</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">garden.service</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('user_id', '=', uid), ('job_status', '=', 'active'), ('next_scheduled', '<=', 'today')] </field>
<field name="view_id" ref="view_myjobs_tree"/>
</record>
<!-- Tree View for User-Specific Jobs -->
<record id="view_myjobs_tree" model="ir.ui.view">
<field name="name">myjobs.tree</field>
<field name="model">garden.service</field>
<field name="arch" type="xml">
<tree string="My Jobs" default_order="next_scheduled asc">
<field name="partner_id"/>
<field name="suburb"/>
<field name="address" string="Customer Address"/>
<field name="job_type"/>
<field name="next_scheduled"/>
<button name="action_complete_job" type="object" string="Complete" class="btn-primary"/>
</tree>
</field>
</record>
<!-- Define the form view for the Garden Service model -->
<record id="view_myjobs_form" model="ir.ui.view">
<field name="name">myjobs.form</field>
<field name="model">garden.service</field>
<field name="arch" type="xml">
<form string="My Jobs">
<sheet>
<field name="partner_id"/>
<field name="address" readonly="1"/>
<field name="job_type"/>
</sheet>
</form>
</field>
</record>
<!-- Menu Item to Access User-Specific Jobs -->
<menuitem name="My Jobs"
id="garden_service_user_submenu"
parent="garden_service_menu_root"
action="action_myags"
sequence="2"/>
</odoo>