diff --git a/sale_consignment/README.rst b/sale_consignment/README.rst new file mode 100755 index 000000000..6218bc3bc --- /dev/null +++ b/sale_consignment/README.rst @@ -0,0 +1,42 @@ +.. 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 + +Sale Consignment +================ +This module helps you to Sale products as Consignment Order + +Configuration +============= +* No additional configurations needed. + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (V16) Vishnu Kp, Contact : odoo@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/sale_consignment/__init__.py b/sale_consignment/__init__.py new file mode 100644 index 000000000..255fef1b9 --- /dev/null +++ b/sale_consignment/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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/sale_consignment/__manifest__.py b/sale_consignment/__manifest__.py new file mode 100644 index 000000000..cc30b795c --- /dev/null +++ b/sale_consignment/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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': "Sale Consignment", + 'version': "16.0.1.0.0", + 'category': 'Sales', + 'summary': """This Module Helps to manage the sales order with consignment mode""", + 'description': """To create sale order with consignment option""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'maintainer': "Cybrosys Techno Solutions", + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'sale_management', 'sale_stock', 'mail'], + 'data': ['security/sale_consignment_groups.xml', + 'security/ir.model.access.csv', + 'data/consignment_expiry_mail.xml', + 'data/sequence.xml', + 'views/sale_consignment_views.xml', + 'views/sale_consignment_line_views.xml', + 'views/res_config_settings_views.xml', + 'views/res_partner_views.xml', + 'views/product_product_views.xml', + 'views/sale_order_views.xml'], + 'images': [ + 'static/description/banner.png', + ], + 'license': "AGPL-3", + 'installable': True, + 'auto_install': False, + 'application': False +} diff --git a/sale_consignment/data/consignment_expiry_mail.xml b/sale_consignment/data/consignment_expiry_mail.xml new file mode 100644 index 000000000..41830ef64 --- /dev/null +++ b/sale_consignment/data/consignment_expiry_mail.xml @@ -0,0 +1,31 @@ + + + + \ No newline at end of file diff --git a/sale_consignment/data/sequence.xml b/sale_consignment/data/sequence.xml new file mode 100644 index 000000000..573631302 --- /dev/null +++ b/sale_consignment/data/sequence.xml @@ -0,0 +1,23 @@ + + + + + Sale Consignment + sale.consignment + SC + 5 + + + + + + Reminder: Sale Consignment Expiry date + + code + model.mail_update_to_salesman() + 1 + days + -1 + 3 + + diff --git a/sale_consignment/doc/RELEASE_NOTES.md b/sale_consignment/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..ffd5c1ee2 --- /dev/null +++ b/sale_consignment/doc/RELEASE_NOTES.md @@ -0,0 +1,5 @@ +## Module +#### 08.03.2024 +#### Version 16.0.1.0.0 +##### ADD +- Initial Commit for Sale Consignment diff --git a/sale_consignment/models/__init__.py b/sale_consignment/models/__init__.py new file mode 100644 index 000000000..df9aeef45 --- /dev/null +++ b/sale_consignment/models/__init__.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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 product_product +from . import res_config_settings +from . import sale_consignment +from . import sale_consignment_line +from . import sale_order +from . import stock_picking +from . import res_partner diff --git a/sale_consignment/models/product_product.py b/sale_consignment/models/product_product.py new file mode 100644 index 000000000..73e89b3d6 --- /dev/null +++ b/sale_consignment/models/product_product.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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 + + +class ProductProduct(models.Model): + _inherit = 'product.product' + + is_consignment = fields.Boolean( + string='Consignment Product', help="Enable it will consider as a " + "Consignment product") diff --git a/sale_consignment/models/res_config_settings.py b/sale_consignment/models/res_config_settings.py new file mode 100644 index 000000000..7e42f26a3 --- /dev/null +++ b/sale_consignment/models/res_config_settings.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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 + + +class ResConfigSettings(models.TransientModel): + _inherit = 'res.config.settings' + + location_dest_id = fields.Many2one( + 'stock.location', 'Destination Location', + help="Location where you want to send the components resulting " + "from the unbuild order.", + config_parameter='sale_consignment.location_dest_id', + readonly=False) + + group_consignment_order = fields.Boolean(string='Consignment', + readonly=False, + default=True, + config_parameter='sale_consignment.group_consignment_order', + implied_group='sale_consignment.group_consignment_order') + consignment_product_only = fields.Boolean(string='Consignment Product', + config_parameter='sale_consignment.consignment_product_only', ) + consignment_customer_only = fields.Boolean(string='Consignment Customer', + config_parameter='sale_consignment.consignment_customer_only', ) diff --git a/sale_consignment/models/res_partner.py b/sale_consignment/models/res_partner.py new file mode 100644 index 000000000..e5d6bebeb --- /dev/null +++ b/sale_consignment/models/res_partner.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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 + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + is_consignment = fields.Boolean( + string="Consignment Customer", + help='Enable Customer as Consignment Category') diff --git a/sale_consignment/models/sale_consignment.py b/sale_consignment/models/sale_consignment.py new file mode 100644 index 000000000..cdf5022af --- /dev/null +++ b/sale_consignment/models/sale_consignment.py @@ -0,0 +1,213 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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, _, Command +from odoo.exceptions import UserError +from datetime import date + + +class SaleConsignment(models.Model): + _name = "sale.consignment" + _description = "Sale Consignment" + _inherit = ['mail.activity.mixin', 'mail.thread'] + + @api.model + def _settings_domain(self): + customer_domain = self.env['ir.config_parameter'].get_param( + 'sale_consignment.consignment_product_only') + return customer_domain + + @api.model + def _default_destination(self): + location_dest_id = self.env['ir.config_parameter'].get_param( + 'sale_consignment.location_dest_id') + return int(location_dest_id) + + @api.depends('customer_domain') + def _partner_domain(self): + if self.env['ir.config_parameter'].get_param( + 'sale_consignment.consignment_customer_only'): + return [('is_consignment', '=', True)] + else: + return [] + + name = fields.Char(string='Name', help="Sequence of the consignment Sale", + default='New') + company_id = fields.Many2one('res.company', + default=lambda self: self.env.user.company_id) + partner_id = fields.Many2one('res.partner', string='Customer', + domain=lambda self: self._partner_domain(), + help="Partner Name", required=True) + + end_date = fields.Date(string='Expiry Date', + help="Expiry date of the sale consignment", + required=True) + date = fields.Date(string='Date', default=date.today(), + help="Date of the sale consignment", required=True) + price_list_id = fields.Many2one('product.pricelist', string='Price List', + compute='_compute_partner_id') + state = fields.Selection( + selection=[('draft', 'Draft'), ('confirm', 'Confirm')], + default="draft") + user_id = fields.Many2one("res.users", string='Sales Person', + default=lambda self: self.env.user, + required=True) + consignment_line_ids = fields.One2many('sale.consignment.line', + 'consignment_id', + string='Order Line') + location_id = fields.Many2one( + 'stock.location', 'Source Location', + help="Location where the product you want to pickup from.", + domain="[('usage','=','internal')]", + required=True) + sale_count = fields.Integer(string='Sale Order', + compute='_compute_sale_count') + picking_count = fields.Integer(string='Picking Order', + compute='_compute_picking_count') + sale_order_id = fields.Many2one('sale.order') + ware_house_id = fields.Many2one('stock.warehouse', + string='Warehouse', + related='location_id.warehouse_id', + help='Choose the Warehouse') + condition_check = fields.Char(string='') + customer_domain = fields.Boolean( + default=lambda self: self._settings_domain()) + location_dest_id = fields.Many2one( + 'stock.location', 'Destination Location', + required=True, + default=lambda self: self._default_destination(), + help="Location where you want to send the product.") + + @api.model + def create(self, vals): + if vals.get('name', _('New')) == _('New'): + vals['name'] = self.env['ir.sequence'].next_by_code( + 'sale.consignment') or _('New') + res = super(SaleConsignment, self).create(vals) + return res + + @api.depends('consignment_line_ids') + def _compute_sale_count(self): + for rec in self: + rec.sale_count = self.env['sale.order'].search_count([ + ('consignment_id', '=', rec.id)]) + + @api.depends('consignment_line_ids') + def _compute_picking_count(self): + for rec in self: + rec.picking_count = self.env['stock.picking'].search_count([ + ('consignment_id', '=', rec.id)]) + + @api.depends('partner_id') + def _compute_partner_id(self): + self.price_list_id = self.partner_id.property_product_pricelist.id + + def action_order_confirm(self): + picking_type = self.env['stock.picking.type'].search( + [('code', '=', 'internal'), + ('warehouse_id', '=', self.ware_house_id.id), + ('company_id', '=', self.env.company.id), + ('default_location_src_id.usage', '=', 'internal'), + ('default_location_dest_id.usage', '=', 'transit'), + ], limit=1) + if not picking_type: + raise UserError(_( + "There is no available Operation type like destination " + "to transit location Please create and try again")) + else: + self.env['stock.picking'].create({ + 'location_id': self.location_id.id, + 'location_dest_id': self.location_dest_id.id, + 'partner_id': self.partner_id.id, + 'picking_type_id': picking_type.id, + 'consignment_id': self.id, + 'move_ids': [ + Command.create({ + 'name': self.name, + 'product_id': line.product_id.id, + 'product_uom_qty': line.demand_quantity, + 'location_id': self.location_id.id, + 'location_dest_id': self.location_dest_id.id, + }) for line in self.consignment_line_ids] + }).action_confirm() + + self.write({'state': 'confirm'}) + + def create_sale_order(self): + self.sale_order_id = self.env['sale.order'].create({ + 'partner_id': self.partner_id.id, + 'consignment_id': self.id, + 'user_id': self.user_id.id, + 'order_line': [ + Command.create({ + 'product_id': line.product_id.id, + 'product_uom': line.product_id.uom_id.id, + 'product_uom_qty': 1.0, + }) for line in self.consignment_line_ids] + }).id + return { + 'name': 'Sale Order', + 'view_mode': 'form', + 'res_id': self.sale_order_id.id, + 'res_model': 'sale.order', + 'type': 'ir.actions.act_window', + 'target': 'current' + } + + def action_view_order(self): + return { + 'name': 'Sale Order', + 'view_mode': 'tree,form', + 'domain': [('consignment_id', 'in', [rec.id for rec in self])], + 'context': {'create': False}, + 'res_model': 'sale.order', + 'type': 'ir.actions.act_window', + 'target': 'current' + } + + def action_view_pickings(self): + return { + 'name': 'Picking Order', + 'view_mode': 'tree,form', + 'domain': [('consignment_id', 'in', [rec.id for rec in self])], + 'context': {'create': False}, + 'res_model': 'stock.picking', + 'type': 'ir.actions.act_window', + 'target': 'current' + } + + def mail_update_to_salesman(self): + orders = self.env['sale.consignment'].search( + [('end_date', '=', date.today())]) + for rec in orders: + mail_template_id = 'sale_consignment.sale_consignment_expiry' + rendered_body = self.env['ir.qweb']._render(mail_template_id, + {'expiry': rec}) + body = self.env['mail.render.mixin']._replace_local_links( + rendered_body) + self.env['mail.mail'].sudo().create({ + 'author_id': self.env.user.partner_id.id, + 'auto_delete': True, + 'body_html': body, + 'email_from': self.env.user.partner_id.email, + 'email_to': rec.user_id.partner_id.email, + 'subject': 'Reminder: Sale Consignment Date Expired', + }).send() diff --git a/sale_consignment/models/sale_consignment_line.py b/sale_consignment/models/sale_consignment_line.py new file mode 100644 index 000000000..d13be58a7 --- /dev/null +++ b/sale_consignment/models/sale_consignment_line.py @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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, api + + +class SaleConsignmentLine(models.Model): + _name = "sale.consignment.line" + _description = "Sale Consignment Line" + + @api.model + def _settings_domain(self): + product_domain = self.env[ + 'ir.config_parameter'].get_param( + 'sale_consignment.consignment_product_only') + return product_domain + + @api.depends('product_domain') + def _product_domain(self): + if self.env['ir.config_parameter'].get_param( + 'sale_consignment.consignment_product_only'): + return [('is_consignment', '=', True)] + else: + return [] + + product_id = fields.Many2one('product.product', string='Products', + help="Product in the consignment order line", + domain=lambda self: self._product_domain(), + required=True) + demand_quantity = fields.Integer(string='Demand Quantity', + help="Demanded quantity of the product", + required=True) + done_quantity = fields.Integer(string='Done Quantity', + help="Done quantity of the product") + remaining_quantity = fields.Integer(string='Remaining Quantity', + help="Quantity of remaining product", + compute='_compute_remaining_quantity') + price = fields.Float(string='Price', help="Price of the product") + consignment_id = fields.Many2one('sale.consignment', + string='Consignment ID', + help="consignment ID for connect the" + "consignment") + condition_check_line = fields.Char() + product_domain = fields.Boolean( + default=lambda self: self._settings_domain()) + + def _compute_remaining_quantity(self): + for rec in self: + rec.remaining_quantity = rec.demand_quantity - rec.done_quantity diff --git a/sale_consignment/models/sale_order.py b/sale_consignment/models/sale_order.py new file mode 100644 index 000000000..e05474dbc --- /dev/null +++ b/sale_consignment/models/sale_order.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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 + + +class SaleOrder(models.Model): + _inherit = 'sale.order' + + consignment_id = fields.Many2one('sale.consignment', + string='Source Document') diff --git a/sale_consignment/models/stock_picking.py b/sale_consignment/models/stock_picking.py new file mode 100644 index 000000000..6bc1538b7 --- /dev/null +++ b/sale_consignment/models/stock_picking.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies(). +# Author: Vishnu KP @ Cybrosys, (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 StockPicking(models.Model): + _inherit = 'stock.picking' + + consignment_id = fields.Many2one('sale.consignment', + help='Related Consignment Id') + + def button_validate(self): + res = super().button_validate() + consignment_id = self.sale_id.consignment_id + sale_order = self.env['sale.order'].search([ + ('consignment_id', '=', consignment_id.id)]) + for record in consignment_id.consignment_line_ids: + quantity = sum( + rec.product_uom_qty for order in sale_order for rec in + order.order_line if rec.product_id.id == record.product_id.id) + record.done_quantity = quantity + return res + + @api.model_create_multi + def create(self, vals_list): + res = super().create(vals_list) + location_dest_id = int(self.env['ir.config_parameter'].get_param( + 'sale_consignment.location_dest_id')) + sale_name = res.origin + sale = self.env['sale.order'].search([('name', '=', sale_name)]) + if sale.consignment_id: + res.location_id = location_dest_id + return res diff --git a/sale_consignment/security/ir.model.access.csv b/sale_consignment/security/ir.model.access.csv new file mode 100644 index 000000000..9f15062c9 --- /dev/null +++ b/sale_consignment/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_sale_consignment_user,access.sale.consignment.user,model_sale_consignment,base.group_user,1,1,1,1 +access_sale_consignment_line_user,access.sale.consignment.line.user,model_sale_consignment_line,base.group_user,1,1,1,1 diff --git a/sale_consignment/security/sale_consignment_groups.xml b/sale_consignment/security/sale_consignment_groups.xml new file mode 100644 index 000000000..fee1571a5 --- /dev/null +++ b/sale_consignment/security/sale_consignment_groups.xml @@ -0,0 +1,7 @@ + + + + Manage Consignment order + + + diff --git a/sale_consignment/static/description/assets/icons/check.png b/sale_consignment/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/sale_consignment/static/description/assets/icons/check.png differ diff --git a/sale_consignment/static/description/assets/icons/chevron.png b/sale_consignment/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/chevron.png differ diff --git a/sale_consignment/static/description/assets/icons/cogs.png b/sale_consignment/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/cogs.png differ diff --git a/sale_consignment/static/description/assets/icons/consultation.png b/sale_consignment/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/sale_consignment/static/description/assets/icons/consultation.png differ diff --git a/sale_consignment/static/description/assets/icons/ecom-black.png b/sale_consignment/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/ecom-black.png differ diff --git a/sale_consignment/static/description/assets/icons/education-black.png b/sale_consignment/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/sale_consignment/static/description/assets/icons/education-black.png differ diff --git a/sale_consignment/static/description/assets/icons/hotel-black.png b/sale_consignment/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/sale_consignment/static/description/assets/icons/hotel-black.png differ diff --git a/sale_consignment/static/description/assets/icons/license.png b/sale_consignment/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/sale_consignment/static/description/assets/icons/license.png differ diff --git a/sale_consignment/static/description/assets/icons/lifebuoy.png b/sale_consignment/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/sale_consignment/static/description/assets/icons/lifebuoy.png differ diff --git a/sale_consignment/static/description/assets/icons/manufacturing-black.png b/sale_consignment/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/sale_consignment/static/description/assets/icons/manufacturing-black.png differ diff --git a/sale_consignment/static/description/assets/icons/pos-black.png b/sale_consignment/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/pos-black.png differ diff --git a/sale_consignment/static/description/assets/icons/puzzle.png b/sale_consignment/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/puzzle.png differ diff --git a/sale_consignment/static/description/assets/icons/restaurant-black.png b/sale_consignment/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/restaurant-black.png differ diff --git a/sale_consignment/static/description/assets/icons/service-black.png b/sale_consignment/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/sale_consignment/static/description/assets/icons/service-black.png differ diff --git a/sale_consignment/static/description/assets/icons/trading-black.png b/sale_consignment/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/trading-black.png differ diff --git a/sale_consignment/static/description/assets/icons/training.png b/sale_consignment/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/sale_consignment/static/description/assets/icons/training.png differ diff --git a/sale_consignment/static/description/assets/icons/update.png b/sale_consignment/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/sale_consignment/static/description/assets/icons/update.png differ diff --git a/sale_consignment/static/description/assets/icons/user.png b/sale_consignment/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/sale_consignment/static/description/assets/icons/user.png differ diff --git a/sale_consignment/static/description/assets/icons/wrench.png b/sale_consignment/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/sale_consignment/static/description/assets/icons/wrench.png differ diff --git a/sale_consignment/static/description/assets/misc/categories.png b/sale_consignment/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/sale_consignment/static/description/assets/misc/categories.png differ diff --git a/sale_consignment/static/description/assets/misc/check-box.png b/sale_consignment/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/sale_consignment/static/description/assets/misc/check-box.png differ diff --git a/sale_consignment/static/description/assets/misc/compass.png b/sale_consignment/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/sale_consignment/static/description/assets/misc/compass.png differ diff --git a/sale_consignment/static/description/assets/misc/corporate.png b/sale_consignment/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/sale_consignment/static/description/assets/misc/corporate.png differ diff --git a/sale_consignment/static/description/assets/misc/customer-support.png b/sale_consignment/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/sale_consignment/static/description/assets/misc/customer-support.png differ diff --git a/sale_consignment/static/description/assets/misc/cybrosys-logo.png b/sale_consignment/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/sale_consignment/static/description/assets/misc/cybrosys-logo.png differ diff --git a/sale_consignment/static/description/assets/misc/features.png b/sale_consignment/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/sale_consignment/static/description/assets/misc/features.png differ diff --git a/sale_consignment/static/description/assets/misc/logo.png b/sale_consignment/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/sale_consignment/static/description/assets/misc/logo.png differ diff --git a/sale_consignment/static/description/assets/misc/pictures.png b/sale_consignment/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/sale_consignment/static/description/assets/misc/pictures.png differ diff --git a/sale_consignment/static/description/assets/misc/pie-chart.png b/sale_consignment/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/sale_consignment/static/description/assets/misc/pie-chart.png differ diff --git a/sale_consignment/static/description/assets/misc/right-arrow.png b/sale_consignment/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/sale_consignment/static/description/assets/misc/right-arrow.png differ diff --git a/sale_consignment/static/description/assets/misc/star.png b/sale_consignment/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/sale_consignment/static/description/assets/misc/star.png differ diff --git a/sale_consignment/static/description/assets/misc/support.png b/sale_consignment/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/sale_consignment/static/description/assets/misc/support.png differ diff --git a/sale_consignment/static/description/assets/misc/whatsapp.png b/sale_consignment/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/sale_consignment/static/description/assets/misc/whatsapp.png differ diff --git a/sale_consignment/static/description/assets/modules/educational.png b/sale_consignment/static/description/assets/modules/educational.png new file mode 100644 index 000000000..fec2d72bc Binary files /dev/null and b/sale_consignment/static/description/assets/modules/educational.png differ diff --git a/sale_consignment/static/description/assets/modules/frond.png b/sale_consignment/static/description/assets/modules/frond.png new file mode 100644 index 000000000..c9d686d47 Binary files /dev/null and b/sale_consignment/static/description/assets/modules/frond.png differ diff --git a/sale_consignment/static/description/assets/modules/insurance.png b/sale_consignment/static/description/assets/modules/insurance.png new file mode 100644 index 000000000..6350a5b2e Binary files /dev/null and b/sale_consignment/static/description/assets/modules/insurance.png differ diff --git a/sale_consignment/static/description/assets/modules/laundry.png b/sale_consignment/static/description/assets/modules/laundry.png new file mode 100644 index 000000000..232897511 Binary files /dev/null and b/sale_consignment/static/description/assets/modules/laundry.png differ diff --git a/sale_consignment/static/description/assets/modules/legal.png b/sale_consignment/static/description/assets/modules/legal.png new file mode 100644 index 000000000..c61ac9571 Binary files /dev/null and b/sale_consignment/static/description/assets/modules/legal.png differ diff --git a/sale_consignment/static/description/assets/modules/spa.png b/sale_consignment/static/description/assets/modules/spa.png new file mode 100644 index 000000000..2a666bf79 Binary files /dev/null and b/sale_consignment/static/description/assets/modules/spa.png differ diff --git a/sale_consignment/static/description/assets/screenshots/consignment _moves.png b/sale_consignment/static/description/assets/screenshots/consignment _moves.png new file mode 100644 index 000000000..81e98bfd2 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/consignment _moves.png differ diff --git a/sale_consignment/static/description/assets/screenshots/consignment_order.png b/sale_consignment/static/description/assets/screenshots/consignment_order.png new file mode 100644 index 000000000..6a5a3ce61 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/consignment_order.png differ diff --git a/sale_consignment/static/description/assets/screenshots/hero.gif b/sale_consignment/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..a9fb0cd3c Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/hero.gif differ diff --git a/sale_consignment/static/description/assets/screenshots/mail_notification.png b/sale_consignment/static/description/assets/screenshots/mail_notification.png new file mode 100644 index 000000000..02b47ca3d Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/mail_notification.png differ diff --git a/sale_consignment/static/description/assets/screenshots/operation.png b/sale_consignment/static/description/assets/screenshots/operation.png new file mode 100644 index 000000000..1261e0aa0 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/operation.png differ diff --git a/sale_consignment/static/description/assets/screenshots/pickings.png b/sale_consignment/static/description/assets/screenshots/pickings.png new file mode 100644 index 000000000..b012a40ce Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/pickings.png differ diff --git a/sale_consignment/static/description/assets/screenshots/sale_order.png b/sale_consignment/static/description/assets/screenshots/sale_order.png new file mode 100644 index 000000000..586c6941b Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/sale_order.png differ diff --git a/sale_consignment/static/description/assets/screenshots/settings.png b/sale_consignment/static/description/assets/screenshots/settings.png new file mode 100644 index 000000000..d0b700d26 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/settings.png differ diff --git a/sale_consignment/static/description/assets/screenshots/tr_loc.png b/sale_consignment/static/description/assets/screenshots/tr_loc.png new file mode 100644 index 000000000..8d1e8156e Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/tr_loc.png differ diff --git a/sale_consignment/static/description/banner.png b/sale_consignment/static/description/banner.png new file mode 100644 index 000000000..d2babf661 Binary files /dev/null and b/sale_consignment/static/description/banner.png differ diff --git a/sale_consignment/static/description/cybro_logo.png b/sale_consignment/static/description/cybro_logo.png new file mode 100644 index 000000000..bb309114c Binary files /dev/null and b/sale_consignment/static/description/cybro_logo.png differ diff --git a/sale_consignment/static/description/icon.png b/sale_consignment/static/description/icon.png new file mode 100644 index 000000000..b7d40ace6 Binary files /dev/null and b/sale_consignment/static/description/icon.png differ diff --git a/sale_consignment/static/description/index.html b/sale_consignment/static/description/index.html new file mode 100644 index 000000000..7ead12f0c --- /dev/null +++ b/sale_consignment/static/description/index.html @@ -0,0 +1,635 @@ +
+ +
+ +
+
+ Community +
+
+
+ +
+
+
+ +

+ Sales Consignment +

+

+ Customer Can Sell Product as a Consignment Order. +

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

Explore This + Module

+
+ + + +
+
+ +
+

Overview +

+
+
+
+ The Sale Consignment module is a valuable application for managing product + sales through consignment orders. It enables you to sell products under + consignment terms, with automatic updates sent to the sales team via email + when consignment expiry times are reached. This functionality ensures + efficient management of consignment sales and timely notifications for + salesmen, enhancing overall sales processes and customer satisfaction. +
+
+ + +
+
+ +
+

Features +

+
+
+
+
+ +
+ + Sell Products as Consignment + + + User can Sell Products as Consignment Method. + +
+
+
+ +
+ + Picking and Sales direct access + + + Direct Pickings and Sales Records access from Consignment order. + +
+
+
+ +
+ + Move History + + + User can View the Move history + +
+
+
+ +
+ + Multi Sale Order for one Consignment + + + User can Create more than one sale order for a Consignment order + +
+
+
+ +
+ + Mail Notification + + + After the consignment expires, the salesperson will receive a mail notification. + +
+
+
+
+ + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Configuration Settings +

+

+ Enable the Feature from here. +

+ +
+
+

+ Location +

+

+ Create Consignment Location as the transit location. +

+ +
+
+

+ Operation type +

+

+ Create the Operation type for the Consignment move from location your location and to as consignment location +

+ +
+ +
+

+ Order +

+

+ Can create the order here. +

+ +
+
+

+ Related Sale order +

+

+ We can see the created sale order from here. +

+ +
+
+

+ Related Pickings +

+ +
+
+

+ Consignment Moves Records +

+ +
+
+

+ Mail Notification +

+ +
+
+
+ + +
+
+ +
+

Related + Products +

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

Our Services +

+
+
+
+
+
+ +
+
+ Odoo + Customization
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Support
+
+
+
+ +
+
+ Hire + Odoo + Developer
+
+
+
+ +
+
+ Odoo + Integration
+
+
+
+ +
+
+ Odoo + Migration
+
+
+
+ +
+
+ Odoo + Consultancy
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + +
+
+ +
+

Our + Industries +

+
+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + +
+
+ +
+

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ diff --git a/sale_consignment/views/product_product_views.xml b/sale_consignment/views/product_product_views.xml new file mode 100644 index 000000000..8649e5077 --- /dev/null +++ b/sale_consignment/views/product_product_views.xml @@ -0,0 +1,17 @@ + + + + + product.product.view.form.inherit.sale.consignment + + product.product + + + + + + + + \ No newline at end of file diff --git a/sale_consignment/views/res_config_settings_views.xml b/sale_consignment/views/res_config_settings_views.xml new file mode 100644 index 000000000..c8a4389de --- /dev/null +++ b/sale_consignment/views/res_config_settings_views.xml @@ -0,0 +1,68 @@ + + + + res.config.settings.view.form.inherit.delivery + + res.config.settings + + + +

Sale Consignment

+
+
+
+ +
+
+
+
+
+
+ +
+ Choose the product destination location. +
+
+
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
diff --git a/sale_consignment/views/res_partner_views.xml b/sale_consignment/views/res_partner_views.xml new file mode 100644 index 000000000..2093f9b99 --- /dev/null +++ b/sale_consignment/views/res_partner_views.xml @@ -0,0 +1,16 @@ + + + + res.partner.form.inherit.sale.consignment + res.partner + 20 + + + + + + + + + + \ No newline at end of file diff --git a/sale_consignment/views/sale_consignment_line_views.xml b/sale_consignment/views/sale_consignment_line_views.xml new file mode 100644 index 000000000..66b6cca31 --- /dev/null +++ b/sale_consignment/views/sale_consignment_line_views.xml @@ -0,0 +1,49 @@ + + + + + sale.consignment.line + sale.consignment.line + + + + + + + + + + + + + + sale.consignment.line + sale.consignment.line + +
+ + + + + + + + +
+
+
+ + + Consignment lines + sale.consignment.line + tree,form + + + +
\ No newline at end of file diff --git a/sale_consignment/views/sale_consignment_views.xml b/sale_consignment/views/sale_consignment_views.xml new file mode 100644 index 000000000..44f0ca572 --- /dev/null +++ b/sale_consignment/views/sale_consignment_views.xml @@ -0,0 +1,120 @@ + + + + + Consignment + sale.consignment + tree,form + + + + sale.consignment + sale.consignment + +
+
+ +
+ +
+ + +
+
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+
+ + + sale.consignment + sale.consignment + + + + + + + + + + + + +
diff --git a/sale_consignment/views/sale_order_views.xml b/sale_consignment/views/sale_order_views.xml new file mode 100644 index 000000000..0b35fc24e --- /dev/null +++ b/sale_consignment/views/sale_order_views.xml @@ -0,0 +1,13 @@ + + + + sale.order.form.inherit + sale.order + + + + + + + +