Browse Source

Sep 13: [ADD] Initial commit 'sales_stock_reservation'

pull/332/merge
Cybrosys Technologies 8 months ago
parent
commit
908a4b215b
  1. 45
      sales_stock_reservation/README.rst
  2. 23
      sales_stock_reservation/__init__.py
  3. 47
      sales_stock_reservation/__manifest__.py
  4. 13
      sales_stock_reservation/data/ir_sequence_data.xml
  5. 10
      sales_stock_reservation/data/stock_location_data.xml
  6. 9
      sales_stock_reservation/doc/RELEASE_NOTES.md
  7. 24
      sales_stock_reservation/models/__init__.py
  8. 44
      sales_stock_reservation/models/res_config_settings.py
  9. 160
      sales_stock_reservation/models/sale_order.py
  10. 61
      sales_stock_reservation/models/stock_reserved.py
  11. 4
      sales_stock_reservation/security/ir.model.access.csv
  12. BIN
      sales_stock_reservation/static/description/assets/icons/check.png
  13. BIN
      sales_stock_reservation/static/description/assets/icons/chevron.png
  14. BIN
      sales_stock_reservation/static/description/assets/icons/cogs.png
  15. BIN
      sales_stock_reservation/static/description/assets/icons/consultation.png
  16. BIN
      sales_stock_reservation/static/description/assets/icons/ecom-black.png
  17. BIN
      sales_stock_reservation/static/description/assets/icons/education-black.png
  18. BIN
      sales_stock_reservation/static/description/assets/icons/hotel-black.png
  19. BIN
      sales_stock_reservation/static/description/assets/icons/license.png
  20. BIN
      sales_stock_reservation/static/description/assets/icons/lifebuoy.png
  21. BIN
      sales_stock_reservation/static/description/assets/icons/manufacturing-black.png
  22. BIN
      sales_stock_reservation/static/description/assets/icons/pos-black.png
  23. BIN
      sales_stock_reservation/static/description/assets/icons/puzzle.png
  24. BIN
      sales_stock_reservation/static/description/assets/icons/restaurant-black.png
  25. BIN
      sales_stock_reservation/static/description/assets/icons/service-black.png
  26. BIN
      sales_stock_reservation/static/description/assets/icons/trading-black.png
  27. BIN
      sales_stock_reservation/static/description/assets/icons/training.png
  28. BIN
      sales_stock_reservation/static/description/assets/icons/update.png
  29. BIN
      sales_stock_reservation/static/description/assets/icons/user.png
  30. BIN
      sales_stock_reservation/static/description/assets/icons/wrench.png
  31. BIN
      sales_stock_reservation/static/description/assets/misc/categories.png
  32. BIN
      sales_stock_reservation/static/description/assets/misc/check-box.png
  33. BIN
      sales_stock_reservation/static/description/assets/misc/compass.png
  34. BIN
      sales_stock_reservation/static/description/assets/misc/corporate.png
  35. BIN
      sales_stock_reservation/static/description/assets/misc/customer-support.png
  36. BIN
      sales_stock_reservation/static/description/assets/misc/cybrosys-logo.png
  37. BIN
      sales_stock_reservation/static/description/assets/misc/features.png
  38. BIN
      sales_stock_reservation/static/description/assets/misc/logo.png
  39. BIN
      sales_stock_reservation/static/description/assets/misc/pictures.png
  40. BIN
      sales_stock_reservation/static/description/assets/misc/pie-chart.png
  41. BIN
      sales_stock_reservation/static/description/assets/misc/right-arrow.png
  42. BIN
      sales_stock_reservation/static/description/assets/misc/star.png
  43. BIN
      sales_stock_reservation/static/description/assets/misc/support.png
  44. BIN
      sales_stock_reservation/static/description/assets/misc/whatsapp.png
  45. BIN
      sales_stock_reservation/static/description/assets/modules/1.png
  46. BIN
      sales_stock_reservation/static/description/assets/modules/2.png
  47. BIN
      sales_stock_reservation/static/description/assets/modules/3.png
  48. BIN
      sales_stock_reservation/static/description/assets/modules/4.png
  49. BIN
      sales_stock_reservation/static/description/assets/modules/5.png
  50. BIN
      sales_stock_reservation/static/description/assets/modules/6.png
  51. BIN
      sales_stock_reservation/static/description/assets/screenshots/hero.gif
  52. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr1.png
  53. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr10.png
  54. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr2.png
  55. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr3.png
  56. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr4.png
  57. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr5.png
  58. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr6.png
  59. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr7.png
  60. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr8.png
  61. BIN
      sales_stock_reservation/static/description/assets/screenshots/sr9.png
  62. BIN
      sales_stock_reservation/static/description/banner.png
  63. BIN
      sales_stock_reservation/static/description/icon.png
  64. 670
      sales_stock_reservation/static/description/index.html
  65. 57
      sales_stock_reservation/views/res_config_settings_views.xml
  66. 43
      sales_stock_reservation/views/sale_order_views.xml
  67. 23
      sales_stock_reservation/wizard/__init__.py
  68. 140
      sales_stock_reservation/wizard/sale_stock_reservation.py
  69. 49
      sales_stock_reservation/wizard/sale_stock_reservation_views.xml
  70. 45
      sales_stock_reservation/wizard/stock_reservation.py

45
sales_stock_reservation/README.rst

@ -0,0 +1,45 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: https://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
Product Stock Reservation
==========================
Allow sales users to create a product stock reservation from the sales quotation form.
Configuration
=============
* No additional configurations needed
License
-------
GNU AFFERO GENERAL PUBLIC LICENSE, Version 3 (AGPLv3)
(https://www.gnu.org/licenses/agpl.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
* Developer: (V16) Shikhil Raj, 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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

23
sales_stock_reservation/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import models
from . import wizard

47
sales_stock_reservation/__manifest__.py

@ -0,0 +1,47 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
{
'name': 'Product Stock Reservation',
'version': "16.0.1.0.0",
'category': 'Sales,Warehouse',
'summary': """ Reserve Product for Sales Order.""",
'description': """This module allow sales users to create a product stock
reservation from the sales quotation form.""",
'author': "Cybrosys Techno Solutions",
'company': "Cybrosys Techno Solutions",
'maintainer': "Cybrosys Techno Solutions",
'website': "https://www.cybrosys.com",
'depends': ['sale_management', 'stock', 'mail'],
'data': [
'security/ir.model.access.csv',
'views/sale_order_views.xml',
'views/res_config_settings_views.xml',
'wizard/sale_stock_reservation_views.xml',
'data/stock_location_data.xml',
'data/ir_sequence_data.xml',
],
'images': ['static/description/banner.png'],
'license': "AGPL-3",
'installable': True,
'auto_install': False,
'application': False
}

13
sales_stock_reservation/data/ir_sequence_data.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data noupdate="1">
<!-- Define the sequence for stock reservations -->
<record id="seq_stock_reserved" model="ir.sequence">
<field name="name">Sock Reserved Sequence</field>
<field name="code">stock.reserved</field>
<field name="prefix">STOCK/RES/</field>
<field name="padding">3</field>
<field name="company_id" eval="False"/>
</record>
</data>
</odoo>

10
sales_stock_reservation/data/stock_location_data.xml

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Define the stock location for sale stock reservations -->
<record id="sale_stock_reservation" model="stock.location">
<field name="name">Stock Reservation Location</field>
<field name="location_id" ref="stock.stock_location_locations"/>
</record>
</data>
</odoo>

9
sales_stock_reservation/doc/RELEASE_NOTES.md

@ -0,0 +1,9 @@
## Module <sales_stock_reservation>
#### 14.08.2024
#### Version 16.0.1.0.0
##### ADD
- Initial commit for Product Stock Reservation

24
sales_stock_reservation/models/__init__.py

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import res_config_settings
from . import sale_order
from . import stock_reserved

44
sales_stock_reservation/models/res_config_settings.py

@ -0,0 +1,44 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
"""
Inherits the Res Config Settings model to add two many-to-one fields for
selecting source and destination locations. These fields are used to
configure the source and destination locations for stock reservations.
"""
_inherit = 'res.config.settings'
source_location_id = fields.Many2one(
"stock.location",
String="Source Location",
config_parameter='sales_stock_reservation.source_location_id',
help='This is a Many2one field that refers to the location from '
'which the products will be sourced.')
destination_location_id = fields.Many2one(
"stock.location",
String="Destination Location",
config_parameter='sales_stock_reservation.destination_location_id',
help='This is a Many2one field that refers to the location to which '
'the products will be delivered.')

160
sales_stock_reservation/models/sale_order.py

@ -0,0 +1,160 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class SaleOrder(models.Model):
"""
Inherits the Sale Order model to add the ability to apply stock
reservation for products in draft state. This model also adds a state for
tracking the reservation status and a one-to-many relationship to the
Stock Reserved model for storing the details of the reserved stock.
"""
_inherit = "sale.order"
apply_stock_reservation = fields.Boolean(
string="Apply stock reservation",
help="Apply stock reservation in draft")
state_reservation = fields.Selection([
('reserved', 'Reserved'), ('cancel', 'Cancelled')],
help="Condition for visibility of buttons")
reserved_stock_ids = fields.One2many(
"stock.reserved",
"sale_order_id",
string="Reserved Stock",
help="Stock reserved details")
def action_create_stock_reservation(self):
"""
This function creates a stock reservation based on the current sale
order's order lines.
If the sale order has order lines, the function creates a list of
tuples representing the order lines,which are used to set default
values for the stock reservation. Each tuple contains three elements:
(0, 0, {...}), where the dictionary contains values for the following
fields of the stock reservation:
- order_line_name: a string representing the name of the sale order
and the order line, concatenated
- product_id: the ID of the product being reserved
- quantity: the quantity being reserved, in the unit of measure
specified by the order line
- unit_of_measure_id: the ID of the unit of measure being used for the
reservation
- reserve_quantity: the quantity being reserved, in the unit of
measure specified by the product
If the sale order does not have any order lines, an empty list
created.
The function then returns a dictionary representing an action to
create a new stock reservation.
The dictionary has the following keys:
- name: a string representing the name of the action
- type: a string representing the type of the action (in this case,
'ir.actions.act_window')
- view_type: a string representing the type of view to use
(in this case, 'form')
- view_mode: a string representing the mode of the view
(in this case, 'form')
- res_model: a string representing the name of the model being used
(in this case,'sale.stock.reservation')
- context: a dictionary representing the context to use when creating
the stock reservation
- default_sale_order_id: the ID of the sale order being used as the
basis for the reservation
- default_stock_reservation_ids: the list of tuples representing the
order lines (or an empty list)
- view_id: the ID of the view to use (retrieved using self.env.ref())
- target: a string representing the target for the action
(in this case, 'new')
:return: a dictionary representing the action to create a new stock
reservation
"""
line_vals = [(0, 0, {
'order_line_name': f"{self.name}-{line.name}",
'product_id': line.product_id.id,
'quantity': line.product_uom_qty,
'unit_of_measure_id': line.product_uom.id,
'reserve_quantity': line.product_uom_qty
}) for line in self.order_line] if self.order_line else []
return {
'name': "Stock Reservation",
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'sale.stock.reservation',
'context': {'default_sale_order_id': self.id,
'default_stock_reservation_ids': line_vals},
'view_id': self.env.ref(
'sales_stock_reservation.sale_stock_reservation_view_form').id,
'target': 'new',
}
def action_cancel_reservation(self):
"""
This function cancels a stock reservation by setting its state to
'cancel', cancelling the moves associated with the reservation's
reserved stock,and setting the status of the reserved stock to
'cancelled'.
The function first sets the `state_reservation` field of the current
object to 'cancel'.
It then retrieves the `move_id` field of each reserved stock associated
with the reservation using `mapped()`,and calls the `_action_cancel()`
method on the resulting recordset to cancel the moves.
After cancelling the moves, the function sets the `status` field of each
reserved stock associated with the reservation to 'cancelled' using
`mapped()`.
Finally, the function returns True to indicate that the cancellation
was successful.
:return: True if the reservation was successfully cancelled, False
otherwise
"""
self.state_reservation = 'cancel'
self.reserved_stock_ids.mapped('move_id')._action_cancel()
self.mapped("reserved_stock_ids").status = 'cancelled'
return True
def action_confirm(self):
"""
This function confirms a sale order by calling the parent
`action_confirm()` method and then cancelling any associated stock
reservation.
The function first calls the `super()` method to confirm the sale order
using the parent implementation.
It then calls the `cancel_reservation()` method to cancel any existing
stock reservation associated with the sale order.
Finally, the function returns the result of the `super()` method call to
indicate whether the sale order was successfully confirmed.
:return: the result of the parent `action_confirm()` method call
"""
res = super().action_confirm()
self.action_cancel_reservation()
return res

61
sales_stock_reservation/models/stock_reserved.py

@ -0,0 +1,61 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import api, fields, models, _
class StockReserved(models.Model):
"""
This model stores details of product reservations made in sale orders.
"""
_name = "stock.reserved"
_description = "Reserved stock details"
name = fields.Char(string="Name", readonly="True", help="Name")
order_line_name = fields.Char(string="Order Line", readonly="True",
help="Name of order line")
product_id = fields.Many2one("product.product", string="Product",
readonly="True", help="Product reserved")
status = fields.Selection(
[('reserved', 'Reserved'), ('cancelled', 'Cancelled')],
string="Status", readonly="True", help="Status of reservation")
reserved_quantity = fields.Float(string="Reserved Quantity",
readonly="True",
help="Quantity Reserved")
sale_order_id = fields.Many2one("sale.order", string="Sale Order",
readonly="True",
help="Sale order")
move_id = fields.Many2one("stock.move", string="Move Id", readonly="True",
help="Stock move details")
@api.model
def create(self, vals_list):
"""
Create a new record for the model and generate a sequence for the name
field if it is not provided.
:return: the result of the parent `create()` method call
"""
if vals_list.get('name', _('New')) == _('New'):
vals_list['name'] = self.env['ir.sequence'].next_by_code(
'stock.reserved'
) or _('New')
res = super().create(vals_list)
return res

4
sales_stock_reservation/security/ir.model.access.csv

@ -0,0 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_stock_reservation_sale_user,access.stock.reservation.sale.user,model_sale_stock_reservation,base.group_user,1,1,1,1
access_stock_reservation_user,access.stock.reservation.user,model_stock_reservation,base.group_user,1,1,1,1
access_stock_reserved_user,access.stock.reserved.user,model_stock_reserved,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_stock_reservation_sale_user access.stock.reservation.sale.user model_sale_stock_reservation base.group_user 1 1 1 1
3 access_stock_reservation_user access.stock.reservation.user model_stock_reservation base.group_user 1 1 1 1
4 access_stock_reserved_user access.stock.reserved.user model_stock_reserved base.group_user 1 1 1 1

BIN
sales_stock_reservation/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
sales_stock_reservation/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
sales_stock_reservation/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
sales_stock_reservation/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
sales_stock_reservation/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
sales_stock_reservation/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
sales_stock_reservation/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
sales_stock_reservation/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
sales_stock_reservation/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
sales_stock_reservation/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
sales_stock_reservation/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
sales_stock_reservation/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
sales_stock_reservation/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
sales_stock_reservation/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
sales_stock_reservation/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
sales_stock_reservation/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
sales_stock_reservation/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
sales_stock_reservation/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
sales_stock_reservation/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
sales_stock_reservation/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
sales_stock_reservation/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
sales_stock_reservation/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
sales_stock_reservation/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
sales_stock_reservation/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
sales_stock_reservation/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
sales_stock_reservation/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
sales_stock_reservation/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
sales_stock_reservation/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
sales_stock_reservation/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
sales_stock_reservation/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
sales_stock_reservation/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
sales_stock_reservation/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
sales_stock_reservation/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
sales_stock_reservation/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
sales_stock_reservation/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

BIN
sales_stock_reservation/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
sales_stock_reservation/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

BIN
sales_stock_reservation/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
sales_stock_reservation/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
sales_stock_reservation/static/description/assets/screenshots/sr9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

BIN
sales_stock_reservation/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
sales_stock_reservation/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

670
sales_stock_reservation/static/description/index.html

@ -0,0 +1,670 @@
<div style="background-color: #714B67; height: 810px; width: 100%; padding: 15px; position: relative;">
<!-- TITLE BAR -->
<div class="d-flex align-items-center justify-content-between"
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;">
<img src="assets/misc/cybrosys-logo.png" width="42" height="42"
style="width: 42px; height: 42px;"/>
<div>
<div
style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Community
</div>
<div
style="color: #875A7B; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Enterprise
</div>
<div
style="color: #017E84; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;"
class="mr-2">
<i class="fa fa-check mr-1"></i>Odoo.Sh
</div>
</div>
</div>
<!-- END OF TITLE BAR -->
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-12 col-lg-12">
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">
Product Stock Reservation</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
This module helps users to create a product stock reservation from the sales quotation form.
</p>
<!-- END OF APP HERO -->
<img src="assets/screenshots/hero.gif" class="img-responsive"
style="width: 100%; margin-left: auto; margin-right: auto;"/>
</div>
</div>
</div>
</div>
<!-- NAVIGATION SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/compass.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Explore This
Module</h2>
</div>
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;">
<div class="col-sm-12 col-md-6 my-3">
<a href="#overview">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn
more about this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#features">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
features of this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
<div class="col-sm-12 col-md-6 my-3">
<a href="#screenshots">
<div class="d-flex justify-content-between align-items-center"
style="background-color: #f5f5f5; padding: 30px; width: 100%;">
<div>
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span>
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View
screenshots for this
module</span>
</div>
<img src="assets/misc/right-arrow.png" width="36" height="36"/>
</div>
</a>
</div>
</div>
<!-- END OF NAVIGATION SECTION -->
<!-- OVERVIEW SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="overview">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Overview
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
In the Stock Reservation App, Allow sales users to create a product stock reservation from the sales quotation form.
Allow sales users to unreserve stock also once the customer confirms the order.
Email notification to stock users during reservation from sales quote state.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/features.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Features
</h2>
</div>
<div class="row"
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Allow sales users to create a product stock reservation from the sales quotation form.
</span>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Allow sales users to cancel reservation stock.</span>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Email notification to stock users during reservation from sales quotation state.</span>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 30px; margin-bottom: 30px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Allow users to choose how much quantity of product from quotation they want to reserve on wizard.</span>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
<!-- SCREENSHOTS SECTION -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"
id="screenshots">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/pictures.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Screenshots
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Configuration</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Under "Inventory" > "Configurations" > "Settings" user have to select source location and destination location to reserve stock.
</p>
<img src="assets/screenshots/sr1.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Product Quantity Before Reserve Stock</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
User can see product on hand quantity before reserve stock.</p>
<img src="assets/screenshots/sr2.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Reserve Stock</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
User can reserve stock by clicking on "Reserve Stock" button on sale order which is visible only
if "Apply Stock Reservation" is checked.
</p>
<img src="assets/screenshots/sr3.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Stock Reservation Wizard</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
New wizard will open on clicking of "Reserve Stock" button,
here user can see default sale order line details and select "Notify User" to get email and enter "Reserve" to reserve stock.
</p>
<img src="assets/screenshots/sr4.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Reserved Stock</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
User can view created reserved stock from "Reserved Stock" page in sale order.
</p>
<img src="assets/screenshots/sr5.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Product Quantity After Reserved Stock</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
You can view updated product quantities after reservation from sales orders.
</p>
<img src="assets/screenshots/sr6.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Email Notification to Users</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Email notification to stock users selected on the wizard.
</p>
<img src="assets/screenshots/sr7.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Cancel Stock Reservation Button Flow</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Cancel Stock Reservation Button:
When click to Cancel Stock Reservation Button will release a product that is already reserved at the time of quotation.
</p>
<img src="assets/screenshots/sr8.png"
class="img-thumbnail">
<img src="assets/screenshots/sr9.png"
class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Product Forecasted Quantity after Release</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
Quantities are released in stock after the release reservation.
</p>
<img src="assets/screenshots/sr10.png"
class="img-thumbnail">
</div>
</div>
</div>
<!-- END OF SCREENSHOTS SECTION -->
<!-- RELATED PRODUCTS -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/categories.png" />
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Related
Products
</h2>
</div>
<div class="row">
<div class="col-sm-12">
<div id="demo1" class="row carousel slide" data-ride="carousel">
<!-- The slideshow -->
<div class="carousel-inner" style="padding: 30px;">
<div class="carousel-item" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/sale_product_image/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/1.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/sale_discount_total/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/2.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/sale_customer_product_history/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/3.png">
</div>
</a>
</div>
</div>
<div class="carousel-item active" style="min-height: 198.656px;">
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/sale_report_format_editor/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/4.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/edit_order_date/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block"
style="border-radius: 0px;"
src="assets/modules/5.png">
</div>
</a>
</div>
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" style="float:left">
<a href="https://apps.odoo.com/apps/modules/16.0/sale_recurring/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/6.png">
</div>
</a>
</div>
</div>
</div>
<!-- Left and right controls -->
<a class="carousel-control-prev" href="#demo1" data-slide="prev" style="width:35px; color:#000"> <span
class="carousel-control-prev-icon"><i class="fa fa-chevron-left" style="font-size:24px"></i></span>
</a> <a class="carousel-control-next" href="#demo1" data-slide="next" style="width:35px; color:#000">
<span class="carousel-control-next-icon"><i class="fa fa-chevron-right" style="font-size:24px"></i></span>
</a>
</div>
</div>
</div>
<!-- END OF RELATED PRODUCTS -->
<!-- OUR SERVICES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/star.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our Services
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/cogs.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Customization</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/wrench.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/lifebuoy.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Support</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/user.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Hire
Odoo
Developer</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/puzzle.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Integration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/update.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Migration</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/consultation.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Consultancy</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/training.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Implementation</h6>
</div>
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4">
<div class="d-flex justify-content-center align-items-center mx-3 my-3"
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;">
<img src="assets/icons/license.png" class="img-responsive"
height="48px" width="48px">
</div>
<h6 class="text-center"
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;">
Odoo
Licensing Consultancy</h6>
</div>
</div>
</div>
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/corporate.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Our
Industries
</h2>
</div>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/trading-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Trading
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easily procure
and
sell your products</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/pos-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
POS
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Easy
configuration
and convivial experience</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/education-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Education
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
A platform for
educational management</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/manufacturing-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Manufacturing
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Plan, track and
schedule your operations</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/ecom-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
E-commerce &amp; Website
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Mobile
friendly,
awe-inspiring product pages</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/service-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Service Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Keep track of
services and invoice</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/restaurant-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Restaurant
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
Run your bar or
restaurant methodically</p>
</div>
</div>
<div class="col-lg-3">
<div class="my-4 d-flex flex-column justify-content-center"
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;">
<img src="assets/icons/hotel-black.png"
class="img-responsive mb-3" height="48px" width="48px">
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;">
Hotel Management
</h5>
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;">
An
all-inclusive
hotel management application</p>
</div>
</div>
</div>
</div>
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center"
style="border-bottom: 2px solid #714B67; padding: 15px 0px;">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="assets/misc/customer-support.png"/>
</div>
<h2 class="mt-2"
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">
Support
</h2>
</div>
<div class="container mt-5">
<div class="row">
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/support.png" height="48" width="48"
style="width: 42px; height: 42px;"/>
</div>
<div>
<h4>Need Help?</h4>
<p style="line-height: 100%;">Got questions or need help?
Get in touch.</p>
<a href="mailto:odoo@cybrosys.com">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
odoo@cybrosys.com</p>
</a>
</div>
</div>
</div>
<div class="col-sm-12 col-md-6">
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;">
<div class="mr-4 d-flex justify-content-center align-items-center"
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;">
<img src="assets/misc/whatsapp.png" height="52" width="52"
style="width: 52px; height: 52px;"/>
</div>
<div>
<h4>WhatsApp</h4>
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p>
<a href="https://api.whatsapp.com/send?phone=918606827707">
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;">
+91 86068
27707</p>
</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center">
<img src="assets/misc/logo.png" width="144" height="31"
style="width:144px; height: 31px; margin-top: 40px;"/>
</div>
</div>
</div>
<!-- END OF SUPPORT -->

57
sales_stock_reservation/views/res_config_settings_views.xml

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- The view is used to display a form that allows users to configure stock settings for a company. Specifically, the XML code extends an existing view, 'stock.res_config_settings_view_form', by adding two new settings fields: 'source_location_id' and 'destination_location_id'.-->
<odoo>
<record id="res_config_settings_view_form" model="ir.ui.view">
<field name="name">
res.config.settings.view.form.inherit.sales.stock.reservation
</field>
<field name="model">res.config.settings</field>
<field name="priority" eval="0"/>
<field name="inherit_id" ref="stock.res_config_settings_view_form"/>
<field name="arch" type="xml">
<xpath expr="//div[@name='barcode_setting_container']"
position="after">
<h2>Stock Reserve Location</h2>
<div class="row mt16 o_settings_container"
name="stock_reserve_setting_container">
<div class="col-12 col-lg-6 o_setting_box"
id="stock_reserve_source_location">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane"
id="stock_reserve_source_location_setting">
<label for="source_location_id"/>
<div class="text-muted" name="source_location_id">
Choose source location to reserve the stock.
</div>
<div class="content-group">
<div class="mt16">
<field name="source_location_id"
widget="selection"/>
</div>
</div>
</div>
</div>
<div class="col-12 col-lg-6 o_setting_box"
id="stock_reserve_destination_location">
<div class="o_setting_left_pane"/>
<div class="o_setting_right_pane"
id="stock_reserve_destination_location_setting">
<label for="destination_location_id"/>
<div class="text-muted"
name="destination_location_id">
Choose destination location to reserve the
stock.
</div>
<div class="content-group">
<div class="mt16">
<field name="destination_location_id"
widget="selection"/>
</div>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>

43
sales_stock_reservation/views/sale_order_views.xml

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- It defines a new view for the Sale Order model and adds some fields and buttons to it. Specifically, it adds a checkbox field named "apply_stock_reservation" and a hidden field named "state_reservation" to the view. It also adds a button named "Create stock reservation" that triggers the "create_reservation_form" action when clicked, and another button named "Cancel stock reservation" that triggers the "cancel_reservation" action when clicked. Finally, it adds a new page named "Reserved Stock" to the view, which contains a tree view displaying information about reserved stock for the order. The code uses the XPath language to locate and modify existing elements in the view definition.-->
<odoo>
<record id="view_order_form" model="ir.ui.view">
<field name="name">sale.order.view.form.inherit.sales.stock.reservation</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='payment_term_id']" position="after">
<field name="apply_stock_reservation"/>
<field name="state_reservation" invisible="1"/>
</xpath>
<xpath expr="//button[@name='action_cancel']" position="after">
<button name="action_create_stock_reservation"
string="Create stock reservation"
class="btn-primary"
type="object"
attrs="{'invisible': ['|','|',('apply_stock_reservation', '=', False), ('state', 'not in', 'draft'),('state_reservation', '=', 'reserved')]}"/>
</xpath>
<xpath expr="//button[@name='action_create_stock_reservation']"
position="after">
<button name="action_cancel_reservation"
string="Cancel stock reservation"
class="btn-primary"
type="object"
attrs="{'invisible': ['|','|',('state_reservation', '!=', 'reserved'),('state', 'not in', 'draft'),('state_reservation', '=', 'cancel')]}"/>
</xpath>
<xpath expr="//page[@name='other_information']" position="after">
<page string="Reserved Stock" name="reserved_stock">
<field name="reserved_stock_ids">
<tree create="false" editable="0">
<field name="name"/>
<field name="order_line_name"/>
<field name="product_id"/>
<field name="reserved_quantity"/>
<field name="status" decoration-success="status=='reserved'" decoration-danger="status=='cancelled'"/>
</tree>
</field>
</page>
</xpath>
</field>
</record>
</odoo>

23
sales_stock_reservation/wizard/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from . import sale_stock_reservation
from . import stock_reservation

140
sales_stock_reservation/wizard/sale_stock_reservation.py

@ -0,0 +1,140 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
from odoo.http import request
class SaleStockReservation(models.TransientModel):
"""
This model is used to reserve products for a sale order.
Fields:
- stock_reservation_ids: A one-to-many relationship to the
`stock.reservation` model, representing the reservations to be made.
- sale_order_id: The ID of the sale order for which the products are being
reserved.
- mail_notification_ids: A many-to-many relationship to the `res.users`
model,representing the users who should receive email notifications about
the reservation.
"""
_name = "sale.stock.reservation"
_description = "Stock Reservation"
stock_reservation_ids = fields.One2many(
"stock.reservation",
"stock_reservation_wizard_id",
string="Order line",
help='This is a One2many field that refers to the reserved stock items '
'associated with the wizard.')
sale_order_id = fields.Many2one(
"sale.order", string="Sale order",
readonly="True",
help="Many2one field that returns the Sale Order")
mail_notification_ids = fields.Many2many(
"res.users",
string="Email Notification",
help='This is a Many2many field that refers to the users '
'who will receive email notifications.')
def action_reserve_stock(self):
"""
This function reserves stock for a sale order and creates a stock
reservation.
The function sets the state of the associated sale order to "reserved".
It then retrieves the source and destination locations for the stock
reservation from the system parameters.
For each product in the stock reservation, the function creates a
stock move to transfer the product from the source location to the
destination location, sets the reservation status for the product, and
updates the stock reservation with the ID of the newly created stock
move.
The function then creates a new record for each reserved product and
adds it to the `reserved_stock_ids` field of the associated sale order.
Finally, if there are any mail notifications associated with the stock
reservation,the function sends an email to each recipient with details
of the reserved items.
:return: None
"""
self.sale_order_id.state_reservation = "reserved"
source_location = int(
self.env['ir.config_parameter'].sudo().get_param(
'sales_stock_reservation.source_location_id'))
destination_location = int(
self.env['ir.config_parameter'].sudo().get_param(
'sales_stock_reservation.destination_location_id'))
for rec in self.stock_reservation_ids:
move_vals = {
"name": "Product Quantity Reserved",
"location_id": source_location,
"location_dest_id": destination_location,
'product_id': rec.product_id.id,
"product_uom_qty": rec.reserve_quantity,
"date": fields.Datetime.now(),
"product_uom": rec.unit_of_measure_id.id
}
move = self.env["stock.move"].create(move_vals)
rec.move_id = move.id
move._action_confirm()
move._action_assign()
line_vals = [{
"order_line_name": rec.order_line_name,
"product_id": rec.product_id.id,
"reserved_quantity": rec.reserve_quantity,
"sale_order_id": self.sale_order_id.id,
"status": 'reserved',
"move_id": rec.move_id.id
} for rec in self.stock_reservation_ids]
self.sale_order_id.write(
{'reserved_stock_ids': [(0, 0, vals) for vals in line_vals]})
if self.mail_notification_ids:
for rec in self.mail_notification_ids:
message_body = \
f"Dear {rec.name}, <br>" \
f"<br>We would like to inform you that, some item(s)" \
f" have been reserved for - {self.sale_order_id.name}." \
f" Please check and take necessary action if needed. <br> "
message_body += \
'<table border="1" cellpadding="0" bgcolor="#ededed">'
message_body += ('<tr><th width="250px;">Name</th>'
'<th width="250px;">Product</th>'
'<th width="250px;">Quantity for '
'Reservation</th></tr>')
for reserved in self.sale_order_id.reserved_stock_ids.filtered(
lambda r: r.status == 'reserved'):
message_body += f"<tr><td>{reserved.name}</td>" \
f"<td>{reserved.product_id.name}</th>" \
f"<td>{reserved.reserved_quantity}</td>" \
f"</tr><br> "
message_body += '</table>Thank you'
template_obj = self.env['mail.mail'].create({
'subject': f"Stock Reservation: {self.sale_order_id.name}",
'body_html': message_body,
'email_from': request.env.user.company_id.email,
'email_to': rec.login
})
template_obj.send()

49
sales_stock_reservation/wizard/sale_stock_reservation_views.xml

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- It defines two records, one for an action and another for a view.
The action record defines a new window action named "create_reservation",
which will be used to create a new stock reservation record.
The view record defines a new form view named "create.reservation.form"
for the "sale.stock.reservation" model. The view contains a group of fields
for the sale order ID and email notifications, and a tree view for displaying
information about the stock reservation. The tree view displays fields for
the order line name, product ID, quantity, unit of measure, and reserved
quantity. The view also includes a footer with a button named "Reserve",
which triggers the "reserve_stock" action when clicked. Overall, this code is
related to the previous code snippet and provides additional functionality
for creating and managing stock reservations for sale orders in Odoo.-->
<odoo>
<record id="sale_stock_reservation_wizard_action" model="ir.actions.act_window">
<field name="name">Sale Stock Reservation Wizard</field>
<field name="res_model">sale.stock.reservation</field>
<field name="view_mode">form</field>
<field name="target">new</field>
</record>
<record id="sale_stock_reservation_view_form" model="ir.ui.view">
<field name="name">sale.stock.reservation.view.form</field>
<field name="model">sale.stock.reservation</field>
<field name="arch" type="xml">
<form string="Decimal Precision">
<group>
<group>
<field name="sale_order_id"/>
</group>
<group>
<field name="mail_notification_ids" widget="many2many_tags"/>
</group>
</group>
<field name="stock_reservation_ids">
<tree create="false" editable="bottom">
<field name="order_line_name"/>
<field name="product_id"/>
<field name="quantity"/>
<field name="unit_of_measure_id"/>
<field name="reserve_quantity"/>
</tree>
</field>
<footer>
<button name="action_reserve_stock" string="Reserve" type="object" class="btn-primary"/>
</footer>
</form>
</field>
</record>
</odoo>

45
sales_stock_reservation/wizard/stock_reservation.py

@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Cybrosys Techno Solutions (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 <http://www.gnu.org/licenses/>.
#
#############################################################################
from odoo import fields, models
class StockReservation(models.TransientModel):
""" This model for storing wizard order line values."""
_name = "stock.reservation"
stock_reservation_wizard_id = fields.Many2one(
"sale.stock.reservation", string="Wizard",
help="Sale stock reservation wizard")
order_line_name = fields.Char(
string="Order Line",
help="Name of order line")
product_id = fields.Many2one(
"product.product",
string="Product",
help="Product to be reserved")
quantity = fields.Float(string="Quantity", help="Product quantity")
unit_of_measure_id = fields.Many2one(
"uom.uom", string="UOM", help="Unit of measure")
reserve_quantity = fields.Char(string="Reserve Quantity",
help="Quantity to be reserved")
move_id = fields.Many2one(
"stock.move", string="Move Id", help="Stock move")
Loading…
Cancel
Save