Skip to content

Commit

Permalink
[ADD] new module fermente_main_menu
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain committed Nov 27, 2024
1 parent 93eb65a commit 66252df
Show file tree
Hide file tree
Showing 7 changed files with 139 additions and 0 deletions.
Empty file added fermente_main_menu/README.rst
Empty file.
Empty file added fermente_main_menu/__init__.py
Empty file.
26 changes: 26 additions & 0 deletions fermente_main_menu/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
# @author: Sylvain LE GAL (https://twitter.com/legalsylvain)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

{
"name": "Fermente - Main Menu",
"version": "16.0.1.0.0",
"category": "Custom",
"author": "GRAP",
"website": "https://github.com/grap/grap-odoo-custom",
"license": "AGPL-3",
"depends": [
"point_of_sale",
"product_usability",
"mrp",
"sale_management",
"purchase",
"contacts",
"hr_expense",
"spreadsheet_dashboard",
"project",
"crm",
"queue_job",
],
"data": ["views/menu.xml"],
}
15 changes: 15 additions & 0 deletions fermente_main_menu/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-06-21 10:04+0000\n"
"PO-Revision-Date: 2024-06-21 10:04+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
1 change: 1 addition & 0 deletions fermente_main_menu/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Sylvain LE GAL (https://www.twitter.com/legalsylvain)
5 changes: 5 additions & 0 deletions fermente_main_menu/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Customize Odoo / odoo / ``product`` module.

* Remove default value for the field ``categ_id`` of the model ``product.template``
to force user to select a category and have the possibility to disable the "All"
category.
92 changes: 92 additions & 0 deletions fermente_main_menu/views/menu.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2024 - Today: GRAP (http://www.grap.coop)
@author: Sylvain LE GAL (https://twitter.com/legalsylvain)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>

<!-- TODO: Add Cooperative / annuaire Menu here -->

<record id="point_of_sale.menu_point_root" model="ir.ui.menu">
<field name="sequence">20</field>
</record>

<record id="product_usability.menu_product_main" model="ir.ui.menu">
<field name="sequence">30</field>
</record>

<record id="mrp.menu_mrp_root" model="ir.ui.menu">
<field name="sequence">40</field>
</record>

<record id="sale.sale_menu_root" model="ir.ui.menu">
<field name="sequence">50</field>
</record>

<record id="stock.menu_stock_root" model="ir.ui.menu">
<field name="sequence">60</field>
</record>

<record id="account.menu_finance" model="ir.ui.menu">
<field name="sequence">70</field>
</record>

<record id="purchase.menu_purchase_root" model="ir.ui.menu">
<field name="sequence">80</field>
</record>

<!-- TODO: Add Commandes groupées Menu here - 90 -->

<!-- TODO: Add Application mobile Menu here - 100 -->

<record id="contacts.menu_contacts" model="ir.ui.menu">
<field name="sequence">110</field>
</record>

<record id="hr.menu_hr_root" model="ir.ui.menu">
<field name="sequence">120</field>
</record>

<record id="hr_expense.menu_hr_expense_root" model="ir.ui.menu">
<field name="sequence">130</field>
</record>

<record id="spreadsheet_dashboard.spreadsheet_dashboard_menu_root" model="ir.ui.menu">
<field name="sequence">140</field>
</record>

<record id="project.menu_main_pm" model="ir.ui.menu">
<field name="sequence">150</field>
</record>

<record id="crm.crm_menu_root" model="ir.ui.menu">
<field name="sequence">160</field>
</record>

<record id="calendar.mail_menu_calendar" model="ir.ui.menu">
<field name="sequence">170</field>
</record>

<record id="mail.menu_root_discuss" model="ir.ui.menu">
<field name="sequence">180</field>
</record>

<record id="queue_job.menu_queue_job_root" model="ir.ui.menu">
<field name="sequence">300</field>
</record>

<record id="utm.menu_link_tracker_root" model="ir.ui.menu">
<field name="sequence">310</field>
</record>

<record id="base.menu_management" model="ir.ui.menu">
<field name="sequence">320</field>
</record>

<record id="base.menu_administration" model="ir.ui.menu">
<field name="sequence">320</field>
</record>


</odoo>

0 comments on commit 66252df

Please sign in to comment.