-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by legalsylvain
- Loading branch information
Showing
47 changed files
with
2,551 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
================================ | ||
MRP Grouped Sales and Production | ||
================================ | ||
|
||
.. | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:f582984ea7e25a995cea5546f7f67bbcf2c872727bd2815e023791cc2cb5e411 | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-grap%2Fgrap--odoo--custom-lightgray.png?logo=github | ||
:target: https://github.com/grap/grap-odoo-custom/tree/12.0/mrp_sale_grouped | ||
:alt: grap/grap-odoo-custom | ||
|
||
|badge1| |badge2| |badge3| | ||
|
||
Quickly manage what you need to produce thanks to grouped sales | ||
|
||
.. figure:: https://raw.githubusercontent.com/grap/grap-odoo-custom/12.0/mrp_sale_grouped/static/description/mrp_sale_grouped.png | ||
|
||
1 : Create and name your sale grouped sales | ||
2 : Associate sales | ||
3 : Retrieve sales and production order created thanks to this sales | ||
4 : Adjust quantities with Matrix2D view | ||
5 and 6 : Confirme sale orders one by one or all at once | ||
7 : Print PDF that sum up sales by product and sale | ||
8 : Handle your production with wizard assistant, you can handle what components | ||
you have to buy, intermediate and finished products you have to produce. | ||
|
||
.. figure:: https://raw.githubusercontent.com/grap/grap-odoo-custom/12.0/mrp_sale_grouped/static/description/report_sales_sum_up.png | ||
|
||
.. figure:: https://raw.githubusercontent.com/grap/grap-odoo-custom/12.0/mrp_sale_grouped/static/description/production_wizard.png | ||
.. figure:: https://raw.githubusercontent.com/grap/grap-odoo-custom/12.0/mrp_sale_grouped/static/description/production_wizard_report.png | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Configuration | ||
============= | ||
|
||
* To use wizard production assistant, you need to create BoMs for your products | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/grap/grap-odoo-custom/issues>`_. | ||
In case of trouble, please check there if your issue has already been reported. | ||
If you spotted it first, help us to smash it by providing a detailed and welcomed | ||
`feedback <https://github.com/grap/grap-odoo-custom/issues/new?body=module:%20mrp_sale_grouped%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Authors | ||
~~~~~~~ | ||
|
||
* GRAP | ||
|
||
Contributors | ||
~~~~~~~~~~~~ | ||
|
||
* Quentin Dupont ([email protected]) | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is part of the `grap/grap-odoo-custom <https://github.com/grap/grap-odoo-custom/tree/12.0/mrp_sale_grouped>`_ project on GitHub. | ||
|
||
You are welcome to contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from . import models | ||
from . import report | ||
from . import wizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Copyright (C) 2023 - Today: GRAP (http://www.grap.coop) | ||
# @author: Quentin Dupont ([email protected]) | ||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
||
{ | ||
"name": "MRP Grouped Sales and Production", | ||
"summary": "Quickly manage what you need to produce thanks to grouped sales", | ||
"version": "16.0.1.0.0", | ||
"category": "GRAP - Custom", | ||
"author": "GRAP", | ||
"website": "https://github.com/grap/grap-odoo-custom", | ||
"license": "AGPL-3", | ||
"depends": [ | ||
"sale_mrp", | ||
# OCA | ||
"web_widget_x2many_2d_matrix", | ||
"mrp_bom_simple_report", | ||
"mrp_bom_wizard_production", | ||
# GRAP | ||
], | ||
"demo": [ | ||
"demo/product.xml", | ||
"demo/bom.xml", | ||
"demo/sale_order.xml", | ||
"demo/sale_order_line.xml", | ||
"demo/mrp_sale_grouped.xml", | ||
], | ||
"data": [ | ||
"data/report_paperformat.xml", | ||
"data/stock_route.xml", | ||
"security/ir_rule.xml", | ||
"security/ir.model.access.csv", | ||
"report/report_sale_grouped.xml", | ||
"report/ir_actions_report.xml", | ||
"views/action.xml", | ||
"views/menu.xml", | ||
"views/view_mrp_sale_grouped.xml", | ||
"views/view_sale_order.xml", | ||
"wizard/view_sale_grouped_wizard.xml", | ||
"wizard/x2m_matrix_grouped_sales.xml", | ||
"wizard/view_production_assistant_wizard.xml", | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2023 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT ([email protected]) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<record id="paper_format_mrp_sale_grouped_report" model="report.paperformat"> | ||
<field name="name">MRP Sale Grouped Report</field> | ||
<field name="format">A4</field> | ||
<field name="page_height">0</field> | ||
<field name="page_width">0</field> | ||
<field name="orientation">Landscape</field> | ||
<field name="margin_top">10</field> | ||
<field name="margin_bottom">10</field> | ||
<field name="margin_left">5</field> | ||
<field name="margin_right">5</field> | ||
<field name="dpi">90</field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2024 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT ([email protected]) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo noupdate="1"> | ||
|
||
<record id="stock.route_warehouse0_mto" model="stock.route"> | ||
<field name="active" eval="True" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2023 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT ([email protected]) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
|
||
<!-- BoM n°1 : Tomato pie --> | ||
<record model="mrp.bom" id="demo_bom_tomato_tart"> | ||
<field name="code">TOMATO_PIE</field> | ||
<field name="product_tmpl_id" ref="mrp_sale_grouped.demo_product_tomato_tart_product_template"/> | ||
</record> | ||
|
||
<record model="mrp.bom.line" id="demo_bom_tomato_tart_line_pie"> | ||
<field name="bom_id" ref="mrp_sale_grouped.demo_bom_tomato_tart"/> | ||
<field name="product_id" ref="mrp_sale_grouped.demo_product_pie"/> | ||
<field name="product_qty">1</field> | ||
</record> | ||
|
||
<record model="mrp.bom.line" id="demo_bom_tomato_tart_line_tomatoes"> | ||
<field name="bom_id" ref="mrp_sale_grouped.demo_bom_tomato_tart"/> | ||
<field name="product_id" ref="mrp_sale_grouped.demo_product_tomato"/> | ||
<field name="product_qty">0.5</field> | ||
</record> | ||
|
||
<record model="mrp.bom.line" id="demo_bom_tomato_tart_line_spinach"> | ||
<field name="bom_id" ref="mrp_sale_grouped.demo_bom_tomato_tart"/> | ||
<field name="product_id" ref="mrp_sale_grouped.demo_product_spinach"/> | ||
<field name="product_qty">0.3</field> | ||
</record> | ||
|
||
<record model="mrp.bom.line" id="demo_bom_tomato_tart_line_mustard"> | ||
<field name="bom_id" ref="mrp_sale_grouped.demo_bom_tomato_tart"/> | ||
<field name="product_id" ref="mrp_sale_grouped.demo_product_mustard"/> | ||
<field name="product_qty">0.1</field> | ||
</record> | ||
|
||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2024 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT ([email protected]) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<record model="mrp.sale.grouped" id="prod_week_63"> | ||
<field name="name">Production week 63</field> | ||
<field name="order_ids" eval="[(6, 0, [ref('mrp_sale_grouped.demo_sale_deco_addict'),])]"></field> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2023 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT ([email protected]) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
|
||
<record model="product.product" id="demo_product_spinach"> | ||
<field name="name">Spinach</field> | ||
<field name="uom_id" ref="uom.product_uom_kgm"/> | ||
<field name="uom_po_id" ref="uom.product_uom_kgm"/> | ||
<field name="categ_id" ref="product.product_category_all"/> | ||
<field name="standard_price">4</field> | ||
</record> | ||
|
||
<record model="product.product" id="demo_product_tomato"> | ||
<field name="name">Tomatoes</field> | ||
<field name="uom_id" ref="uom.product_uom_kgm"/> | ||
<field name="uom_po_id" ref="uom.product_uom_kgm"/> | ||
<field name="categ_id" ref="product.product_category_all"/> | ||
<field name="standard_price">3</field> | ||
</record> | ||
|
||
<record model="product.product" id="demo_product_mustard"> | ||
<field name="name">Mustard</field> | ||
<field name="uom_id" ref="uom.product_uom_kgm"/> | ||
<field name="uom_po_id" ref="uom.product_uom_kgm"/> | ||
<field name="categ_id" ref="product.product_category_all"/> | ||
<field name="standard_price">10</field> | ||
</record> | ||
|
||
<record model="product.product" id="demo_product_pie"> | ||
<field name="name">Pie</field> | ||
<field name="categ_id" ref="product.product_category_all"/> | ||
<field name="standard_price">3</field> | ||
</record> | ||
|
||
<record model="product.product" id="demo_product_tomato_tart"> | ||
<field name="name">Tomato pie</field> | ||
<field name="detailed_type">product</field> | ||
<field name="categ_id" ref="product.product_category_all"/> | ||
<field name="image_1920" type="base64" file="mrp_sale_grouped/static/img/tomato_pie.png"/> | ||
<field name="route_ids" eval="[(6, 0, [ref('mrp.route_warehouse0_manufacture'), ref('stock.route_warehouse0_mto')])]"></field> | ||
</record> | ||
|
||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2023 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT ([email protected]) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<!-- Sale for Gemini Furniture --> | ||
<record model="sale.order" id="demo_sale_gemini"> | ||
<field name="partner_id" eval="ref('base.res_partner_3')" /> | ||
</record> | ||
|
||
<!-- Sale for Ready Mat --> | ||
<record model="sale.order" id="demo_sale_ready_mat"> | ||
<field name="partner_id" eval="ref('base.res_partner_4')" /> | ||
</record> | ||
|
||
<!-- Sale for Deco Addict - with products with BoMs --> | ||
<record model="sale.order" id="demo_sale_deco_addict"> | ||
<field name="partner_id" eval="ref('base.res_partner_2')" /> | ||
</record> | ||
|
||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2023 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT ([email protected]) | ||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
--> | ||
<odoo> | ||
|
||
<!-- Sale for Gemini Furniture --> | ||
<record model="sale.order.line" id="demo_sale_order_line_gemini_1"> | ||
<field name="order_id" ref="mrp_sale_grouped.demo_sale_gemini"/> | ||
<field name="product_id" ref="mrp_sale_grouped.demo_product_spinach"/> | ||
<field name="product_uom_qty">4</field> | ||
<field name="price_unit">3</field> | ||
</record> | ||
|
||
<record model="sale.order.line" id="demo_sale_order_line_gemini_2"> | ||
<field name="order_id" ref="mrp_sale_grouped.demo_sale_gemini"/> | ||
<field name="product_id" ref="mrp_sale_grouped.demo_product_tomato"/> | ||
<field name="product_uom_qty">1</field> | ||
<field name="price_unit">4</field> | ||
</record> | ||
|
||
<!-- Sale for Ready Mat --> | ||
<record model="sale.order.line" id="demo_sale_order_line_ready_mat"> | ||
<field name="order_id" ref="mrp_sale_grouped.demo_sale_ready_mat"/> | ||
<field name="product_id" ref="mrp_sale_grouped.demo_product_tomato"/> | ||
<field name="product_uom_qty">10</field> | ||
<field name="price_unit">4</field> | ||
</record> | ||
|
||
<!-- Sale line for Partner 5 - with products with BoMs --> | ||
<record model="sale.order.line" id="demo_sale_order_line_deco_addict"> | ||
<field name="order_id" ref="mrp_sale_grouped.demo_sale_deco_addict"/> | ||
<field name="product_id" ref="mrp_sale_grouped.demo_product_tomato_tart"/> | ||
<field name="product_uom_qty">2</field> | ||
<field name="price_unit">7</field> | ||
</record> | ||
|
||
</odoo> |
Oops, something went wrong.