Add project_home_action addon for Project login landing

Restores Home Action on user Preferences (removed in Odoo 19) and
defaults internal users to project.open_view_project_all on install
and create, so login opens Projects instead of Discuss.

Co-authored-by: dyaco8464 <dyaco8464@yahoo.com>
This commit is contained in:
Cursor Agent
2026-08-26 09:28:48 +00:00
parent 2a9598f03e
commit 7776b7f10d
6 changed files with 85 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Admin user form: Preferences → Home Action -->
<record id="view_users_form_home_action" model="ir.ui.view">
<field name="name">res.users.form.home.action</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='preferences']//group[@name='other_preferences']" position="inside">
<group string="Menus Customization" invisible="share">
<field name="action_id" options="{'no_create': True}"/>
</group>
</xpath>
</field>
</record>
<!-- My Preferences dialog -->
<record id="view_users_form_simple_modif_home_action" model="ir.ui.view">
<field name="name">res.users.preferences.form.home.action</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="base.view_users_form_simple_modif"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='preferences_page']//group[@name='other_preferences']" position="inside">
<group string="Menus Customization">
<field name="action_id" options="{'no_create': True}" readonly="0"/>
</group>
</xpath>
</field>
</record>
</odoo>