diff --git a/sale_consignment/README.rst b/sale_consignment/README.rst new file mode 100644 index 000000000..c6dd77da5 --- /dev/null +++ b/sale_consignment/README.rst @@ -0,0 +1,41 @@ +.. 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: (V17) 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..b7073f456 --- /dev/null +++ b/sale_consignment/__manifest__.py @@ -0,0 +1,47 @@ +# -*- 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': "17.0.1.0.0", + 'category': 'Sales', + 'summary': """Consignment Sale Order""", + 'description': """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', '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_product_views.xml', + 'views/sale_order_views.xml'], + 'images': ['static/description/banner.jpg'], + 'license': "AGPL-3", + 'installable': True, + '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..89e03546c --- /dev/null +++ b/sale_consignment/data/consignment_expiry_mail.xml @@ -0,0 +1,32 @@ + + + + \ 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..5a6c9a26e --- /dev/null +++ b/sale_consignment/data/sequence.xml @@ -0,0 +1,24 @@ + + + + + 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..44ff87853 --- /dev/null +++ b/sale_consignment/doc/RELEASE_NOTES.md @@ -0,0 +1,5 @@ +## Module +#### 08.03.2024 +#### Version 17.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..292485632 --- /dev/null +++ b/sale_consignment/models/product_product.py @@ -0,0 +1,31 @@ +# -*- 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' + """Class inherited to add the custom fields to the model""" + + is_consignment = fields.Boolean( + string='Is Consignment', 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..8519465af --- /dev/null +++ b/sale_consignment/models/res_config_settings.py @@ -0,0 +1,53 @@ +# -*- 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' + """This transient model is used to add the custom fields to the + settings page""" + + location_dest_id = fields.Many2one( + 'stock.location', 'Destination Location', + help="Location where you want to send the components resulting " + "from the un-build order.", + required=True, + 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(help='Enable Product ' + 'Filtered in ' + 'consignment by ' + 'Consignment Prodduct', + string='Consignment Product', + config_parameter='sale_consignment.consignment_product_only', ) + consignment_customer_only = fields.Boolean(help='Enable Customer ' + 'Filtered in ' + 'consignment by ' + 'Consignment Customer', + 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..b3e4befed --- /dev/null +++ b/sale_consignment/models/res_partner.py @@ -0,0 +1,31 @@ +# -*- 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' + """Class is used to add the custom fields """ + + is_consignment = fields.Boolean(string="Consignment Customer", + help='Enable 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..8e59d4263 --- /dev/null +++ b/sale_consignment/models/sale_consignment.py @@ -0,0 +1,243 @@ +# -*- 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'] + + """This is the main model for the sale consignment feature""" + + @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_product_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', help="Sequence of the consignment Sale", + default='New') + company_id = fields.Many2one('res.company', + string='Company', help='default company', + default=lambda self: self.env.user.company_id) + 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', + help="Product price list based on the " + "customer", + compute='_compute_partner_id') + 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') + 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', + help="Number of sale order related to " + "the consignment", + compute='_compute_sale_count') + picking_count = fields.Integer(string='Picking Order', + help="Number of picking order " + "related to the consignment", + compute='_compute_picking_count') + sale_order_id = fields.Many2one('sale.order', help='Related sale order', + string='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( + default=lambda self: self._settings_domain(), + help='Customer domain', + string='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': '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): + """Used to view the picking of the consignment order""" + 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): + """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..1b6369fd1 --- /dev/null +++ b/sale_consignment/models/sale_consignment_line.py @@ -0,0 +1,69 @@ +# -*- 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 SaleConsignmentLine(models.Model): + """This class is used to manage the sale consignment line""" + _name = "sale.consignment.line" + _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', + 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(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..8be425e27 --- /dev/null +++ b/sale_consignment/models/sale_order.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 SaleOrder(models.Model): + _inherit = 'sale.order' + """This class inherited to add the custom fields""" + + 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..1a3aaaa95 --- /dev/null +++ b/sale_consignment/models/stock_picking.py @@ -0,0 +1,45 @@ +# -*- 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 + + +class StockPicking(models.Model): + _inherit = 'stock.picking' + """The class is inherited to add custom fields and also + super the validate button""" + 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 + 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..e4df20ca8 --- /dev/null +++ b/sale_consignment/security/sale_consignment_groups.xml @@ -0,0 +1,8 @@ + + + + + Manage Consignment order + + + diff --git a/sale_consignment/static/description/assets/icons/capture (1).png b/sale_consignment/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/sale_consignment/static/description/assets/icons/capture (1).png differ 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/img.png b/sale_consignment/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/img.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/photo-capture.png b/sale_consignment/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/sale_consignment/static/description/assets/icons/photo-capture.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/Cybrosys R.png b/sale_consignment/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/sale_consignment/static/description/assets/misc/Cybrosys R.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/email.svg b/sale_consignment/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/sale_consignment/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/phone.svg b/sale_consignment/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/sale_consignment/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + 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 (1) 2.svg b/sale_consignment/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/sale_consignment/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + 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 (1) 1.svg b/sale_consignment/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/sale_consignment/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/sale_consignment/static/description/assets/misc/support-email.svg b/sale_consignment/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/sale_consignment/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + 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/tick-mark.svg b/sale_consignment/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/sale_consignment/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/sale_consignment/static/description/assets/misc/whatsapp 1.svg b/sale_consignment/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/sale_consignment/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + 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/misc/whatsapp.svg b/sale_consignment/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/sale_consignment/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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..ba1058c42 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.png b/sale_consignment/static/description/assets/modules/2.png new file mode 100644 index 000000000..6949185dd Binary files /dev/null and b/sale_consignment/static/description/assets/modules/2.png 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..4e506f79b 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..e78427938 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 100755 index 000000000..272ec20f9 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..7d5c3154f Binary files /dev/null and b/sale_consignment/static/description/assets/modules/6.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..c8ebca719 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..432cd5474 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/ot.png b/sale_consignment/static/description/assets/screenshots/ot.png new file mode 100644 index 000000000..36a5b3d35 Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/ot.png differ diff --git a/sale_consignment/static/description/assets/screenshots/other_info.png b/sale_consignment/static/description/assets/screenshots/other_info.png new file mode 100644 index 000000000..938c198bd Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/other_info.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..d56f79d77 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..307539d09 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..89431951f Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/settings.png differ diff --git a/sale_consignment/static/description/assets/screenshots/ss1.png b/sale_consignment/static/description/assets/screenshots/ss1.png new file mode 100644 index 000000000..60cc03b3f Binary files /dev/null and b/sale_consignment/static/description/assets/screenshots/ss1.png differ diff --git a/sale_consignment/static/description/banner.jpg b/sale_consignment/static/description/banner.jpg new file mode 100644 index 000000000..c394b4366 Binary files /dev/null and b/sale_consignment/static/description/banner.jpg differ diff --git a/sale_consignment/static/description/icon.png b/sale_consignment/static/description/icon.png new file mode 100644 index 000000000..4b317cd64 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..1009ab5ef --- /dev/null +++ b/sale_consignment/static/description/index.html @@ -0,0 +1,668 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+
+
+
+
+

+ Sale Consignment

+

+ Customer Can Sell Product as a Consignment Order. +

+
+ +
+
+
+ +
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

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

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

+ Configuration Settings

+
+ Enable the Feature from here.
+
+
+
+
+
+
+ +
+
+

+ Create Operation Type

+
Create an Operation type as a internal transfer specify the destination location as a transit location +
+
+
+
+
+
+
+ +
+
+

+ Consignment Order

+
User can create Sale Consignment order from here. +
+
+
+
+ +
+
+
+ +
+
+

+ Sale Order

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

+ Picking Page

+
Followed by the sale order user can created pickings. +
+
+
+
+
+
+
+ +
+
+

+ Other Info

+
Other info page +
+
+
+
+
+
+
+ +
+
+

+ Mail Notification

+
Mail Notification After the Consignment Expiry. +
+
+
+
+
+
+
+
    +
  • + Sell Products as Consignment. +
  • + Picking and Sales Direct Access. +
  • + User can View the Move History. +
  • + Mail Notification After the Consignment Expiry. + +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:08th Mar 2024 +
+

+ Odoo 17 Sales Consignment.

+
+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/sale_consignment/views/product_product_views.xml b/sale_consignment/views/product_product_views.xml new file mode 100644 index 000000000..a2f379bb9 --- /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..619234074 --- /dev/null +++ b/sale_consignment/views/res_config_settings_views.xml @@ -0,0 +1,40 @@ + + + + + + res.config.settings.view.form.inherit.sale.consignment + + res.config.settings + + + + + + +
+
+ +
+
+
+ + + + + + +
+
+
+
+
diff --git a/sale_consignment/views/res_partner_views.xml b/sale_consignment/views/res_partner_views.xml new file mode 100644 index 000000000..dd7086f1a --- /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..5abbed6d0 --- /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 + 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..9ff612dae --- /dev/null +++ b/sale_consignment/views/sale_consignment_views.xml @@ -0,0 +1,124 @@ + + + + + Consignment + sale.consignment + tree,form + + + + + sale.consignment.view.form + sale.consignment + +
+
+ +
+ +
+ + +
+
+

+ +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + +
+
+
+
+ + + sale.consignment.view.tree + 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..2c2e23082 --- /dev/null +++ b/sale_consignment/views/sale_order_views.xml @@ -0,0 +1,14 @@ + + + + + sale.order.view.form.inherit.sale.consignment + sale.order + + + + + + + +