diff --git a/water_supply_with_mo/README.rst b/water_supply_with_mo/README.rst new file mode 100644 index 000000000..d19b3d527 --- /dev/null +++ b/water_supply_with_mo/README.rst @@ -0,0 +1,48 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + + +Water Supply With Manufacturing Order +===================================== +This module helps you to manufacturing the products from the water supply +request form. + +Configuration +============= +* Added Water Supply user in user settings. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer: (V18) Vishnu P, Contact : odoo@cybrosys.com + +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/water_supply_with_mo/__init__.py b/water_supply_with_mo/__init__.py new file mode 100644 index 000000000..780343792 --- /dev/null +++ b/water_supply_with_mo/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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 models diff --git a/water_supply_with_mo/__manifest__.py b/water_supply_with_mo/__manifest__.py new file mode 100644 index 000000000..bca82dc4c --- /dev/null +++ b/water_supply_with_mo/__manifest__.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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': "Water Supply With Manufacturing Order", + 'version': '18.0.1.0.0', + 'category': 'Manufacturing', + 'summary': """This app allows you to create water supplying methods""", + 'description': """This app allows you to create water supplying methods + allows us to create manufacture orders from water supply requests.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['account', 'mail', 'mrp'], + 'data': [ + 'security/water_supply_with_mo_groups.xml', + 'security/ir.model.access.csv', + 'data/ir_sequence_data.xml', + 'views/water_supply_method_views.xml', + 'views/water_usage_places_views.xml', + 'views/water_usage_categories_views.xml', + 'views/water_supply_request_views.xml', + 'views/manufacturing_order_creation_views.xml', + 'views/mrp_production_views.xml', + 'views/water_supply_with_mo_menus.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/water_supply_with_mo/data/ir_sequence_data.xml b/water_supply_with_mo/data/ir_sequence_data.xml new file mode 100644 index 000000000..2f38ed986 --- /dev/null +++ b/water_supply_with_mo/data/ir_sequence_data.xml @@ -0,0 +1,13 @@ + + + + + + Water Supply Request + water_supply_request + WS + 4 + + + + diff --git a/water_supply_with_mo/doc/RELEASE_NOTES.md b/water_supply_with_mo/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..a9ae125c6 --- /dev/null +++ b/water_supply_with_mo/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 23.12.2024 +#### Version 18.0.1.0.0 +#### ADD +- Initial Commit for Water Supply With Manufacturing Order diff --git a/water_supply_with_mo/models/__init__.py b/water_supply_with_mo/models/__init__.py new file mode 100644 index 000000000..99cafe9e3 --- /dev/null +++ b/water_supply_with_mo/models/__init__.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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 manufacturing_order_creation +from . import mrp_bom +from . import mrp_production +from . import stock_move +from . import water_supply_methods +from . import water_supply_request +from . import water_usage_categories +from . import water_usage_places diff --git a/water_supply_with_mo/models/manufacturing_order_creation.py b/water_supply_with_mo/models/manufacturing_order_creation.py new file mode 100644 index 000000000..c640333c9 --- /dev/null +++ b/water_supply_with_mo/models/manufacturing_order_creation.py @@ -0,0 +1,76 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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 fields, models + + +class ManufacturingOrderCreation(models.Model): + """The created manufacturing orders can be displayed and edited + through this model.This model set an as 'many2many' field in another + model.""" + _name = 'manufacturing.order.creation' + _description = 'Manufacturing Order Creation ' + _rec_name = 'product_id' + + product_id = fields.Many2one('product.product', + string='Product', help='Name of the product') + quantity = fields.Integer(string='Quantity', + help='Quantity of the product') + uom_id = fields.Many2one('uom.uom', string='UoM', + help='Unit of measure of the product') + bom_id = fields.Many2one('mrp.bom', + domain="[('product_id','=', product_id)]", + string='Bill of Material', + help='Bill of material of the product.') + mrp_id = fields.Many2one('mrp.production', + string='Manufacturing Order', + help='Manufacturing order of the product') + is_mo = fields.Boolean(string='Is Display', default=True, + help='If the value of the boolean field i s' + 'false,then manufacturing order button ' + 'will disappear') + supply_request_id = fields.Many2one('water.supply.request', + string='Supply Request', + help="Corresponding water supply " + "request") + + def action_creating_mo(self): + """Displaying manufacturing order of the product. + The form view will display default values for the specified fields + based on the attributes of the current instance. + The view will be opened in the current window.""" + res = { + 'name': 'mrp.production', + 'type': 'ir.actions.act_window', + 'res_model': 'mrp.production', + 'view_mode': 'form', + 'view_id': self.env.ref( + 'mrp.mrp_production_form_view').id, + 'view_type': 'form', + 'target': 'current', + 'context': { + 'default_product_id': self.product_id.id, + 'default_product_qty': self.quantity, + 'default_supply_id': self.supply_request_id.id, + 'default_manufacturing_order_id': self.id + }, + } + return res diff --git a/water_supply_with_mo/models/mrp_bom.py b/water_supply_with_mo/models/mrp_bom.py new file mode 100644 index 000000000..cfab279f1 --- /dev/null +++ b/water_supply_with_mo/models/mrp_bom.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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 api, models + + +class MrpBom(models.Model): + """ This class extends the standard MRP Bill of Materials (BOM) model + to incorporate changes related to variants.""" + _inherit = 'mrp.bom' + + @api.onchange("product_tmpl_id") + def _onchange_product_tmpl_id(self): + """ This method updates the product ID based on the selected + product template ID.""" + self.product_id = self.env['product.product'].search( + [('product_tmpl_id', '=', self.product_tmpl_id.id)]) diff --git a/water_supply_with_mo/models/mrp_production.py b/water_supply_with_mo/models/mrp_production.py new file mode 100644 index 000000000..79dc44c4c --- /dev/null +++ b/water_supply_with_mo/models/mrp_production.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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 api, fields, models + + +class MrpProduction(models.Model): + """ This class adds additional fields and overrides the 'create' method + for specific functionality.""" + _inherit = 'mrp.production' + + manufacturing_order_id = fields.Many2one('manufacturing.order.creation', + string='MO Order', + help='Manufacturing order.') + supply_id = fields.Many2one('water.supply.request', + string='Water Supply Request', + help='Displaying water supply request') + + @api.model_create_multi + def create(self, vals): + """Create a new Manufacturing Production.""" + records = super(MrpProduction, self).create(vals) + for res in records: + default_mo_context_id = res._context.get( + 'default_manufacturing_order_id') + default_manufacturing_order_id = self.env[ + 'manufacturing.order.creation'].browse(default_mo_context_id) + default_manufacturing_order_id.mrp_id = res + default_manufacturing_order_id.bom_id = res.bom_id.id + if default_manufacturing_order_id.mrp_id: + default_manufacturing_order_id.write({'is_mo': False}) + return records diff --git a/water_supply_with_mo/models/stock_move.py b/water_supply_with_mo/models/stock_move.py new file mode 100644 index 000000000..0525adeeb --- /dev/null +++ b/water_supply_with_mo/models/stock_move.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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 fields, models + + +class StockMove(models.Model): + """Inheriting stock.move model to add relational field""" + _inherit = 'stock.move' + + supply_id = fields.Many2one('water.supply.request', + string='Water Supply', + help='Water supply request') diff --git a/water_supply_with_mo/models/water_supply_methods.py b/water_supply_with_mo/models/water_supply_methods.py new file mode 100644 index 000000000..2556b6c23 --- /dev/null +++ b/water_supply_with_mo/models/water_supply_methods.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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 api, fields, models + + +class WaterSupplyMethods(models.Model): + """Creating water supply methods. """ + _name = 'water.supply.methods' + _description = 'Water Supply Methods' + _inherit = ['mail.thread', 'mail.activity.mixin'] + _rec_name = 'supply_name' + + code = fields.Char(string='Internal Code', help='Code of the supply' + ' method') + supply_name = fields.Char(string='Supply Name', help='Supply name') + created_product_id = fields.Many2one('product.product', + string='Product Created', + help="Product created when method " + "is created") + + @api.model_create_multi + def create(self, vals_list): + """Creating corresponding product for each method.""" + records = super(WaterSupplyMethods, self).create(vals_list) + for record in records: + product_records = { + 'name': record.supply_name, + 'type': 'consu', + 'is_storable': True + } + created_product = self.env['product.product'].create( + product_records).id + record.created_product_id = created_product + return records diff --git a/water_supply_with_mo/models/water_supply_request.py b/water_supply_with_mo/models/water_supply_request.py new file mode 100644 index 000000000..efa32d664 --- /dev/null +++ b/water_supply_with_mo/models/water_supply_request.py @@ -0,0 +1,249 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author:Vishnu P(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 . +# +############################################################################## +import datetime +from odoo import api, fields, models, _ +from odoo.addons.stock.models.stock_move import PROCUREMENT_PRIORITIES + + +class WaterSupplyRequest(models.Model): + """Model for water supply request form.""" + + _name = "water.supply.request" + _description = "Water Supply Request" + _inherit = ["mail.thread", "mail.activity.mixin"] + _date_name = "date_planned_start" + _order = "priority desc, date_planned_start asc,id" + _rec_name = "reference_no" + + @api.model + def _get_default_date_planned_start(self): + """Method returns the specified deadline date as a datetime object.""" + if self.env.context.get("default_date_deadline"): + return fields.Datetime.to_datetime( + self.env.context.get("default_date_deadline") + ) + return datetime.datetime.now() + + reference_no = fields.Char( + string="Sequence", readonly=True, default="New", help="Reference number" + ) + responsible_user_id = fields.Many2one( + "res.users", + string="Responsible User", + default=lambda self: self.env.user, + help="Responsible person", + ) + customer_name_id = fields.Many2one( + "res.partner", + string="Customer Name", + help="Name of the customer", + required=True, + ) + customer_email = fields.Char( + related="customer_name_id.email", string="Customer Email", help="Customer email" + ) + customer_phone = fields.Char( + related="customer_name_id.phone", + string="Customer Phone", + help="Phone number of" " the customer.", + ) + customer_address = fields.Char( + related="customer_name_id.street", + string="Customer Address", + help="Customer address", + ) + pickup_date = fields.Date( + string="Pickup Date", help="Date of the pickup", required=True + ) + request_date = fields.Date( + string="Request Date", help="Date of the " "product request." + ) + state = fields.Selection( + [("draft", "Draft"), ("created", "Created"), ("supplied", "Supplied")], + default="draft", + string="State", + help="State of the supply request.", + ) + create_date = fields.Date( + string="Create Date", + default=fields.Date.today(), + help="Create date of water supply request", + ) + is_closed = fields.Boolean( + string="Is Closed", + help="Boolean field for to check the " "current request is closed or not", + ) + date_planned_start = fields.Datetime( + string="Scheduled Date", + copy=False, + default=_get_default_date_planned_start, + help="Date at which you plan to start the production.", + index=True, + required=True, + ) + supply_method_ids = fields.Many2many( + "water.supply.methods", + string="Supply Methods", + help="Supply methods", + required=True, + ) + usage_categories_ids = fields.Many2many( + "water.usage.categories", + string="Usage Categories", + help="Usage categories", + required=True, + ) + usage_place_id = fields.Many2one( + "water.usage.places", string="Usage Place", help="Usage place", required=True + ) + create_mo_ids = fields.One2many( + "manufacturing.order.creation", + "supply_request_id", + string="Creation Manufacturing Order", + help="Created manufacturing orders.", + ) + mo_count = fields.Integer( + string="Manufacture Order Count", + compute="compute_mo_count", + help="For storing manufacturing order count.", + ) + stock_move_count = fields.Integer( + string="Stock Move Count", + compute="compute_stock_move_count", + help="Store the stock move count.", + ) + priority = fields.Selection( + PROCUREMENT_PRIORITIES, + string="Priority", + default="0", + help="Components will be reserved first for the MO " + "with the highest priorities.", + ) + + @api.model_create_multi + def create(self, vals): + """Creating sequence number.""" + records = super(WaterSupplyRequest, self).create(vals) + for record in records: + if record.reference_no == _("New"): + reference_no = self.env["ir.sequence"].next_by_code( + "water_supply_request" + ) or _("New") + record.write({"reference_no": reference_no}) + return records + + @api.onchange("supply_method_ids") + def _onchange_supply_method_ids(self): + """This method is triggered when the 'supply_method_ids' field is + changed. It fills the 'create_mo_ids' many2many field with + manufacturing order data based on the selected supply method's + information.""" + self.create_mo_ids = False + for record in self.supply_method_ids: + product = self.env["product.product"].browse(record.created_product_id.id) + bom = self.env["mrp.bom"].search([("product_id", "=", product.id)], limit=1) + self.create_mo_ids = [ + fields.Command.create( + { + "product_id": product.id, + "quantity": bom.product_qty, + "uom_id": product.uom_id.id, + "bom_id": bom, + } + ) + ] + + def action_apply(self): + """Stock move will occur when supply the product to the customer.""" + self.write({"state": "created"}) + src_location = self.env["stock.location"].search( + [("usage", "=", "internal"), ("name", "=", "Stock")], limit=1 + ) + dest_location = self.env["stock.location"].search( + [("usage", "=", "customer")], limit=1 + ) + for rec in self.create_mo_ids: + move = self.env["stock.move"].create( + [{ + "name": self.reference_no, + "origin": self.reference_no, + "location_id": src_location.id, + "location_dest_id": dest_location.id, + "product_id": rec.product_id.id, + "product_uom": rec.product_id.uom_id.id, + "product_uom_qty": rec.quantity, + "supply_id": self.id, + }] + ) + move.write({"state": "done"}) + manufacturing_order = self.env["mrp.production"].search( + [("name", "=", self.create_mo_ids.mrp_id.mapped("name"))] + ) + manufacturing_order.write({"supply_id": self}) + + def action_supply(self): + """Enabling the boolean field if the request is supplied.""" + self.write({"state": "supplied"}) + if self.state == "supplied": + self.is_closed = True + + def action_stock_move(self): + """Opens a window displaying stock moves related to the current + record.""" + self.ensure_one() + return { + "type": "ir.actions.act_window", + "name": "Stock Move", + "view_mode": "list,form", + "res_model": "stock.move", + "domain": [("supply_id", "=", self.id)], + } + + def action_mrp_production(self): + """Display the production records associated with the current supply + order.""" + self.ensure_one() + return { + "type": "ir.actions.act_window", + "name": "Manufacturing Order", + "view_mode": "list,form", + "res_model": "mrp.production", + "domain": [("supply_id", "=", self.id)], + } + + def compute_mo_count(self): + """This method calculates the number of manufacturing orders + associated with the current record and updates the 'mo_count' + field on each record accordingly.""" + for record in self: + record.mo_count = self.env["mrp.production"].search_count( + [("supply_id", "=", self.id)] + ) + + def compute_stock_move_count(self): + """This method iterates through the records in `self` and calculates + the number of stock moves associated with each record. It sets the + `stock_move_count` field of each record to the corresponding count.""" + for record in self: + record.stock_move_count = self.env["stock.move"].search_count( + [("supply_id", "=", self.id)] + ) diff --git a/water_supply_with_mo/models/water_usage_categories.py b/water_supply_with_mo/models/water_usage_categories.py new file mode 100644 index 000000000..9678eff7d --- /dev/null +++ b/water_supply_with_mo/models/water_usage_categories.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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 fields, models + + +class WaterUsageCategories(models.Model): + """Creating water usage categories.""" + _name = 'water.usage.categories' + _description = 'Water Usage Categories' + _inherit = ['mail.thread', 'mail.activity.mixin'] + _rec_name = 'usage_category_name' + + code = fields.Char(string='Usage Category Code', + help='Usage category code') + usage_category_name = fields.Char(string='Usage Category Name', + help='Usage category name') diff --git a/water_supply_with_mo/models/water_usage_places.py b/water_supply_with_mo/models/water_usage_places.py new file mode 100644 index 000000000..b01f83b8d --- /dev/null +++ b/water_supply_with_mo/models/water_usage_places.py @@ -0,0 +1,34 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Vishnu P (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 fields, models + + +class WaterUsagePlaces(models.Model): + """Creating water usage places.""" + _name = 'water.usage.places' + _description = 'Water Usage Places' + _inherit = ['mail.thread', 'mail.activity.mixin'] + _rec_name = 'usage_place_name' + + code = fields.Char(string='Code', help='Code of the water usage places') + usage_place_name = fields.Char(string='Usage Places Name', + help='Usage places name') diff --git a/water_supply_with_mo/security/ir.model.access.csv b/water_supply_with_mo/security/ir.model.access.csv new file mode 100644 index 000000000..3adbb5f2d --- /dev/null +++ b/water_supply_with_mo/security/ir.model.access.csv @@ -0,0 +1,6 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_water_supply_methods_user,access.water.supply.methods.water.supply.with.mo.supplier.user,model_water_supply_methods,water_supply_with_mo_supplier_user,1,1,1,1 +access_water_supply_request_user,access.water.supply.request.user,model_water_supply_request,water_supply_with_mo_supplier_user,1,1,1,1 +access_water_usage_categories_user,access.water.usage.categories.user,model_water_usage_categories,water_supply_with_mo_supplier_user,1,1,1,1 +access_water_usage_places_user,access.water.usage.places.user,model_water_usage_places,water_supply_with_mo_supplier_user,1,1,1,1 +access_manufacturing_order_creation_user,access.manufacturing.order.creation.user,model_manufacturing_order_creation,water_supply_with_mo_supplier_user,1,1,1,1 diff --git a/water_supply_with_mo/security/water_supply_with_mo_groups.xml b/water_supply_with_mo/security/water_supply_with_mo_groups.xml new file mode 100644 index 000000000..5d3bfeb26 --- /dev/null +++ b/water_supply_with_mo/security/water_supply_with_mo_groups.xml @@ -0,0 +1,7 @@ + + + + + Water Supplier User + + diff --git a/water_supply_with_mo/static/description/assets/cybro-icon.png b/water_supply_with_mo/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/water_supply_with_mo/static/description/assets/cybro-icon.png differ diff --git a/water_supply_with_mo/static/description/assets/cybro-odoo.png b/water_supply_with_mo/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/cybro-odoo.png differ diff --git a/water_supply_with_mo/static/description/assets/h2.png b/water_supply_with_mo/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/water_supply_with_mo/static/description/assets/h2.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/arrows-repeat.svg b/water_supply_with_mo/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/banner-1.png b/water_supply_with_mo/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/banner-1.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/banner-2.svg b/water_supply_with_mo/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/banner-bg.png b/water_supply_with_mo/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/banner-bg.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/banner-bg.svg b/water_supply_with_mo/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/banner-call.svg b/water_supply_with_mo/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/banner-mail.svg b/water_supply_with_mo/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/banner-pattern.svg b/water_supply_with_mo/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/banner-promo.svg b/water_supply_with_mo/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/brand-pair.svg b/water_supply_with_mo/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/check.png b/water_supply_with_mo/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/check.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/chevron.png b/water_supply_with_mo/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/chevron.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/close-icon.svg b/water_supply_with_mo/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/cogs.png b/water_supply_with_mo/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/cogs.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/collabarate-icon.svg b/water_supply_with_mo/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/water_supply_with_mo/static/description/assets/icons/consultation.png b/water_supply_with_mo/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/consultation.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/cybro-logo.png b/water_supply_with_mo/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/cybro-logo.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/down.svg b/water_supply_with_mo/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/water_supply_with_mo/static/description/assets/icons/ecom-black.png b/water_supply_with_mo/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/ecom-black.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/education-black.png b/water_supply_with_mo/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/education-black.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/faq.png b/water_supply_with_mo/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/faq.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/feature-icon.svg b/water_supply_with_mo/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/feature.png b/water_supply_with_mo/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/feature.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/gear.svg b/water_supply_with_mo/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/hero.gif b/water_supply_with_mo/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/hero.gif differ diff --git a/water_supply_with_mo/static/description/assets/icons/hire-odoo.svg b/water_supply_with_mo/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/hotel-black.png b/water_supply_with_mo/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/hotel-black.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/license.png b/water_supply_with_mo/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/license.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/life-ring-icon.svg b/water_supply_with_mo/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/lifebuoy.png b/water_supply_with_mo/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/lifebuoy.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/mail.svg b/water_supply_with_mo/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/water_supply_with_mo/static/description/assets/icons/manufacturing-black.png b/water_supply_with_mo/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/manufacturing-black.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/notes.png b/water_supply_with_mo/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/notes.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/notification icon.svg b/water_supply_with_mo/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/odoo-consultancy.svg b/water_supply_with_mo/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/odoo-licencing.svg b/water_supply_with_mo/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/water_supply_with_mo/static/description/assets/icons/odoo-logo.png b/water_supply_with_mo/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/odoo-logo.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/patter.svg b/water_supply_with_mo/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/pattern1.png b/water_supply_with_mo/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/pattern1.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/pos-black.png b/water_supply_with_mo/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/pos-black.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/puzzle-piece-icon.svg b/water_supply_with_mo/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/puzzle.png b/water_supply_with_mo/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/puzzle.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/replace-icon.svg b/water_supply_with_mo/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/restaurant-black.png b/water_supply_with_mo/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/restaurant-black.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/screenshot-main.png b/water_supply_with_mo/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/screenshot-main.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/screenshot.png b/water_supply_with_mo/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/screenshot.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/service-black.png b/water_supply_with_mo/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/service-black.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/skype-fill.svg b/water_supply_with_mo/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/skype.png b/water_supply_with_mo/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/skype.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/skype.svg b/water_supply_with_mo/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/water_supply_with_mo/static/description/assets/icons/star-1.svg b/water_supply_with_mo/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/star-2.svg b/water_supply_with_mo/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/support.png b/water_supply_with_mo/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/support.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/test-1 - Copy.png b/water_supply_with_mo/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/test-1 - Copy.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/test-1.png b/water_supply_with_mo/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/test-1.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/test-2.png b/water_supply_with_mo/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/test-2.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/trading-black.png b/water_supply_with_mo/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/trading-black.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/training.png b/water_supply_with_mo/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/training.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/translate.svg b/water_supply_with_mo/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/update.png b/water_supply_with_mo/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/update.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/user.png b/water_supply_with_mo/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/user.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/video.png b/water_supply_with_mo/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/video.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/whatsapp.png b/water_supply_with_mo/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/whatsapp.png differ diff --git a/water_supply_with_mo/static/description/assets/icons/wrench-icon.svg b/water_supply_with_mo/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/water_supply_with_mo/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/water_supply_with_mo/static/description/assets/icons/wrench.png b/water_supply_with_mo/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/water_supply_with_mo/static/description/assets/icons/wrench.png differ diff --git a/water_supply_with_mo/static/description/assets/modules/1.png b/water_supply_with_mo/static/description/assets/modules/1.png new file mode 100644 index 000000000..e0b09a5a0 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/modules/1.png differ diff --git a/water_supply_with_mo/static/description/assets/modules/2.png b/water_supply_with_mo/static/description/assets/modules/2.png new file mode 100644 index 000000000..ecea68d98 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/modules/2.png differ diff --git a/water_supply_with_mo/static/description/assets/modules/3.jpg b/water_supply_with_mo/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..a83c58aac Binary files /dev/null and b/water_supply_with_mo/static/description/assets/modules/3.jpg differ diff --git a/water_supply_with_mo/static/description/assets/modules/4.jpg b/water_supply_with_mo/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..31a56b08c Binary files /dev/null and b/water_supply_with_mo/static/description/assets/modules/4.jpg differ diff --git a/water_supply_with_mo/static/description/assets/modules/5.jpg b/water_supply_with_mo/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..3b40aa4e4 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/modules/5.jpg differ diff --git a/water_supply_with_mo/static/description/assets/modules/6.jpg b/water_supply_with_mo/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..5d071f8ae Binary files /dev/null and b/water_supply_with_mo/static/description/assets/modules/6.jpg differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/1.png b/water_supply_with_mo/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..b2ae820c9 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/1.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/10.png b/water_supply_with_mo/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..1fea4ea19 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/10.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/11.png b/water_supply_with_mo/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..0b98fa2b3 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/11.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/12.png b/water_supply_with_mo/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..9b53b42f3 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/12.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/13.png b/water_supply_with_mo/static/description/assets/screenshots/13.png new file mode 100644 index 000000000..ba7281f79 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/13.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/14.png b/water_supply_with_mo/static/description/assets/screenshots/14.png new file mode 100644 index 000000000..cae0c565b Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/14.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/15.png b/water_supply_with_mo/static/description/assets/screenshots/15.png new file mode 100644 index 000000000..86a124ed6 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/15.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/16.png b/water_supply_with_mo/static/description/assets/screenshots/16.png new file mode 100644 index 000000000..b9e9a1548 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/16.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/2.png b/water_supply_with_mo/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..91c0f4a4d Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/2.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/3.png b/water_supply_with_mo/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..09bdab9fb Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/3.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/4.png b/water_supply_with_mo/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..e1bd8080f Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/4.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/5.png b/water_supply_with_mo/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..c261fd12d Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/5.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/6.png b/water_supply_with_mo/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..7fe6fe375 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/6.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/7.png b/water_supply_with_mo/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..be2448a15 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/7.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/8.png b/water_supply_with_mo/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..1eea63b0f Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/8.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/9.png b/water_supply_with_mo/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..9e787ac77 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/9.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/1.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/1.png new file mode 100644 index 000000000..bdefbe64e Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/1.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/10.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/10.png new file mode 100644 index 000000000..1fea4ea19 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/10.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/11.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/11.png new file mode 100644 index 000000000..0b98fa2b3 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/11.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/12.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/12.png new file mode 100644 index 000000000..9b53b42f3 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/12.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/13.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/13.png new file mode 100644 index 000000000..ba7281f79 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/13.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/14.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/14.png new file mode 100644 index 000000000..cae0c565b Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/14.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/15.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/15.png new file mode 100644 index 000000000..86a124ed6 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/15.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/16.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/16.png new file mode 100644 index 000000000..b9e9a1548 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/16.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/2.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/2.png new file mode 100644 index 000000000..91c0f4a4d Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/2.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/3.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/3.png new file mode 100644 index 000000000..09bdab9fb Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/3.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/4.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/4.png new file mode 100644 index 000000000..e1bd8080f Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/4.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/5.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/5.png new file mode 100644 index 000000000..c261fd12d Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/5.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/6.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/6.png new file mode 100644 index 000000000..7fe6fe375 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/6.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/7.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/7.png new file mode 100644 index 000000000..be2448a15 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/7.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/8.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/8.png new file mode 100644 index 000000000..1eea63b0f Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/8.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/9.png b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/9.png new file mode 100644 index 000000000..9e787ac77 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner/9.png differ diff --git a/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner_banner.zip b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner_banner.zip new file mode 100644 index 000000000..0a3f1e8a5 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/screenshots/water_supply_with_mo_banner_banner.zip differ diff --git a/water_supply_with_mo/static/description/assets/y18.jpg b/water_supply_with_mo/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/water_supply_with_mo/static/description/assets/y18.jpg differ diff --git a/water_supply_with_mo/static/description/banner.jpg b/water_supply_with_mo/static/description/banner.jpg new file mode 100644 index 000000000..345828a0c Binary files /dev/null and b/water_supply_with_mo/static/description/banner.jpg differ diff --git a/water_supply_with_mo/static/description/hero.gif b/water_supply_with_mo/static/description/hero.gif new file mode 100644 index 000000000..c9b49bc33 Binary files /dev/null and b/water_supply_with_mo/static/description/hero.gif differ diff --git a/water_supply_with_mo/static/description/icon.png b/water_supply_with_mo/static/description/icon.png new file mode 100644 index 000000000..0cdd129fe Binary files /dev/null and b/water_supply_with_mo/static/description/icon.png differ diff --git a/water_supply_with_mo/static/description/index.html b/water_supply_with_mo/static/description/index.html new file mode 100644 index 000000000..a22be9b98 --- /dev/null +++ b/water_supply_with_mo/static/description/index.html @@ -0,0 +1,1407 @@ + + + + + + Hide Any Menu User Wise + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ This App Allows Us To Quickly Create + Manufacturing Orders Directly From The Water + Supply Request. +

+

Water Supply With Manufacturing Order +

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

Key + Highlights

+
+
+
+
+ +
+
+ Compatible +
+

+ Available in Odoo 18.0 Community and + Enterprise.

+
+
+
+
+
+ +
+
+ Create MO from Water Supply Request +
+

+ Allow us to Create Manufacturing Order + Directly from the Water Supply Requests + Form. +

+
+
+
+
+
+ +
+
+ Link Water Supply Request to Order +
+

+ Set the Water Supply Request Reference on + Manufacturing Order. +

+
+
+
+
+
+ +
+
+ View MO in Smart Button +
+

+ We can See the Manufacturing Orders List in + a Smart Button. +

+
+
+ +
+
+
+ +
+
+ View Stock Moves +
+

+ We can see the Stock Moves List in a Smart + Button +

+
+
+
+
+ +
+
+
+ Water Supply With Manufacturing Order +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Water Supply + + User Group +

+
+
+

+ Set a Water Supply User Group in + 'Users' +

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

+ Water Supply + + Menu +

+
+
+

+ If we set a Water Supply User + Group in for a user can see the + Water supply menu. +

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

+ Supply Usage Categories + +

+
+
+

+ From the 'Supply Usage + Categories' Menu we can access + and create new categories for + water supply. +

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

+ + +

+
+
+

+ As you can see the menus and + corresponding views are now + hidden for the user. +

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

+ + Supply Usage Place + +

+
+
+

+ From the 'Supply Usage Place' + Menu we can access and create + new usage place for water + supply. +

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

+ + Create BOM + +

+
+
+

+ Need to create Bill of Materials + for + the products that used in Water + supply requests . +

+
+
+
+ +
+

+ Need to add the component products inside the each BOM. +

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

+ + Apply Supply request + +

+
+
+

+ Create a Supply Request and + Click on + the + 'Apply' Button. +

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

+ + Create Manufacture Order + +

+
+
+

+ For Creating the Manufacture Order + Click on + the + 'Create MO' Button. +

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

+ + Confirm Manufacture Order + +

+
+
+

+ Need to confirm the corresponding + MO's of Supply + request. +

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

+ + MO reference in Corresponding Line + +

+
+
+

+ We can See the MO in the + Corresponding Line. +

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

+ + Supply to Customer + +

+
+
+

+ By Clicking 'Supply' Button it will + be Supplied to + the + Customer. +

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

+ + Manufacture Order and Stock Move smart buttons + +

+
+
+

+ We can see the Corresponding Stock + Move and + Manufacturing Orders in the Smart + Button. +

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

+ + Manufacture Orders + +

+
+
+

+ We can see the Manufacturing orders + created from the + Supply Order by clicking the + 'Manufacture Order' + smart button. +

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

+ + Stock Moves + +

+
+
+

+ We can see the Stock moves created + from the Supply + Order by clicking 'Stock Moves' + smart button. +

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

+ Allow us to Create Manufacturing Order Directly from the Water Supply Requests Form. +

+
+ +
+
+
+
+
+
+ +
+

+ Set the Water Supply Request Reference on Manufacturing Order. +

+
+
+
+ +
+
+
+
+ +
+

+ We can See the Manufacturing Orders List in a Smart Button.

+
+
+
+
+
+
+
+ +
+

+ We can see the Stock Moves List in a Smart Button +

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

+ Click on the "Create Manufacturing Order" button in the Water Supply Request form to generate the order automatically. +

+
+
+ +
+ +
+

+ Click the “Manufacturing Orders” Smart Button in the Water Supply Request form to see the related orders. +

+
+ +
+ +
+

+ Click the “Stock Moves” Smart Button in the Water Supply Request form to view all related stock movements. +

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

+ Latest Release 18.0.1.0.0 +

+ + 23th December, 2024 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + + + + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/water_supply_with_mo/views/manufacturing_order_creation_views.xml b/water_supply_with_mo/views/manufacturing_order_creation_views.xml new file mode 100644 index 000000000..d58c2aebf --- /dev/null +++ b/water_supply_with_mo/views/manufacturing_order_creation_views.xml @@ -0,0 +1,28 @@ + + + + + Creation Manufacturing Order + manufacturing.order.creation + list,form + + + + manufacturing.order.creation.view.list + manufacturing.order.creation + + + + + + + + + + + + +
+

+ +

+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + water.supply.request.view.search + water.supply.request + + + + + + +
diff --git a/water_supply_with_mo/views/water_supply_with_mo_menus.xml b/water_supply_with_mo/views/water_supply_with_mo_menus.xml new file mode 100644 index 000000000..2d7cb3630 --- /dev/null +++ b/water_supply_with_mo/views/water_supply_with_mo_menus.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + diff --git a/water_supply_with_mo/views/water_usage_categories_views.xml b/water_supply_with_mo/views/water_usage_categories_views.xml new file mode 100644 index 000000000..8601d8d8c --- /dev/null +++ b/water_supply_with_mo/views/water_usage_categories_views.xml @@ -0,0 +1,41 @@ + + + + + Water Usage Categories + water.usage.categories + list,form + + + + water.usage.categories.view.list + water.usage.categories + + + + + + + + + + water.usage.categories.view.form + water.usage.categories + +
+ + + + + + + + + + + + +
+
+
diff --git a/water_supply_with_mo/views/water_usage_places_views.xml b/water_supply_with_mo/views/water_usage_places_views.xml new file mode 100644 index 000000000..2efb4cd11 --- /dev/null +++ b/water_supply_with_mo/views/water_usage_places_views.xml @@ -0,0 +1,40 @@ + + + + + Water Usage Places + water.usage.places + list,form + + + + water.usage.places.view.list + water.usage.places + + + + + + + + + + water.usage.places.view.form + water.usage.places + +
+ + + + + + + + + + + + +
+
+