-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][MIG] mrp_sale_grouped #376
Draft
quentinDupont
wants to merge
5
commits into
grap:16.0
Choose a base branch
from
quentinDupont:16.0-MIG-mrp_sale_grouped-LAITEUX-QD
base: 16.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 (quentin.dupont@grap.coop) | ||
|
||
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,45 @@ | ||
# Copyright (C) 2023 - Today: GRAP (http://www.grap.coop) | ||
# @author: Quentin Dupont (quentin.dupont@grap.coop) | ||
# 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": [ | ||
"mrp", | ||
"sale_management", | ||
# OCA | ||
"web_widget_x2many_2d_matrix", | ||
"mrp_bom_simple_report", | ||
"mrp_bom_wizard_production", | ||
# "sale_mrp_link", | ||
# GRAP | ||
], | ||
"demo": [ | ||
"demo/product.xml", | ||
"demo/bom.xml", | ||
"demo/sale_order.xml", | ||
"demo/sale_order_line.xml", | ||
], | ||
"data": [ | ||
"data/report_paperformat.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", | ||
"views/action.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 (quentin.dupont@grap.coop) | ||
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,41 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2023 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT (quentin.dupont@grap.coop) | ||
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,52 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (C) 2023 - Today: GRAP (http://www.grap.coop) | ||
@author: Quentin DUPONT (quentin.dupont@grap.coop) | ||
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.template" id="demo_product_tomato_tart_product_template"> | ||
<field name="name">Tomato pie - template</field> | ||
<field name="categ_id" ref="product.product_category_all"/> | ||
</record> | ||
|
||
<record model="product.product" id="demo_product_tomato_tart"> | ||
<field name="name">Tomato pie</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"/> | ||
</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 (quentin.dupont@grap.coop) | ||
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 (quentin.dupont@grap.coop) | ||
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.