From 0d101cc9b0af762c4e20810ab30baf1482b86b88 Mon Sep 17 00:00:00 2001
From: Quentin Dupont
Date: Thu, 11 Jul 2024 17:39:47 +0200
Subject: [PATCH] [16.0][IMP] clarification for usage and description
---
mrp_sale_info/README.rst | 15 +++++++++-
mrp_sale_info/readme/DESCRIPTION.rst | 4 +++
mrp_sale_info/readme/USAGE.rst | 11 ++++++-
mrp_sale_info/static/description/index.html | 27 ++++++++++++++----
mrp_sale_info/static/product_form_routes.png | Bin 0 -> 37435 bytes
.../sale_order_production_order_link.jpeg | Bin 0 -> 68651 bytes
6 files changed, 49 insertions(+), 8 deletions(-)
create mode 100644 mrp_sale_info/static/product_form_routes.png
create mode 100644 mrp_sale_info/static/sale_order_production_order_link.jpeg
diff --git a/mrp_sale_info/README.rst b/mrp_sale_info/README.rst
index 7bf3407fc..974b494a5 100644
--- a/mrp_sale_info/README.rst
+++ b/mrp_sale_info/README.rst
@@ -28,6 +28,9 @@ MRP Sale Info
|badge1| |badge2| |badge3| |badge4| |badge5|
+When a product is set with right Routes (Replenish on Order (MTO) and Manufacture), a Sale
+of this Product can trigger a Manufacturing Order if there is not enough product on stock.
+
This module extends the functionality of Odoo for adding related fields to
Manufacturing Orders and Work Orders:
@@ -36,6 +39,7 @@ Manufacturing Orders and Work Orders:
* Commitment Date
* Customer Reference
+
**Table of contents**
.. contents::
@@ -44,7 +48,16 @@ Manufacturing Orders and Work Orders:
Usage
=====
-New fields are displayed in tree and in form views (Extra information tab).
+To see this module effect :
+- Unarchive `Replenish on Order (MTO)` in Inventory > Configuration > Routes
+- Create a new Product with no stock
+- Set Routes for this new Product : go to `Inventory` notebook and tick `Replenish on Order (MTO)` and `Manufacture`
+- Create a Sale with this product
+- It will trigger a new Manufacturing Order
+
+.. figure:: https://raw.githubusercontent.com/OCA/manufacture/16.0/mrp_sale_info/static/description/bom_purchase_printing_wizard.png
+
+.. figure:: https://raw.githubusercontent.com/OCA/manufacture/16.0/mrp_sale_info/static/description/sale_order_production_order_link.jpeg
Bug Tracker
===========
diff --git a/mrp_sale_info/readme/DESCRIPTION.rst b/mrp_sale_info/readme/DESCRIPTION.rst
index 7d7adfda2..9e3cdda13 100644
--- a/mrp_sale_info/readme/DESCRIPTION.rst
+++ b/mrp_sale_info/readme/DESCRIPTION.rst
@@ -1,3 +1,6 @@
+When a product is set with right Routes (Replenish on Order (MTO) and Manufacture), a Sale
+of this Product can trigger a Manufacturing Order if there is not enough product on stock.
+
This module extends the functionality of Odoo for adding related fields to
Manufacturing Orders and Work Orders:
@@ -5,3 +8,4 @@ Manufacturing Orders and Work Orders:
* Customer
* Commitment Date
* Customer Reference
+
diff --git a/mrp_sale_info/readme/USAGE.rst b/mrp_sale_info/readme/USAGE.rst
index e4863f588..64163ec8f 100644
--- a/mrp_sale_info/readme/USAGE.rst
+++ b/mrp_sale_info/readme/USAGE.rst
@@ -1 +1,10 @@
-New fields are displayed in tree and in form views (Extra information tab).
+To see this module effect :
+- Unarchive `Replenish on Order (MTO)` in Inventory > Configuration > Routes
+- Create a new Product with no stock
+- Set Routes for this new Product : go to `Inventory` notebook and tick `Replenish on Order (MTO)` and `Manufacture`
+- Create a Sale with this product
+- It will trigger a new Manufacturing Order
+
+.. figure:: ../static/description/bom_purchase_printing_wizard.png
+
+.. figure:: ../static/description/sale_order_production_order_link.jpeg
diff --git a/mrp_sale_info/static/description/index.html b/mrp_sale_info/static/description/index.html
index eefebf9f4..643cbd392 100644
--- a/mrp_sale_info/static/description/index.html
+++ b/mrp_sale_info/static/description/index.html
@@ -1,4 +1,3 @@
-
@@ -9,10 +8,11 @@
/*
:Author: David Goodger (goodger@python.org)
-:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
+:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
+Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
@@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
-pre.code .ln { color: grey; } /* line numbers */
+pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@ span.option {
span.pre {
white-space: pre }
-span.problematic {
+span.problematic, pre.problematic {
color: red }
span.section-subtitle {
@@ -370,6 +370,8 @@ ul.auto-toc {
!! source digest: sha256:0b9b018d3244844e65691844457e6cd19fd9cc54b944c030bbb39dac83f508fc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

+When a product is set with right Routes (Replenish on Order (MTO) and Manufacture), a Sale
+of this Product can trigger a Manufacturing Order if there is not enough product on stock.
This module extends the functionality of Odoo for adding related fields to
Manufacturing Orders and Work Orders:
@@ -395,7 +397,18 @@ Manufacturing Orders and Work Orders:
-
New fields are displayed in tree and in form views (Extra information tab).
+
To see this module effect :
+- Unarchive Replenish on Order (MTO) in Inventory > Configuration > Routes
+- Create a new Product with no stock
+- Set Routes for this new Product : go to Inventory notebook and tick Replenish on Order (MTO) and Manufacture
+- Create a Sale with this product
+- It will trigger a new Manufacturing Order
+
+