From c88fe3360df15baa9fdac9841c8a441d93d6ba61 Mon Sep 17 00:00:00 2001 From: Alexandre Fayolle Date: Mon, 21 Sep 2020 17:02:17 +0200 Subject: [PATCH] [12.0][ADD] mrp_production_show_post_inventory this module removes the need to have debug mode enabled to display the post inventory button on manufacturing orders --- .../__init__.py | 0 .../__manifest__.py | 19 ++++++++++++++++++ .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 2 ++ .../views/mrp_production.xml | 20 +++++++++++++++++++ 5 files changed, 42 insertions(+) create mode 100644 mrp_production_show_post_inventory/__init__.py create mode 100644 mrp_production_show_post_inventory/__manifest__.py create mode 100644 mrp_production_show_post_inventory/readme/CONTRIBUTORS.rst create mode 100644 mrp_production_show_post_inventory/readme/DESCRIPTION.rst create mode 100644 mrp_production_show_post_inventory/views/mrp_production.xml diff --git a/mrp_production_show_post_inventory/__init__.py b/mrp_production_show_post_inventory/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/mrp_production_show_post_inventory/__manifest__.py b/mrp_production_show_post_inventory/__manifest__.py new file mode 100644 index 000000000..b48a26782 --- /dev/null +++ b/mrp_production_show_post_inventory/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2020 Camptocamp +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'Production Show Post Inventory', + 'version': '12.0.1.0.0', + 'category': 'MRP', + 'author': 'Camptocamp, ' + 'Odoo Community Association (OCA)', + 'website': 'https://github.com/oca/manufacture', + 'license': 'AGPL-3', + 'depends': [ + 'mrp', + ], + 'data': [ + 'views/mrp_production.xml', + ], + 'installable': True, +} diff --git a/mrp_production_show_post_inventory/readme/CONTRIBUTORS.rst b/mrp_production_show_post_inventory/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..8785f72c0 --- /dev/null +++ b/mrp_production_show_post_inventory/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Alexandre Fayolle diff --git a/mrp_production_show_post_inventory/readme/DESCRIPTION.rst b/mrp_production_show_post_inventory/readme/DESCRIPTION.rst new file mode 100644 index 000000000..a3a11c857 --- /dev/null +++ b/mrp_production_show_post_inventory/readme/DESCRIPTION.rst @@ -0,0 +1,2 @@ +This module allows to always show the "post inventory" button on manufacturing +order form view. Normally this button is only available in debug mode. diff --git a/mrp_production_show_post_inventory/views/mrp_production.xml b/mrp_production_show_post_inventory/views/mrp_production.xml new file mode 100644 index 000000000..d44e69e7d --- /dev/null +++ b/mrp_production_show_post_inventory/views/mrp_production.xml @@ -0,0 +1,20 @@ + + + + + + + mrp.production.form.with.post_inventory + mrp.production + + + + mrp.group_mrp_user + + + + +