Browse Source

Feb 13 : [ADD] Initial Commit 'auto_generate_lot_number'

pull/267/merge
RisvanaCybro 1 year ago
parent
commit
47fbb1d079
  1. 52
      auto_generate_lot_number/README.rst
  2. 22
      auto_generate_lot_number/__init__.py
  3. 45
      auto_generate_lot_number/__manifest__.py
  4. 7
      auto_generate_lot_number/doc/RELEASE_NOTES.md
  5. 25
      auto_generate_lot_number/models/__init__.py
  6. 94
      auto_generate_lot_number/models/product_template.py
  7. 31
      auto_generate_lot_number/models/res_company.py
  8. 54
      auto_generate_lot_number/models/res_config_settings.py
  9. 100
      auto_generate_lot_number/models/stock_move.py
  10. BIN
      auto_generate_lot_number/static/description/assets/icons/check.png
  11. BIN
      auto_generate_lot_number/static/description/assets/icons/chevron.png
  12. BIN
      auto_generate_lot_number/static/description/assets/icons/cogs.png
  13. BIN
      auto_generate_lot_number/static/description/assets/icons/consultation.png
  14. BIN
      auto_generate_lot_number/static/description/assets/icons/ecom-black.png
  15. BIN
      auto_generate_lot_number/static/description/assets/icons/education-black.png
  16. BIN
      auto_generate_lot_number/static/description/assets/icons/hotel-black.png
  17. BIN
      auto_generate_lot_number/static/description/assets/icons/license.png
  18. BIN
      auto_generate_lot_number/static/description/assets/icons/lifebuoy.png
  19. BIN
      auto_generate_lot_number/static/description/assets/icons/manufacturing-black.png
  20. BIN
      auto_generate_lot_number/static/description/assets/icons/pos-black.png
  21. BIN
      auto_generate_lot_number/static/description/assets/icons/puzzle.png
  22. BIN
      auto_generate_lot_number/static/description/assets/icons/restaurant-black.png
  23. BIN
      auto_generate_lot_number/static/description/assets/icons/service-black.png
  24. BIN
      auto_generate_lot_number/static/description/assets/icons/trading-black.png
  25. BIN
      auto_generate_lot_number/static/description/assets/icons/training.png
  26. BIN
      auto_generate_lot_number/static/description/assets/icons/update.png
  27. BIN
      auto_generate_lot_number/static/description/assets/icons/user.png
  28. BIN
      auto_generate_lot_number/static/description/assets/icons/wrench.png
  29. BIN
      auto_generate_lot_number/static/description/assets/misc/categories.png
  30. BIN
      auto_generate_lot_number/static/description/assets/misc/check-box.png
  31. BIN
      auto_generate_lot_number/static/description/assets/misc/compass.png
  32. BIN
      auto_generate_lot_number/static/description/assets/misc/corporate.png
  33. BIN
      auto_generate_lot_number/static/description/assets/misc/customer-support.png
  34. BIN
      auto_generate_lot_number/static/description/assets/misc/cybrosys-logo.png
  35. BIN
      auto_generate_lot_number/static/description/assets/misc/features.png
  36. BIN
      auto_generate_lot_number/static/description/assets/misc/logo.png
  37. BIN
      auto_generate_lot_number/static/description/assets/misc/pictures.png
  38. BIN
      auto_generate_lot_number/static/description/assets/misc/pie-chart.png
  39. BIN
      auto_generate_lot_number/static/description/assets/misc/right-arrow.png
  40. BIN
      auto_generate_lot_number/static/description/assets/misc/star.png
  41. BIN
      auto_generate_lot_number/static/description/assets/misc/support.png
  42. BIN
      auto_generate_lot_number/static/description/assets/misc/whatsapp.png
  43. BIN
      auto_generate_lot_number/static/description/assets/modules/1.png
  44. BIN
      auto_generate_lot_number/static/description/assets/modules/2.png
  45. BIN
      auto_generate_lot_number/static/description/assets/modules/3.png
  46. BIN
      auto_generate_lot_number/static/description/assets/modules/4.png
  47. BIN
      auto_generate_lot_number/static/description/assets/modules/5.png
  48. BIN
      auto_generate_lot_number/static/description/assets/modules/6.png
  49. BIN
      auto_generate_lot_number/static/description/assets/screenshots/auto.png
  50. BIN
      auto_generate_lot_number/static/description/assets/screenshots/hero.gif
  51. BIN
      auto_generate_lot_number/static/description/assets/screenshots/lot_no.png
  52. BIN
      auto_generate_lot_number/static/description/assets/screenshots/new.png
  53. BIN
      auto_generate_lot_number/static/description/assets/screenshots/product.png
  54. BIN
      auto_generate_lot_number/static/description/assets/screenshots/product_lot.png
  55. BIN
      auto_generate_lot_number/static/description/assets/screenshots/product_wise.png
  56. BIN
      auto_generate_lot_number/static/description/assets/screenshots/serial.png
  57. BIN
      auto_generate_lot_number/static/description/banner.png
  58. BIN
      auto_generate_lot_number/static/description/icon.png
  59. 732
      auto_generate_lot_number/static/description/index.html
  60. 25
      auto_generate_lot_number/views/product_template_views.xml
  61. 16
      auto_generate_lot_number/views/res_company_views.xml
  62. 92
      auto_generate_lot_number/views/res_config_settings_views.xml
  63. 125
      auto_generate_lot_number/views/stock_move_views.xml

52
auto_generate_lot_number/README.rst

@ -0,0 +1,52 @@
.. 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
Auto Generate Serial/Lot number
===============================
This app allows you to automatically Generate and manage serial/lot number for products while
confirming the purchase order.
Configuration
=============
- Additional configuration not required
Installation
============
- www.odoo.com/documentation/16.0/setup/install.html
- Install our custom addon
License
-------
GNU AFFERO GENERAL PUBLIC LICENSE v3.0 (AGPL-3)
(https://www.gnu.org/licenses/agpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
Developer: (V16) Shonima, 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>`__

22
auto_generate_lot_number/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Shonima (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

45
auto_generate_lot_number/__manifest__.py

@ -0,0 +1,45 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Shonima (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": "Auto Generate Serial/Lot number",
"version": "16.0.1.0.0",
"category": "Purchases",
"summary": "Generate And Manage Lot and Serial Numbers.",
"description": "Auto generate lot/serial number on click of validate "
"button in purchase order.",
"author": "Cybrosys Techno Solutions",
"company": "Cybrosys Techno Solutions",
"maintainer": "Cybrosys Techno Solutions",
"website": "https://www.cybrosys.com",
"depends": ["stock", "purchase", "mrp"],
"data": [
"views/stock_move_views.xml",
"views/res_config_settings_views.xml",
"views/product_template_views.xml",
"views/res_company_views.xml",
],
"images": ["static/description/banner.png"],
"license": "AGPL-3",
"installable": True,
"auto_install": False,
"application": False,
}

7
auto_generate_lot_number/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <auto_generate_lot_number>
#### 05.02.2024
#### Version 16.0.1.0.0
#### ADD
- Initial commit for Auto Generate Serial/Lot Number

25
auto_generate_lot_number/models/__init__.py

@ -0,0 +1,25 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Shonima (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 product_template
from . import res_company
from . import res_config_settings
from . import stock_move

94
auto_generate_lot_number/models/product_template.py

@ -0,0 +1,94 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Shonima (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 ProductTemplate(models.Model):
"""Inherited product.template class to add fields and functions"""
_inherit = 'product.template'
is_auto_generate = fields.Boolean(string="Is Auto Generate",
compute='_compute_is_auto_generate',
help="Used to hide and show the prefix "
"and digit field based on the "
"option that we choose in settings")
prefix = fields.Char(string='Prefix',
help="Prefix value of the record for sequence")
digits = fields.Integer(string='Digits',
help="Used to set number of digits contain in a "
"sequence")
number_next = fields.Integer(string='Next call', help="Next number that "
"will be used. This "
"number can be"
"incremented "
"frequently so the "
"displayed value "
"might"
"already be obsolete")
@api.onchange('prefix', 'digits')
def onchange_digits_prefix(self):
""" This function is used to set number_next to zero if we change the
prefix or digits"""
self.number_next = 0
def check_string_for_nine(self, string):
"""This function used to check whether the given string contain only '9'
then it will return true else it returns false"""
return all(char == '9' for char in string)
def _number_next_actual(self):
"""This function used to generate the sequence number"""
if self.is_auto_generate:
number_next = self.number_next + 1
self.number_next = number_next
if (len(str(self.digits)) == len(str(self.number_next)) and
self.check_string_for_nine(str(self.number_next))):
self.digits = self.digits + 1
if self.digits - len(str(self.number_next)) <= 0:
value = self.prefix
else:
digits = ("{:%s}" % ('0%sd' % str(self.digits - len(
str(self.number_next))))).format(0)
value = self.prefix + digits
return value + str(number_next)
@api.depends('tracking')
def _compute_is_auto_generate(self):
"""This function is used to set value to the field 'is_auto_generate'
based on the value that we choose in
settings page"""
for rec in self:
rec.is_auto_generate = False
product_type = rec.env['ir.config_parameter'].sudo().get_param(
'auto_generate_lot_number.serial_number_type')
auto_generate = rec.env['ir.config_parameter'].sudo().get_param(
'auto_generate_lot_number.is_auto_generate')
if product_type == 'product' and auto_generate:
rec.is_auto_generate = True
def write(self, values):
"""This function is used to set 'number_next' to zero"""
res = super(ProductTemplate, self).write(values)
if values.get('prefix') or values.get('digits'):
self.number_next = 0
return res

31
auto_generate_lot_number/models/res_company.py

@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Shonima (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 ResCompany(models.Model):
"""This class is inherited to add a field"""
_inherit = 'res.company'
check_auto_generate = fields.Boolean(string='Auto Generate',
help="Used for setting the sequence "
"number based on the company")

54
auto_generate_lot_number/models/res_config_settings.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Shonima (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 ResConfigSettings(models.TransientModel):
"""Inherited res.config.settings class to add fields and functions to get
and set values in purchase settings form"""
_inherit = 'res.config.settings'
is_auto_generate = fields.Boolean(string='Auto Generate',
help="Based on this selection it shows "
"the fields for auto generating "
"lot/serial number",
config_parameter="auto_generate_lot_number.is_auto_generate")
serial_number_type = fields.Selection(
[('global', 'Global'), ('product', 'Product Wise')],
default='global', string='Serial/lot Number',
help="Generate the lot/serial number product wise or globally",
config_parameter="auto_generate_lot_number.serial_number_type")
prefix = fields.Char(string='Prefix',
help="Prefix value of the record for sequence",
config_parameter="auto_generate_lot_number.prefix")
digits = fields.Integer(string='Digits',
help="Used to set number of digits contain in a "
"sequence",
config_parameter="auto_generate_lot_number.digits")
@api.onchange('is_auto_generate')
def _onchange_auto_generate(self):
"""Based on the change of is_auto_generate is updated the boolean field
'check_auto_generate' in company"""
self.env.company.check_auto_generate = False
if self.is_auto_generate:
self.env.company.check_auto_generate = True

100
auto_generate_lot_number/models/stock_move.py

@ -0,0 +1,100 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Shonima (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 models
from odoo.tools.float_utils import float_compare, float_round
class StockMove(models.Model):
"""Inherited StockMove class to super the functions"""
_inherit = 'stock.move'
def _prepare_move_line_vals(self, quantity=None, reserved_quant=None):
""" super the function o update the lot/serial number in
stock.move.line"""
self.ensure_one()
vals = {
'move_id': self.id,
'product_id': self.product_id.id,
'product_uom_id': self.product_uom.id,
'location_id': self.location_id.id,
'location_dest_id': self.location_dest_id.id,
'picking_id': self.picking_id.id,
'company_id': self.company_id.id,
}
auto_generate = self.env['ir.config_parameter'].sudo().get_param(
'auto_generate_lot_number.is_auto_generate')
if auto_generate:
serial_number_type = self.env[
'ir.config_parameter'].sudo().get_param(
'auto_generate_lot_number.serial_number_type')
if serial_number_type == 'global':
vals.update({
'lot_name': self.env['ir.sequence'].next_by_code('res'
'.config'
'.settings'),
})
else:
vals.update({
'lot_name': self.product_id.product_tmpl_id._number_next_actual(),
})
if quantity:
rounding = self.env['decimal.precision'].precision_get('Product '
'Unit of '
'Measure')
uom_quantity = self.product_id.uom_id._compute_quantity(quantity,
self.product_uom,
rounding_method='HALF-UP')
uom_quantity = float_round(uom_quantity, precision_digits=rounding)
uom_quantity_back_to_product_uom = self.product_uom._compute_quantity(
uom_quantity, self.product_id.uom_id,
rounding_method='HALF-UP')
if float_compare(quantity, uom_quantity_back_to_product_uom,
precision_digits=rounding) == 0:
vals = dict(vals, reserved_uom_qty=uom_quantity)
else:
vals = dict(vals, reserved_uom_qty=quantity,
product_uom_id=self.product_id.uom_id.id)
if reserved_quant:
package = reserved_quant.package_id
vals = dict(
vals,
location_id=reserved_quant.location_id.id,
lot_id=reserved_quant.lot_id.id or False,
package_id=package.id or False,
owner_id=reserved_quant.owner_id.id or False,
)
return vals
def action_show_details(self):
"""This used to overriden 'view_stock_move_operations' view by
'view_stock_move_nosuggest_operations_custom' view"""
res = super(StockMove, self).action_show_details()
auto_generate = self.env['ir.config_parameter'].sudo().get_param(
'auto_generate_lot_number.is_auto_generate')
if auto_generate:
view = self.env.ref('auto_generate_lot_number'
'.view_stock_move_nosuggest_operations_custom')
res.update({
'views': [(view.id, 'form')],
'view_id': view.id,
})
return res

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
auto_generate_lot_number/static/description/assets/screenshots/auto.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

BIN
auto_generate_lot_number/static/description/assets/screenshots/lot_no.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
auto_generate_lot_number/static/description/assets/screenshots/new.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

BIN
auto_generate_lot_number/static/description/assets/screenshots/product.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

BIN
auto_generate_lot_number/static/description/assets/screenshots/product_lot.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

BIN
auto_generate_lot_number/static/description/assets/screenshots/product_wise.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
auto_generate_lot_number/static/description/assets/screenshots/serial.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

BIN
auto_generate_lot_number/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 103 KiB

BIN
auto_generate_lot_number/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

732
auto_generate_lot_number/static/description/index.html

@ -0,0 +1,732 @@
<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;">
Auto Generate Serial/Lot number </h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">
Automatically Generate And Manage Serial and Lot
numbers. </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>
The module allows the user to automatically generate lot or serial number
for a product globally or
product wise on sale order confirmation.
</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: 40px; margin-bottom: 40px">
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Community &amp; Enterprise
Support.</span>
</div>
<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;">Auto generate lot/serial number on click of validate button in purchase order.</span>
</div>
<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;">Set the lot/serial number in product wise or globally.</span>
</div>
</div>
<div class="col-sm-12 col-md-6">
</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;">
Serial Number Configuration: Global
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Go to Purchase --> Configuration --> Settings --> Enable the
boolean field Auto Generate .Based on
global we need to provide the prefix and digits in settings.
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">
<img src="assets/screenshots/auto.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;">
Set Traceability as By Lots or Serial Number.
</h3>
<img src="assets/screenshots/product.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;">
Click the 'Assign Serial Numbers' button to assign serial numbers to the product based on the configuration.
</h3>
<img src="assets/screenshots/new.png"
class="img-thumbnail"><br/>
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Create purchase order then select the products and confirm the
order. On click of validate button transfer
will be created and unique serial number is generated for the
products automatically.</h3>
<img src="assets/screenshots/serial.png"
class="img-thumbnail"><br/>
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Serial Number Configuration: Product Wise
</h3>
<img src="assets/screenshots/product_wise.png"
class="img-thumbnail"><br/>
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
We can set separate prefix and digits for each product.
</h3>
<img src="assets/screenshots/product_lot.png"
class="img-thumbnail"><br/>
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Create purchase order then select the products and confirm the
order. On click of validate button transfer
will be created and lot number is generated for the products
automatically.
</h3>
<img src="assets/screenshots/lot_no.png"
class="img-thumbnail"><br/>
</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/employee_purchase_requisition/#"
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/vendor_portal_odoo/#"
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/product_multi_attachment/#"
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/product_multi_vendor_update/"
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/purchase_line_views/"
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/merge_rfq/"
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 -->

25
auto_generate_lot_number/views/product_template_views.xml

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherited the product.template form view for adding new fields related to the traceability-->
<record id="product_template_only_form_view" model="ir.ui.view">
<field name="name">
product.template.view.form.inherit.auto.generate.lot.number
</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_only_form_view"/>
<field name="arch" type="xml">
<group name="traceability" position="inside">
<field name="is_auto_generate" invisible="1"/>
<field name="digits"
attrs="{'invisible':['|',('is_auto_generate', '!=', True),('tracking','=','none')],
'required':[('is_auto_generate', '=', True),('tracking','!=','none')]}"/>
<field name="prefix"
attrs="{'invisible':['|',('is_auto_generate', '!=', True),('tracking','=','none')],
'required':[('is_auto_generate', '=', True),('tracking','!=','none')]}"/>
<field name="number_next" invisible="1"
groups="base.group_no_one"/>
</group>
</field>
</record>
</odoo>

16
auto_generate_lot_number/views/res_company_views.xml

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Inherited the res.company form view for adding new fields-->
<record id="view_company_form" model="ir.ui.view">
<field name="name">
res.company.view.form.inherit.auto.generate.lot.number
</field>
<field name="model">res.company</field>
<field name="inherit_id" ref="base.view_company_form"/>
<field name="arch" type="xml">
<field name="partner_id" position="after">
<field name="check_auto_generate" invisible="1"/>
</field>
</field>
</record>
</odoo>

92
auto_generate_lot_number/views/res_config_settings_views.xml

@ -0,0 +1,92 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherited the res.config.settings form view for adding new fields to
choose lot/seral number in product wise or globally-->
<record id="res_config_settings_view_form_purchase" model="ir.ui.view">
<field name="name">
res.config.settings.view.form.inherit.auto.generate.lot.number
</field>
<field name="model">res.config.settings</field>
<field name="inherit_id"
ref="purchase.res_config_settings_view_form_purchase"/>
<field name="arch" type="xml">
<xpath expr="//div[@data-key='purchase']" position="inside">
<h2>Auto Generate Lot Number</h2>
<div class="row mt16 o_settings_container"
name="purchase_setting_container">
<div class="col-12 col-lg-6 o_setting_box">
<div class="o_setting_left_pane">
<field name="is_auto_generate"/>
</div>
<div class="o_setting_right_pane">
<label for="is_auto_generate"/>
<div class="text-muted">Auto Generating Serial and
Lot Number
</div>
</div>
</div>
<div attrs="{'invisible':[('is_auto_generate','!=',True)]}"
style="padding-left: 48px;">
<label for="serial_number_type"/>
<div class="text-muted" style="padding-bottom:10px">
Global and Product Wise
</div>
<div class="o_setting_left_pane "
style="width:113px !important;">
<field name="serial_number_type"
class="o_light_label" widget="radio"/>
</div>
</div>
</div>
<div>
<div>
<div class="o_setting_left_pane">
</div>
<div class="mt8" style="margin-left: 70px !important;"
attrs="{'invisible':
[('serial_number_type', '!=', 'product')]}">
<button name="%(product.product_template_action)d"
icon="fa-arrow-right"
type="action"
string="Show Products" class="btn-link"
attrs="{'invisible':
['|',('serial_number_type', '!=', 'product')
,('is_auto_generate','!=',True)]}"/>
</div>
</div>
<div style="margin-left:33px !important;">
<div class="row mt16 o_settings_container"
name="performance"
style="margin-left:33px !important;">
<div class="col-12 col-lg-6 o_setting_box"
id="profiling_enabled_until1"
style="padding-left: 48px;">
<label for="digits"
attrs="{'invisible':
['|',('serial_number_type', '!=', 'global')
,('is_auto_generate','!=',True)]} "
style="margin-right: 10px !important;"/>
<field name="digits" attrs="{'invisible':
['|',('serial_number_type', '!=', 'global'),
('is_auto_generate','!=',True)],
'required': [('serial_number_type', '=', 'global')]
,}"/>
</div>
<div class="col-12 col-lg-6 o_setting_box"
id="profiling_enabled_until">
<label for="prefix"
attrs="{'invisible':
['|',('serial_number_type', '!=', 'global')
,('is_auto_generate','!=',True)],}"/>
<field name="prefix" attrs="{'invisible':
['|',('serial_number_type', '!=', 'global'),
('is_auto_generate','!=',True)],
'required': [('serial_number_type', '=', 'global'),('is_auto_generate','!=',False)]}"/>
</div>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>

125
auto_generate_lot_number/views/stock_move_views.xml

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inherited the stock.move form view to make changes in attributes-->
<record id="view_stock_move_nosuggest_operations_custom" model="ir.ui.view">
<field name="name">stock.move.operations.nosuggest.form</field>
<field name="model">stock.move</field>
<field name="priority">1000</field>
<field name="mode">primary</field>
<field name="inherit_id" ref="stock.view_stock_move_operations"/>
<field name="arch" type="xml">
<field name="move_line_ids" position="replace">
<field name="move_line_nosuggest_ids"
attrs="{'readonly': ['|', ('state', '=', 'cancel'),'&amp;',
('state', '=', 'done'), ('is_locked', '=', True)]}"
context="{'tree_view_ref':
'stock.view_stock_move_line_operation_tree_custom',
'default_picking_id': picking_id, 'default_move_id': id,
'default_product_id': product_id,
'default_location_id': location_id,
'default_location_dest_id': location_dest_id,
'default_company_id': company_id}"/>
</field>
</field>
</record>
<!-- Inherited the stock.move.line tree view-->
<record id="view_stock_move_line_operation_tree_custom" model="ir.ui.view">
<field name="name">stock.move.line.operations.tree</field>
<field name="model">stock.move.line</field>
<field name="priority">1000</field>
<field name="arch" type="xml">
<tree editable="bottom" create="false"
decoration-muted="state == 'done' and is_locked == True"
decoration-success="reserved_uom_qty==qty_done"
decoration-danger="qty_done &gt;
reserved_uom_qty and state != 'done'
and picking_code != 'incoming'">
<field name="company_id" invisible="1" force_save="1"/>
<field name="picking_id" invisible="1" force_save="1"/>
<field name="move_id" invisible="1" force_save="1"/>
<field name="product_uom_category_id" invisible="1"/>
<field name="product_id" invisible="1"/>
<field name="package_level_id" invisible="1"/>
<field name="location_id" invisible="1"/>
<field name="location_dest_id" invisible="1"/>
<field name="package_id" invisible="1"/>
<field name="location_id" options="{'no_create': True}"
attrs="{'readonly': ['&amp;',
('package_level_id', '!=', False),
('parent.picking_type_entire_packs', '=', True)]}"
invisible="not context.get('show_source_location')"
domain="[('id', 'child_of', parent.location_id),
'|', ('company_id', '=', False),
('company_id', '=', company_id),
('usage', '!=', 'view')]"
groups="stock.group_stock_multi_locations"/>
<field name="location_dest_id"
attrs="{'readonly': ['&amp;',
('package_level_id', '!=', False),
('parent.picking_type_entire_packs', '=', True)]}"
invisible="not context.get('show_destination_location')"
domain="[('id', 'child_of', parent.location_dest_id), '|', ('company_id', '=', False), ('company_id', '=', company_id), ('usage', '!=', 'view')]"
groups="stock.group_stock_multi_locations"/>
<field name="lot_id" groups="stock.group_production_lot"
attrs="{'readonly': ['&amp;',
('package_level_id', '!=', False),
('parent.picking_type_entire_packs', '=', True)]}"
invisible="not context.get('show_lots_m2o')"
domain="[('product_id', '=', parent.product_id),
('company_id', '=', company_id)]"
context="{
'active_picking_id': picking_id,
'default_company_id': parent.company_id,
'default_product_id': parent.product_id,
}"
/>
<field name="lot_name" string="Lot/Serial Number" widget="text"
groups="stock.group_production_lot"
placeholder="Write your SN/LN one by one or copy paste a list."
attrs="{'readonly': ['&amp;',
('package_level_id', '!=', False),
('parent.picking_type_entire_packs', '=', True)]}"
invisible="not context.get('show_lots_text')"/>
<field name="package_id"
attrs="{'readonly': ['&amp;',
('package_level_id', '!=', False),
('parent.picking_type_entire_packs', '=', True)]}"
invisible="not context.get('show_package')"
groups="stock.group_tracking_lot"/>
<field name="result_package_id"
attrs="{'readonly': ['&amp;',
('package_level_id', '!=', False),
('parent.picking_type_entire_packs', '=', True)]}"
groups="stock.group_tracking_lot"
context="{'picking_id': picking_id}"/>
<field name="owner_id"
attrs="{'readonly': ['&amp;',
('package_level_id', '!=', False),
('parent.picking_type_entire_packs', '=', True)]}"
invisible="not context.get('show_owner')"
groups="stock.group_tracking_owner"/>
<field name="reserved_uom_qty"
invisible="not context.get('show_reserved_quantity')"
readonly="1"/>
<field name="state" invisible="1"/>
<field name="is_locked" invisible="1"/>
<field name="picking_code" invisible="1"/>
<field name="qty_done"
attrs="{'readonly': ['|', '&amp;',
('state', '=', 'done'), ('is_locked', '=', True),
'&amp;', ('package_level_id', '!=', False),
('parent.picking_type_entire_packs', '=', True)]}"/>
<field name="product_uom_id"
options="{'no_open': True, 'no_create': True}"
string="Unit of Measure"
groups="uom.group_uom"
attrs="{'readonly':
['|', '|', ('reserved_uom_qty', '!=', 0.0),
'&amp;', ('package_level_id', '!=', False),
('parent.picking_type_entire_packs', '=', True),
'&amp;', ('state', '=', 'done'),
('id', '!=', False)]}"/>
</tree>
</field>
</record>
</odoo>
Loading…
Cancel
Save