diff --git a/multiple_mrp_orders/README.rst b/multiple_mrp_orders/README.rst new file mode 100644 index 000000000..9fe5835f5 --- /dev/null +++ b/multiple_mrp_orders/README.rst @@ -0,0 +1,37 @@ +Batch Manufacturing Orders +================================================== +This modules provides an option to check availability of products, produce and mark as done for multiple manufacturing orders. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Nimisha Murali@cybrosys + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/multiple_mrp_orders/__init__.py b/multiple_mrp_orders/__init__.py new file mode 100644 index 000000000..17dc0e14d --- /dev/null +++ b/multiple_mrp_orders/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies(). +# Author: Nimisha Muralidhar (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import wizard \ No newline at end of file diff --git a/multiple_mrp_orders/__manifest__.py b/multiple_mrp_orders/__manifest__.py new file mode 100644 index 000000000..ad0dfb29d --- /dev/null +++ b/multiple_mrp_orders/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies(). +# Author: Nimisha Muralidhar (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Batch Manufacturing Orders', + 'version': '13.0.1.0.0', + 'category': 'Manufacturing/Manufacturing', + 'summary': 'Produce products for multiple manufacturing orders', + 'description': 'Produce products for multiple manufacturing orders', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'images': ['static/description/banner.png'], + 'website': 'https://www.cybrosys.com', + 'depends': ['mrp'], + 'data': [ + 'security/ir.model.access.csv', + 'views/mrp_production_views.xml', + 'wizard/wizard_views.xml', + ], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, + +} + diff --git a/multiple_mrp_orders/doc/RELEASE_NOTES.md b/multiple_mrp_orders/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..c2b2efc85 --- /dev/null +++ b/multiple_mrp_orders/doc/RELEASE_NOTES.md @@ -0,0 +1,9 @@ +## Module + +#### 27.03.2020 +#### Version 13.0.1.0.0 +#### ADD +Initial commit multiple_mrp_orders + + + diff --git a/multiple_mrp_orders/security/ir.model.access.csv b/multiple_mrp_orders/security/ir.model.access.csv new file mode 100644 index 000000000..35d1530e1 --- /dev/null +++ b/multiple_mrp_orders/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_mrp_product_produce_wizard_user,mrp.product.produce.wizard,model_mrp_product_produce_wizard,base.group_user,1,1,1,1 +access_mrp_product_produce_wizard_line_user,mrp.product.produce.wizard.line,model_mrp_product_produce_wizard_line,base.group_user,1,1,1,1 diff --git a/multiple_mrp_orders/static/description/banner.png b/multiple_mrp_orders/static/description/banner.png new file mode 100644 index 000000000..5d1f4f813 Binary files /dev/null and b/multiple_mrp_orders/static/description/banner.png differ diff --git a/multiple_mrp_orders/static/description/icon.png b/multiple_mrp_orders/static/description/icon.png new file mode 100644 index 000000000..73f8ca549 Binary files /dev/null and b/multiple_mrp_orders/static/description/icon.png differ diff --git a/multiple_mrp_orders/static/description/images/banner_barcode_scanning.jpeg b/multiple_mrp_orders/static/description/images/banner_barcode_scanning.jpeg new file mode 100644 index 000000000..529143e4e Binary files /dev/null and b/multiple_mrp_orders/static/description/images/banner_barcode_scanning.jpeg differ diff --git a/multiple_mrp_orders/static/description/images/banner_currency_total.png b/multiple_mrp_orders/static/description/images/banner_currency_total.png new file mode 100644 index 000000000..6153ed719 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/banner_currency_total.png differ diff --git a/multiple_mrp_orders/static/description/images/banner_customer_sequence.jpeg b/multiple_mrp_orders/static/description/images/banner_customer_sequence.jpeg new file mode 100644 index 000000000..7451342d6 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/banner_customer_sequence.jpeg differ diff --git a/multiple_mrp_orders/static/description/images/banner_previous_rates.jpeg b/multiple_mrp_orders/static/description/images/banner_previous_rates.jpeg new file mode 100644 index 000000000..e10c28799 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/banner_previous_rates.jpeg differ diff --git a/multiple_mrp_orders/static/description/images/banner_product_branding.png b/multiple_mrp_orders/static/description/images/banner_product_branding.png new file mode 100644 index 000000000..aa12beabb Binary files /dev/null and b/multiple_mrp_orders/static/description/images/banner_product_branding.png differ diff --git a/multiple_mrp_orders/static/description/images/banner_product_expiry.jpeg b/multiple_mrp_orders/static/description/images/banner_product_expiry.jpeg new file mode 100644 index 000000000..84a872d44 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/banner_product_expiry.jpeg differ diff --git a/multiple_mrp_orders/static/description/images/button_orders.png b/multiple_mrp_orders/static/description/images/button_orders.png new file mode 100644 index 000000000..1db050118 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/button_orders.png differ diff --git a/multiple_mrp_orders/static/description/images/checked.png b/multiple_mrp_orders/static/description/images/checked.png new file mode 100644 index 000000000..578cedb80 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/checked.png differ diff --git a/multiple_mrp_orders/static/description/images/cybrosys.png b/multiple_mrp_orders/static/description/images/cybrosys.png new file mode 100644 index 000000000..d76b5bafb Binary files /dev/null and b/multiple_mrp_orders/static/description/images/cybrosys.png differ diff --git a/multiple_mrp_orders/static/description/images/mrp_order_1.png b/multiple_mrp_orders/static/description/images/mrp_order_1.png new file mode 100644 index 000000000..df3b143b4 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/mrp_order_1.png differ diff --git a/multiple_mrp_orders/static/description/images/mrp_order_2.png b/multiple_mrp_orders/static/description/images/mrp_order_2.png new file mode 100644 index 000000000..cbc02dba1 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/mrp_order_2.png differ diff --git a/multiple_mrp_orders/static/description/images/mrp_order_3.png b/multiple_mrp_orders/static/description/images/mrp_order_3.png new file mode 100644 index 000000000..4ecf15f5f Binary files /dev/null and b/multiple_mrp_orders/static/description/images/mrp_order_3.png differ diff --git a/multiple_mrp_orders/static/description/images/mrp_order_4.png b/multiple_mrp_orders/static/description/images/mrp_order_4.png new file mode 100644 index 000000000..83196f2b5 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/mrp_order_4.png differ diff --git a/multiple_mrp_orders/static/description/images/mrp_order_5.png b/multiple_mrp_orders/static/description/images/mrp_order_5.png new file mode 100644 index 000000000..5f5cae06e Binary files /dev/null and b/multiple_mrp_orders/static/description/images/mrp_order_5.png differ diff --git a/multiple_mrp_orders/static/description/images/mrp_order_6.png b/multiple_mrp_orders/static/description/images/mrp_order_6.png new file mode 100644 index 000000000..b9e45125e Binary files /dev/null and b/multiple_mrp_orders/static/description/images/mrp_order_6.png differ diff --git a/multiple_mrp_orders/static/description/images/mrp_order_7.png b/multiple_mrp_orders/static/description/images/mrp_order_7.png new file mode 100644 index 000000000..71bfa8688 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/mrp_order_7.png differ diff --git a/multiple_mrp_orders/static/description/images/mrp_order_8.png b/multiple_mrp_orders/static/description/images/mrp_order_8.png new file mode 100644 index 000000000..1903df894 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/mrp_order_8.png differ diff --git a/multiple_mrp_orders/static/description/images/multiple_mrp_orders.gif b/multiple_mrp_orders/static/description/images/multiple_mrp_orders.gif new file mode 100644 index 000000000..a5aaa1f48 Binary files /dev/null and b/multiple_mrp_orders/static/description/images/multiple_mrp_orders.gif differ diff --git a/multiple_mrp_orders/static/description/index.html b/multiple_mrp_orders/static/description/index.html new file mode 100644 index 000000000..3940758be --- /dev/null +++ b/multiple_mrp_orders/static/description/index.html @@ -0,0 +1,350 @@ +
cybrosys-logo
+
+
+
+

Batch Manufacturing Orders

+

Produce products for multiple manufacturing orders

+
+

Key Highlights

+
    +
  • checkCheck Availabilty of products for multiple manufacturing orders from the tree view.
  • +
+
    +
  • checkProduce products for multiple manufacturing orders.
  • +
+
    +
  • checkMark as done for multiple manufacturing orders.
  • +
+ +
+
+
+
+
+
+
+ +
+
+ +

Overview

+
+

+ This app provides an option to select multiple manufacturing orders and check availability of products and produce it,Also an option to Mark as done for selected manufacturing orders. +

+
+
+ +

Batch Manufacturing Orders

+
+
    +
  • + checkCheck Availabilty of products of selected manufacturing orders from the tree view. +
  • + +
  • + checkProduce products for multiple manufacturing orders. +
  • +
  • + checkMark as done for selected manufacturing orders. +
  • +
+
+ +
+
+

Screenshots

+
+
+
+ + + +
+ + +
+ + +
+
+ + + + + + + + + + + + + + + + +
+
    +
+
+ + + + +
+

Suggested Products

+
+ +
+
+

Our Service

+
+ +
+
+
+

Our Industries

+
+ +
+
+
+ +
+
+

Trading

+

Easily procure and sell your products.

+
+
+
+
+ +
+
+

Manufacturing

+

Plan, track and schedule your operations.

+
+
+
+
+ +
+
+

Restaurant

+

Run your bar or restaurant methodical.

+
+
+
+
+ +
+
+

POS

+

Easy configuring and convivial selling.

+
+
+
+
+ +
+
+

E-commerce & Website

+

Mobile friendly, awe-inspiring product pages.

+
+
+
+
+ +
+
+

Hotel Management

+

An all-inclusive hotel management application.

+
+
+
+
+ +
+
+

Education

+

A Collaborative platform for educational management.

+
+
+
+
+ +
+
+

Service Management

+

Keep track of services and invoice accordingly.

+
+
+
+
+ +
+
+
+
+

Need Any Help?

+
+

If you have anything to share with us based on your use of this module, please let us know. We are ready to offer our support.

+
+

Email us

+

odoo@cybrosys.com / info@cybrosys.com

+
+
+

Contact Us

+ www.cybrosys.com +
+
+
+
+
+
+
+
+
+ +
+ + + + + + + +
+
+
+ diff --git a/multiple_mrp_orders/views/mrp_production_views.xml b/multiple_mrp_orders/views/mrp_production_views.xml new file mode 100644 index 000000000..3054d7429 --- /dev/null +++ b/multiple_mrp_orders/views/mrp_production_views.xml @@ -0,0 +1,25 @@ + + + + + Check Availability and Produce + ir.actions.server + + + code + + action = model.action_product_availability_produce_show_wizard() + + + + Mark as Done + ir.actions.server + + + code + + action = model.action_done_show_wizard() + + + + \ No newline at end of file diff --git a/multiple_mrp_orders/wizard/__init__.py b/multiple_mrp_orders/wizard/__init__.py new file mode 100644 index 000000000..57a25e262 --- /dev/null +++ b/multiple_mrp_orders/wizard/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies(). +# Author: Nimisha Muralidhar (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import wizard diff --git a/multiple_mrp_orders/wizard/wizard.py b/multiple_mrp_orders/wizard/wizard.py new file mode 100644 index 000000000..c3c8768f4 --- /dev/null +++ b/multiple_mrp_orders/wizard/wizard.py @@ -0,0 +1,104 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2020-TODAY Cybrosys Technologies(). +# Author: Nimisha Muralidhar (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import models, fields, api, _ + + +class MrpProductWizard(models.TransientModel): + _name = 'mrp.product.produce.wizard' + + produce_line_ids = fields.One2many('mrp.product.produce.wizard.line', 'product_produce_id', + string='Product to Track') + + # Method to check availability and produce the products for mrp orders + def action_check_availability_produce(self): + for line in self.produce_line_ids.mapped('production_id'): + line.with_context({'active_id': line.id, + 'active_ids': [line.id], + }).action_assign() + for move_line in line.move_raw_ids: + move_line.quantity_done = move_line.product_uom_qty + produce_wizard = self.env['mrp.product.produce'].with_context({ + 'active_id': line.id, + 'active_ids': [line.id], + }).create({ + 'qty_producing': line.product_qty, + }) + produce_wizard.do_produce() + + # Method to mark the mrp orders as done + def action_done(self): + for line in self.produce_line_ids.mapped('production_id'): + line.button_mark_done() + + +class MrpProduction(models.Model): + _inherit = 'mrp.production' + + # Method for the wizard check availability and produce + def action_product_availability_produce_show_wizard(self): + production_ids = self.env['mrp.production'].browse(self._context.get('active_ids', False)) + lines = [] + for line in production_ids: + vals = (0, 0, { + 'production_id': line.id, + 'product_id': line.product_id.id, + 'qty': line.product_qty + }) + lines.append(vals) + return {'type': 'ir.actions.act_window', + 'name': _('Produce'), + 'res_model': 'mrp.product.produce.wizard', + 'target': 'new', + 'view_id': self.env.ref('multiple_mrp_orders.view_mrp_product_availability_wizard').id, + 'view_mode': 'form', + 'context': {'default_produce_line_ids': lines} + } + + # Method for the wizard Mark as Done + def action_done_show_wizard(self): + production_ids = self.env['mrp.production'].browse(self._context.get('active_ids', False)) + lines = [] + for line in production_ids: + vals = (0, 0, { + 'production_id': line.id, + 'product_id': line.product_id.id, + 'qty': line.product_qty + }) + lines.append(vals) + return {'type': 'ir.actions.act_window', + 'name': _('Mark as Done'), + 'res_model': 'mrp.product.produce.wizard', + 'target': 'new', + 'view_id': self.env.ref('multiple_mrp_orders.view_mrp_product_done_wizard').id, + 'view_mode': 'form', + 'context': {'default_produce_line_ids': lines} + } + + +class MrpProductProduceWizardLine(models.TransientModel): + _name = "mrp.product.produce.wizard.line" + _description = "Record Production Line" + + product_produce_id = fields.Many2one('mrp.product.produce.wizard') + production_id = fields.Many2one('mrp.production') + product_id = fields.Many2one('product.product', 'Product') + qty = fields.Float('Quantity') diff --git a/multiple_mrp_orders/wizard/wizard_views.xml b/multiple_mrp_orders/wizard/wizard_views.xml new file mode 100644 index 000000000..ee68bf604 --- /dev/null +++ b/multiple_mrp_orders/wizard/wizard_views.xml @@ -0,0 +1,63 @@ + + + + + mrp.product.produce.wizard.view + mrp.product.produce.wizard + form + +
+ + + + + + + + +
+
+
+
+
+ + mrp.product.produce.wizard.view + mrp.product.produce.wizard + form + +
+ + + + + + + + +
+
+
+
+
+ + Check Availabilty and Produce + ir.actions.act_window + mrp.product.produce.wizard + + form + new + + + Mark as Done + ir.actions.act_window + mrp.product.produce.wizard + + form + new + +
+
\ No newline at end of file