bemade-addons/customer_applications/data/menus_actions.xml
Marc Durepos 87a1cb8860 Major changes for applications and equipment.
Add the notion of application specification keys to allow administrators
to specify the names of specification items that can be used on an
application. This aims to homogenize specifications and to later provide
a sort of checklist when creating a new application for a customer.

Added groups for partner applications (user and admin). Administrators
have the right to create specification keys while users can only read
them (and use them to create specifications on an application).

Various view improvements across the affected modules.
2024-10-17 15:28:07 -04:00

43 lines
No EOL
1.8 KiB
XML

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_application_types" model="ir.actions.act_window">
<field name="name">Application Types</field>
<field name="res_model">partner.application.type</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
No application types found. Create one?
</p>
</field>
</record>
<record id="partner_related_applications_action" model="ir.actions.act_window">
<field name="name">Partner Applications</field>
<field name="res_model">partner.application</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('partner_id', '=', context.get('partner_id'))]</field>
<field name="context">{'default_partner_id': context.get('partner_id')}</field>
</record>
<record id="action_view_partner_applications_by_type" model="ir.actions.act_window">
<field name="name">Partner Applications by Type</field>
<field name="res_model">partner.application</field>
<field name="view_mode">tree,form</field>
<field name="domain">[
('application_type_id', '=', context.get('application_type_id'))
]
</field>
<field name="context">{
'default_application_type_id': context.get('application_type_id')
}
</field>
</record>
<menuitem id="application_types"
parent="contacts.res_partner_menu_config"
groups="group_applications_admin"
action="view_application_types"
/>
<record id="contacts.res_partner_menu_config" model="ir.ui.menu">
<field name="sequence" eval="99"/>
</record>
</odoo>