From 66252df981faad34dcc61d7cc464a5e60e0914e4 Mon Sep 17 00:00:00 2001 From: Sylvain LE GAL Date: Wed, 27 Nov 2024 01:25:44 +0100 Subject: [PATCH] [ADD] new module fermente_main_menu --- fermente_main_menu/README.rst | 0 fermente_main_menu/__init__.py | 0 fermente_main_menu/__manifest__.py | 26 ++++++ fermente_main_menu/i18n/fr.po | 15 ++++ fermente_main_menu/readme/CONTRIBUTORS.rst | 1 + fermente_main_menu/readme/DESCRIPTION.rst | 5 ++ fermente_main_menu/views/menu.xml | 92 ++++++++++++++++++++++ 7 files changed, 139 insertions(+) create mode 100644 fermente_main_menu/README.rst create mode 100644 fermente_main_menu/__init__.py create mode 100644 fermente_main_menu/__manifest__.py create mode 100644 fermente_main_menu/i18n/fr.po create mode 100644 fermente_main_menu/readme/CONTRIBUTORS.rst create mode 100644 fermente_main_menu/readme/DESCRIPTION.rst create mode 100644 fermente_main_menu/views/menu.xml diff --git a/fermente_main_menu/README.rst b/fermente_main_menu/README.rst new file mode 100644 index 00000000..e69de29b diff --git a/fermente_main_menu/__init__.py b/fermente_main_menu/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/fermente_main_menu/__manifest__.py b/fermente_main_menu/__manifest__.py new file mode 100644 index 00000000..ae2fcb09 --- /dev/null +++ b/fermente_main_menu/__manifest__.py @@ -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"], +} diff --git a/fermente_main_menu/i18n/fr.po b/fermente_main_menu/i18n/fr.po new file mode 100644 index 00000000..174f2b2c --- /dev/null +++ b/fermente_main_menu/i18n/fr.po @@ -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" diff --git a/fermente_main_menu/readme/CONTRIBUTORS.rst b/fermente_main_menu/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000..e1525ce0 --- /dev/null +++ b/fermente_main_menu/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Sylvain LE GAL (https://www.twitter.com/legalsylvain) diff --git a/fermente_main_menu/readme/DESCRIPTION.rst b/fermente_main_menu/readme/DESCRIPTION.rst new file mode 100644 index 00000000..7e6aaae6 --- /dev/null +++ b/fermente_main_menu/readme/DESCRIPTION.rst @@ -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. \ No newline at end of file diff --git a/fermente_main_menu/views/menu.xml b/fermente_main_menu/views/menu.xml new file mode 100644 index 00000000..4520b475 --- /dev/null +++ b/fermente_main_menu/views/menu.xml @@ -0,0 +1,92 @@ + + + + + + + + 20 + + + + 30 + + + + 40 + + + + 50 + + + + 60 + + + + 70 + + + + 80 + + + + + + + + 110 + + + + 120 + + + + 130 + + + + 140 + + + + 150 + + + + 160 + + + + 170 + + + + 180 + + + + 300 + + + + 310 + + + + 320 + + + + 320 + + + +