diff --git a/sale_consignment/README.rst b/sale_consignment/README.rst new file mode 100644 index 000000000..0b1b89f95 --- /dev/null +++ b/sale_consignment/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 + +Sale Consignment +================ +This module provide Sale Orders as Consignment Order. + +Configuration +============= +* No additional configuration is needed. + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developers : (V17) Vishnu Kp, + (V18) Aysha Shalin + 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/sale_consignment/__init__.py b/sale_consignment/__init__.py new file mode 100644 index 000000000..aaa60b637 --- /dev/null +++ b/sale_consignment/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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..09939180a --- /dev/null +++ b/sale_consignment/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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': "18.0.1.0.0", + 'category': 'Sales', + 'summary': """Consignment of Sale Orders.""", + 'description': """This module provide Sale Orders with consignment option""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'maintainer': "Cybrosys Techno Solutions", + 'website': "https://www.cybrosys.com", + 'depends': ['base','sale_management', 'stock', 'mail'], + 'data': [ + 'security/ir.model.access.csv', + 'security/sale_consignment_groups.xml', + 'data/sequence.xml', + 'data/consignment_expiry_mail.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_template_views.xml', + 'views/sale_order_views.xml' + ], + 'images': ['static/description/banner.jpg'], + '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..cfbf4aedb --- /dev/null +++ b/sale_consignment/data/consignment_expiry_mail.xml @@ -0,0 +1,33 @@ + + + + + \ 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..ca1672d53 --- /dev/null +++ b/sale_consignment/data/sequence.xml @@ -0,0 +1,25 @@ + + + + + + Sale Consignment + sale.consignment + SC + 5 + + + + + + + Reminder: Sale Consignment Expiry date + + code + model.mail_update_to_salesman() + 1 + days + 3 + + + diff --git a/sale_consignment/doc/RELEASE_NOTES.md b/sale_consignment/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..be5fd98a0 --- /dev/null +++ b/sale_consignment/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 27.06.2025 +#### Version 18.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..2eb9083de --- /dev/null +++ b/sale_consignment/models/__init__.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 res_partner +from . import sale_consignment +from . import sale_consignment_line +from . import sale_order +from . import stock_picking diff --git a/sale_consignment/models/product_product.py b/sale_consignment/models/product_product.py new file mode 100644 index 000000000..30ed80b37 --- /dev/null +++ b/sale_consignment/models/product_product.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 ProductTemplate(models.Model): + """ Class inherited to add the custom fields to the model """ + _inherit = 'product.template' + + is_consignment = fields.Boolean(string='Is Consignment', + help="If enabled, it will be considered 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..07fd21292 --- /dev/null +++ b/sale_consignment/models/res_config_settings.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 ResConfigSettings(models.TransientModel): + """ This transient model is used to add the custom fields to the + settings page. """ + _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 un-build 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', + help="Consignment Orders", + implied_group='sale_consignment.group_consignment_order') + consignment_product_only = fields.Boolean( + string='Consignment Product', + config_parameter='sale_consignment.consignment_product_only', + help='Enable Product Filtered in consignment by Consignment Product') + consignment_customer_only = fields.Boolean( + string='Consignment Customer', + config_parameter='sale_consignment.consignment_customer_only', + help='Enable Customer Filtered in consignment by Consignment Customer') diff --git a/sale_consignment/models/res_partner.py b/sale_consignment/models/res_partner.py new file mode 100644 index 000000000..15f66d4c2 --- /dev/null +++ b/sale_consignment/models/res_partner.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 ResPartner(models.Model): + """ Class is used to add the custom fields """ + _inherit = 'res.partner' + + is_consignment = fields.Boolean(string="Consignment Customer", + help='If Enabled, customer as consignment type' + 'category') diff --git a/sale_consignment/models/sale_consignment.py b/sale_consignment/models/sale_consignment.py new file mode 100644 index 000000000..0b433cec0 --- /dev/null +++ b/sale_consignment/models/sale_consignment.py @@ -0,0 +1,243 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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, Command, fields, models, _ +from odoo.exceptions import UserError +from datetime import date + + +class SaleConsignment(models.Model): + """ This is the main model for the sale consignment feature """ + _name = "sale.consignment" + _description = "Sale Consignment" + _inherit = ['mail.activity.mixin', 'mail.thread'] + + @api.model + def _settings_domain(self): + """ This function return the customer domain fields value from the + settings page. """ + customer_domain = self.env['ir.config_parameter'].get_param( + 'sale_consignment.consignment_customer_only') + return customer_domain + + @api.model + def _default_destination(self): + """ This function return the destination location fields + value from the settings page. """ + location_dest_id = self.env['ir.config_parameter'].get_param( + 'sale_consignment.location_dest_id') + return int(location_dest_id) + + name = fields.Char(string='Name', default='New', + copy=False, help="Sequence of the consignment Sale") + company_id = fields.Many2one('res.company', string='Company', + default=lambda self: self.env.user.company_id, + help='default company') + partner_id = fields.Many2one('res.partner', string='Customer', + 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', + help="Product price list based on the " + "customer") + state = fields.Selection( + selection=[('draft', 'Draft'), ('confirm', 'Confirm')], + help="State of the sale consignment", + default="draft") + user_id = fields.Many2one("res.users", string='Sales Person', + help="Responsible sales person for the sale " + "consignment", + default=lambda self: self.env.user, + required=True) + consignment_line_ids = fields.One2many('sale.consignment.line', + 'consignment_id', + string='Order Line', + help="Consignment Lines") + 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', + help="Number of sale order related to " + "the consignment") + picking_count = fields.Integer(string='Picking Order', + compute='_compute_picking_count', + help="Number of picking order " + "related to the consignment") + sale_order_id = fields.Many2one('sale.order', + string='Sale Order', + help='Related 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='Condition', + compute='_compute_condition_check', + help="To check whether the consignment " + "is enable or not") + customer_domain = fields.Boolean(string='Customer domain', + default=lambda self: self._settings_domain(), + help='Customer 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.depends('customer_domain') + def _compute_condition_check(self): + """Used to apply the condition into condition_check field if + customer_domain is true """ + for record in self: + record.condition_check = [ + ('is_consignment', '=', True)] if record.customer_domain else [] + + @api.model + def create(self, vals): + """Used to add the sequence""" + 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): + """Used to calculate the number of sales count""" + 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): + """Used to calculate the number of picking count""" + 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): + """Used to find the price-list based on the partner""" + self.price_list_id = self.partner_id.property_product_pricelist.id + + def action_order_confirm(self): + """Used to confirm the consignment order""" + 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, + 'quantity': line.demand_quantity, + 'picked': True, + '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): + """Used to create the related sale order for the consignment""" + 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): + """Used to view the sale order of the consignment order""" + return { + 'name': 'Sale Order', + 'view_mode': 'list,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): + """Used to view the picking of the consignment order""" + return { + 'name': 'Picking Order', + 'view_mode': 'list,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): + """This function is used to send a mail notification to salesman""" + 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..45ab5c174 --- /dev/null +++ b/sale_consignment/models/sale_consignment_line.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 SaleConsignmentLine(models.Model): + """ This class is used to manage the sale consignment line """ + _name = "sale.consignment.line" + _rec_name = "consignment_id" + _description = "Sale Consignment Line" + + @api.model + def _settings_domain(self): + """This function is used to get the settings domain""" + product_domain = self.env[ + 'ir.config_parameter'].get_param( + 'sale_consignment.consignment_product_only') + return product_domain + + product_id = fields.Many2one('product.product', string='Products', + help="Product in the consignment order line", + required=True) + demand_quantity = fields.Integer(string='Demand Quantity', required=True, + help="Demanded quantity of the product") + done_quantity = fields.Integer(string='Done Quantity', + help="Done quantity of the product") + remaining_quantity = fields.Integer(string='Remaining Quantity', + compute='_compute_remaining_quantity', + help="Quantity of remaining product") + 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(compute='_compute_condition_check') + product_domain = fields.Boolean(default=lambda self: self._settings_domain()) + + @api.depends('product_domain') + def _compute_condition_check(self): + """ Used to apply the condition into condition_check_line field if + is_consignment is true. """ + for record in self: + record.condition_check_line = [('is_consignment', '=', True)] if record.product_domain else [] + + def _compute_remaining_quantity(self): + """ This function is used to compute the remaining quantity of the + consignment order. """ + 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..b840463f9 --- /dev/null +++ b/sale_consignment/models/sale_order.py @@ -0,0 +1,31 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Aysha Shalin (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 SaleOrder(models.Model): + """ This class inherited to add the custom fields """ + _inherit = 'sale.order' + + consignment_id = fields.Many2one('sale.consignment', + string='Source Document', + help="Related Consignment") diff --git a/sale_consignment/models/stock_picking.py b/sale_consignment/models/stock_picking.py new file mode 100644 index 000000000..c0e9feb97 --- /dev/null +++ b/sale_consignment/models/stock_picking.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Aysha Shalin (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 StockPicking(models.Model): + """ This class is inherited to add custom fields and also + super the validate button. """ + _inherit = 'stock.picking' + + consignment_id = fields.Many2one('sale.consignment', + string="Consignment ID", + help='Related Consignment Id') + + def button_validate(self): + """ This method is used to calculate the number of done quantity + related to the consignment order. """ + res = super().button_validate() + consignment_id = self.sale_id.consignment_id + if consignment_id: + self.location_id = consignment_id.location_dest_id + self.move_line_ids.location_id = consignment_id.location_dest_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 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..736fe1abe --- /dev/null +++ b/sale_consignment/security/sale_consignment_groups.xml @@ -0,0 +1,8 @@ + + + + + Manage Consignment order + + + \ No newline at end of file diff --git a/sale_consignment/static/description/assets/cybro-icon.png b/sale_consignment/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/sale_consignment/static/description/assets/cybro-icon.png differ diff --git a/sale_consignment/static/description/assets/cybro-odoo.png b/sale_consignment/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/sale_consignment/static/description/assets/cybro-odoo.png differ diff --git a/sale_consignment/static/description/assets/h2.png b/sale_consignment/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/sale_consignment/static/description/assets/h2.png differ diff --git a/sale_consignment/static/description/assets/icons/arrows-repeat.svg b/sale_consignment/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/banner-1.png b/sale_consignment/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/banner-1.png differ diff --git a/sale_consignment/static/description/assets/icons/banner-2.svg b/sale_consignment/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/banner-bg.png b/sale_consignment/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/banner-bg.png differ diff --git a/sale_consignment/static/description/assets/icons/banner-bg.svg b/sale_consignment/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/sale_consignment/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/banner-call.svg b/sale_consignment/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/sale_consignment/static/description/assets/icons/banner-mail.svg b/sale_consignment/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/sale_consignment/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/sale_consignment/static/description/assets/icons/banner-pattern.svg b/sale_consignment/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/banner-promo.svg b/sale_consignment/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/brand-pair.svg b/sale_consignment/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/sale_consignment/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/close-icon.svg b/sale_consignment/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/sale_consignment/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + 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/collabarate-icon.svg b/sale_consignment/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + 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/cybro-logo.png b/sale_consignment/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/cybro-logo.png differ diff --git a/sale_consignment/static/description/assets/icons/down.svg b/sale_consignment/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file 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/faq.png b/sale_consignment/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/faq.png differ diff --git a/sale_consignment/static/description/assets/icons/feature-icon.svg b/sale_consignment/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/feature.png b/sale_consignment/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/feature.png differ diff --git a/sale_consignment/static/description/assets/icons/gear.svg b/sale_consignment/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/sale_consignment/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/hero.gif b/sale_consignment/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/sale_consignment/static/description/assets/icons/hero.gif differ diff --git a/sale_consignment/static/description/assets/icons/hire-odoo.svg b/sale_consignment/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + 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/life-ring-icon.svg b/sale_consignment/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + 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/mail.svg b/sale_consignment/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + 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/notes.png b/sale_consignment/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/notes.png differ diff --git a/sale_consignment/static/description/assets/icons/notification icon.svg b/sale_consignment/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/odoo-consultancy.svg b/sale_consignment/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/sale_consignment/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/sale_consignment/static/description/assets/icons/odoo-licencing.svg b/sale_consignment/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/sale_consignment/static/description/assets/icons/odoo-logo.png b/sale_consignment/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/sale_consignment/static/description/assets/icons/odoo-logo.png differ diff --git a/sale_consignment/static/description/assets/icons/patter.svg b/sale_consignment/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/sale_consignment/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/pattern1.png b/sale_consignment/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/sale_consignment/static/description/assets/icons/pattern1.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-piece-icon.svg b/sale_consignment/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/replace-icon.svg b/sale_consignment/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/screenshot-main.png b/sale_consignment/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/screenshot-main.png differ diff --git a/sale_consignment/static/description/assets/icons/screenshot.png b/sale_consignment/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/screenshot.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/skype-fill.svg b/sale_consignment/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/skype.png b/sale_consignment/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/skype.png differ diff --git a/sale_consignment/static/description/assets/icons/skype.svg b/sale_consignment/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/sale_consignment/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/sale_consignment/static/description/assets/icons/star-1.svg b/sale_consignment/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/star-2.svg b/sale_consignment/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/sale_consignment/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/sale_consignment/static/description/assets/icons/support.png b/sale_consignment/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/support.png differ diff --git a/sale_consignment/static/description/assets/icons/test-1 - Copy.png b/sale_consignment/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/test-1 - Copy.png differ diff --git a/sale_consignment/static/description/assets/icons/test-1.png b/sale_consignment/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/sale_consignment/static/description/assets/icons/test-1.png differ diff --git a/sale_consignment/static/description/assets/icons/test-2.png b/sale_consignment/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/sale_consignment/static/description/assets/icons/test-2.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/translate.svg b/sale_consignment/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/sale_consignment/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/video.png b/sale_consignment/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/video.png differ diff --git a/sale_consignment/static/description/assets/icons/whatsapp.png b/sale_consignment/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/whatsapp.png differ diff --git a/sale_consignment/static/description/assets/icons/wrench-icon.svg b/sale_consignment/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/sale_consignment/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + 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/modules/1.png b/sale_consignment/static/description/assets/modules/1.png new file mode 100644 index 000000000..906d51bf5 Binary files /dev/null and b/sale_consignment/static/description/assets/modules/1.png differ diff --git a/sale_consignment/static/description/assets/modules/2.jpg b/sale_consignment/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..73613d2fb Binary files /dev/null and b/sale_consignment/static/description/assets/modules/2.jpg differ diff --git a/sale_consignment/static/description/assets/modules/3.png b/sale_consignment/static/description/assets/modules/3.png new file mode 100644 index 000000000..5a36b384e Binary files /dev/null and b/sale_consignment/static/description/assets/modules/3.png differ diff --git a/sale_consignment/static/description/assets/modules/4.png b/sale_consignment/static/description/assets/modules/4.png new file mode 100644 index 000000000..3a3ee8e83 Binary files /dev/null and b/sale_consignment/static/description/assets/modules/4.png differ diff --git a/sale_consignment/static/description/assets/modules/5.png b/sale_consignment/static/description/assets/modules/5.png new file mode 100644 index 000000000..5ecbe9819 Binary files /dev/null and b/sale_consignment/static/description/assets/modules/5.png differ diff --git a/sale_consignment/static/description/assets/modules/6.png b/sale_consignment/static/description/assets/modules/6.png new file mode 100644 index 000000000..29c325870 Binary files /dev/null and b/sale_consignment/static/description/assets/modules/6.png differ diff --git a/sale_consignment/static/description/assets/screenshots/1.png b/sale_consignment/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..5a990f17e Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/1.png differ diff --git a/sale_consignment/static/description/assets/screenshots/10.png b/sale_consignment/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..bc7a319c6 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/10.png differ diff --git a/sale_consignment/static/description/assets/screenshots/11.png b/sale_consignment/static/description/assets/screenshots/11.png new file mode 100644 index 000000000..a08b59700 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/11.png differ diff --git a/sale_consignment/static/description/assets/screenshots/12.png b/sale_consignment/static/description/assets/screenshots/12.png new file mode 100644 index 000000000..87d1d8962 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/12.png differ diff --git a/sale_consignment/static/description/assets/screenshots/13.png b/sale_consignment/static/description/assets/screenshots/13.png new file mode 100644 index 000000000..a10eb3356 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/13.png differ diff --git a/sale_consignment/static/description/assets/screenshots/14.png b/sale_consignment/static/description/assets/screenshots/14.png new file mode 100644 index 000000000..17015f22b Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/14.png differ diff --git a/sale_consignment/static/description/assets/screenshots/15.png b/sale_consignment/static/description/assets/screenshots/15.png new file mode 100644 index 000000000..c1bf0587f Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/15.png differ diff --git a/sale_consignment/static/description/assets/screenshots/16.png b/sale_consignment/static/description/assets/screenshots/16.png new file mode 100644 index 000000000..c69455401 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/16.png differ diff --git a/sale_consignment/static/description/assets/screenshots/17.png b/sale_consignment/static/description/assets/screenshots/17.png new file mode 100644 index 000000000..a029a69fc Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/17.png differ diff --git a/sale_consignment/static/description/assets/screenshots/2.png b/sale_consignment/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..d5a916156 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/2.png differ diff --git a/sale_consignment/static/description/assets/screenshots/3.png b/sale_consignment/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..1550b14a0 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/3.png differ diff --git a/sale_consignment/static/description/assets/screenshots/4.png b/sale_consignment/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..c9936ae19 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/4.png differ diff --git a/sale_consignment/static/description/assets/screenshots/6.png b/sale_consignment/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..ba16158d4 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/6.png differ diff --git a/sale_consignment/static/description/assets/screenshots/7.png b/sale_consignment/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..d3a3b6da8 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/7.png differ diff --git a/sale_consignment/static/description/assets/screenshots/8.png b/sale_consignment/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..da88dd8f2 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/8.png differ diff --git a/sale_consignment/static/description/assets/screenshots/9.png b/sale_consignment/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..f6e14c7ab Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/9.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..88d973ba5 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/hero.gif differ diff --git a/sale_consignment/static/description/assets/y18.jpg b/sale_consignment/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/sale_consignment/static/description/assets/y18.jpg differ diff --git a/sale_consignment/static/description/banner.png b/sale_consignment/static/description/banner.png new file mode 100644 index 000000000..217d188dd Binary files /dev/null and b/sale_consignment/static/description/banner.png differ diff --git a/sale_consignment/static/description/icon.png b/sale_consignment/static/description/icon.png new file mode 100644 index 000000000..58460235b 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..1266d77d3 --- /dev/null +++ b/sale_consignment/static/description/index.html @@ -0,0 +1,1432 @@ + + + + + + Sale Consignment + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+ + + + +
+
+ +
+
+
+
+

+ Customer Can Sell Product as Consignment Orders. +

+

Sale Consignment +

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

Key + Heighlights

+
+
+
+
+ +
+
+ Sell Products as Consignment Order +
+

+ User can sell Products as Consignment Orders.

+
+
+
+
+
+ +
+
+ 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 a 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.

+
+
+
+
+ +
+
+
+ Sale Consignment +

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

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

+ Configuration + + Settings +

+
+
+

+ Enable the Consignment Feature. +

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

+ Select the Consignment + + Location +

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

+ Create New + + Location +

+
+
+

+ Create a location with Location Type as a + Transit Location and choose this as + the Destination Location in the Operation Type. +

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

+ Create New + + Operation Type +

+
+
+

+ Create a new Operation type as an internal transfer + specify the destination location as the Consignment Location. +

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

+ Consignment + Order +

+
+
+

+ User can create Sale Consignment order from + 'Consignment' Menu. +

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

+ Confirm Consignment + Order +

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

+ Sale + + Order. +

+
+
+

+ Once a sale consignment is confirmed, + then user can create Sale Order + related to the consignment. +

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

+ Consignment + + Moves +

+
+
+

+ Consignment moves displays the history of + all Consignment moves. +

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

+ Mail + + Notification +

+
+
+

+ Mail notification after the Consignment Expiry. +

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

+ Enable + + Is Consignment +

+
+
+

+ Enable this field from Product Variants. +

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

+ Consignment + + Product +

+
+
+

+ By enabling this you will be able to + filter the products which could be consigned. +

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

+ Filtered + + Products +

+
+
+

+ Only the products with Consignment enabled are shown here. +

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

+ Enable + + Consignment Customer +

+
+
+

+ Enable this field from Partners form. +

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

+ Consignment + + Customer +

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

+ Filtered + + Customers +

+
+
+

+ Only the customers with Consignment enabled are shown here. +

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

+ Sell Products as Consignment.

+
+
+
+
+
+
+
+ +
+

+ Picking and Sales Direct Access.

+
+
+
+
+
+
+
+ +
+

+ User can View the Move History.

+
+
+
+
+
+
+
+ +
+

+ Mail Notification After the Consignment Expiry.

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

+ While configuring a + backup, selecting + the Zip option will + include the + filestore in the + backup, while + choosing the Dump + option will create a + backup without the + filestore. +

+
+
+ +
+ +
+

+ Enable the "Remove + Old Backups" option + in the backup + creation view to + automatically delete + previous backups + based on the number + of days specified. +

+
+
+ +
+ +
+

+ Enable the "Notify + User" option and + specify a contact to + receive an email + containing a + detailed report with + the failure reason + and backup details. + This option will + also send an email + upon successful + backup. +

+
+
+ +
+ +
+

+ Select the backup + destination as local + storage and specify + a backup path to a + location on the + system to create + backups on your own + system. +

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

+ Latest Release 18.0.1.0.0 +

+ + 2nd April, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/sale_consignment/views/product_template_views.xml b/sale_consignment/views/product_template_views.xml new file mode 100644 index 000000000..1227c61c6 --- /dev/null +++ b/sale_consignment/views/product_template_views.xml @@ -0,0 +1,17 @@ + + + + + product.supplier.view.form.inherit.sale.consignment + product.template + + + + + + + + + + \ 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..5fdbae989 --- /dev/null +++ b/sale_consignment/views/res_config_settings_views.xml @@ -0,0 +1,42 @@ + + + + + + res.config.settings.view.form.inherit.sale.consignment + + res.config.settings + + + + + + +
+
+ +
+
+
+ + + + + + +
+
+
+
+
\ No newline at end of file diff --git a/sale_consignment/views/res_partner_views.xml b/sale_consignment/views/res_partner_views.xml new file mode 100644 index 000000000..87321963e --- /dev/null +++ b/sale_consignment/views/res_partner_views.xml @@ -0,0 +1,17 @@ + + + + + res.partner.view.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..dd4077b89 --- /dev/null +++ b/sale_consignment/views/sale_consignment_line_views.xml @@ -0,0 +1,51 @@ + + + + + sale.consignment.line + sale.consignment.line + + + + + + + + + + + + + + sale.consignment.line.view.form + sale.consignment.line + +
+ + + + + + + + + + +
+
+
+ + + Consignment line + sale.consignment.line + list,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..b30dc18c4 --- /dev/null +++ b/sale_consignment/views/sale_consignment_views.xml @@ -0,0 +1,119 @@ + + + + + Consignment + sale.consignment + list,form + + + + + sale.consignment.view.form + sale.consignment + +
+
+ +
+ +
+ + +
+
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + + sale.consignment.view.list + sale.consignment + + + + + + + + + + + + +
\ No newline at end of file diff --git a/sale_consignment/views/sale_order_views.xml b/sale_consignment/views/sale_order_views.xml new file mode 100644 index 000000000..f5e7f89df --- /dev/null +++ b/sale_consignment/views/sale_order_views.xml @@ -0,0 +1,14 @@ + + + + + sale.order.view.form.inherit.sale.consignment + sale.order + + + + + + + + \ No newline at end of file