Browse Source

Dec 26 : [ADD] Initial Commit 'product_nutrition_allergen'

pull/299/head
RisvanaCybro 1 year ago
parent
commit
59d5fafc7f
  1. 47
      product_nutrition_allergen/README.rst
  2. 22
      product_nutrition_allergen/__init__.py
  3. 53
      product_nutrition_allergen/__manifest__.py
  4. 6
      product_nutrition_allergen/doc/RELEASE_NOTES.md
  5. 23
      product_nutrition_allergen/models/__init__.py
  6. 39
      product_nutrition_allergen/models/product_nutrition.py
  7. 88
      product_nutrition_allergen/models/product_template.py
  8. 14
      product_nutrition_allergen/report/product_nutrition_allergen_reports.xml
  9. 121
      product_nutrition_allergen/report/product_nutrition_allergen_templates.xml
  10. 2
      product_nutrition_allergen/security/ir.model.access.csv
  11. 8
      product_nutrition_allergen/security/product_nutrition_allergen_groups.xml
  12. BIN
      product_nutrition_allergen/static/description/assets/icons/check.png
  13. BIN
      product_nutrition_allergen/static/description/assets/icons/chevron.png
  14. BIN
      product_nutrition_allergen/static/description/assets/icons/cogs.png
  15. BIN
      product_nutrition_allergen/static/description/assets/icons/consultation.png
  16. BIN
      product_nutrition_allergen/static/description/assets/icons/ecom-black.png
  17. BIN
      product_nutrition_allergen/static/description/assets/icons/education-black.png
  18. BIN
      product_nutrition_allergen/static/description/assets/icons/hotel-black.png
  19. BIN
      product_nutrition_allergen/static/description/assets/icons/license.png
  20. BIN
      product_nutrition_allergen/static/description/assets/icons/lifebuoy.png
  21. BIN
      product_nutrition_allergen/static/description/assets/icons/manufacturing-black.png
  22. BIN
      product_nutrition_allergen/static/description/assets/icons/pos-black.png
  23. BIN
      product_nutrition_allergen/static/description/assets/icons/puzzle.png
  24. BIN
      product_nutrition_allergen/static/description/assets/icons/restaurant-black.png
  25. BIN
      product_nutrition_allergen/static/description/assets/icons/service-black.png
  26. BIN
      product_nutrition_allergen/static/description/assets/icons/trading-black.png
  27. BIN
      product_nutrition_allergen/static/description/assets/icons/training.png
  28. BIN
      product_nutrition_allergen/static/description/assets/icons/update.png
  29. BIN
      product_nutrition_allergen/static/description/assets/icons/user.png
  30. BIN
      product_nutrition_allergen/static/description/assets/icons/wrench.png
  31. BIN
      product_nutrition_allergen/static/description/assets/misc/categories.png
  32. BIN
      product_nutrition_allergen/static/description/assets/misc/check-box.png
  33. BIN
      product_nutrition_allergen/static/description/assets/misc/compass.png
  34. BIN
      product_nutrition_allergen/static/description/assets/misc/corporate.png
  35. BIN
      product_nutrition_allergen/static/description/assets/misc/customer-support.png
  36. BIN
      product_nutrition_allergen/static/description/assets/misc/cybrosys-logo.png
  37. BIN
      product_nutrition_allergen/static/description/assets/misc/features.png
  38. BIN
      product_nutrition_allergen/static/description/assets/misc/logo.png
  39. BIN
      product_nutrition_allergen/static/description/assets/misc/pictures.png
  40. BIN
      product_nutrition_allergen/static/description/assets/misc/pie-chart.png
  41. BIN
      product_nutrition_allergen/static/description/assets/misc/right-arrow.png
  42. BIN
      product_nutrition_allergen/static/description/assets/misc/star.png
  43. BIN
      product_nutrition_allergen/static/description/assets/misc/support.png
  44. BIN
      product_nutrition_allergen/static/description/assets/misc/whatsapp.png
  45. BIN
      product_nutrition_allergen/static/description/assets/modules/1.png
  46. BIN
      product_nutrition_allergen/static/description/assets/modules/2.jpg
  47. BIN
      product_nutrition_allergen/static/description/assets/modules/3.png
  48. BIN
      product_nutrition_allergen/static/description/assets/modules/4.jpg
  49. BIN
      product_nutrition_allergen/static/description/assets/modules/5.jpg
  50. BIN
      product_nutrition_allergen/static/description/assets/modules/6.png
  51. BIN
      product_nutrition_allergen/static/description/assets/screenshots/hero.gif
  52. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_01.png
  53. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_02.png
  54. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_03.png
  55. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_04.png
  56. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_05.png
  57. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_06.png
  58. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_07.png
  59. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_08.png
  60. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_09.png
  61. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_10.png
  62. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_11.png
  63. BIN
      product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_screenshots.zip
  64. BIN
      product_nutrition_allergen/static/description/banner.png
  65. BIN
      product_nutrition_allergen/static/description/icon.png
  66. 562
      product_nutrition_allergen/static/description/index.html
  67. 86
      product_nutrition_allergen/static/src/js/website_sale.js
  68. 54
      product_nutrition_allergen/views/product_template_views.xml
  69. 43
      product_nutrition_allergen/views/website_product_template.xml

47
product_nutrition_allergen/README.rst

@ -0,0 +1,47 @@
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
Product Nutrition
==================
This module helps you to view product's nutrition and allergen information
Configuration
=============
* No additional configuration required
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
License
-------
General Public License, Version 3 (LGPL v3).
( https://www.gnu.org/licenses/lgpl-3.0-standalone.html)
Credits
-------
Developer: (V16) Sreeshanth V S @cybrosys, 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
product_nutrition_allergen/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sreeshanth V S (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import models

53
product_nutrition_allergen/__manifest__.py

@ -0,0 +1,53 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sreeshanth V S (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
{
'name': "Product Nutrition",
"version": "16.0.1.0.0",
"category": "eCommerce",
"summary": "Nutrition and allergen information of products",
"description": "We can add nutrition ,ingredient and allergen information"
"of products on the as product information and can displayed"
"on website for website sale",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': "https://www.cybrosys.com",
'depends': ['product', 'sale', 'website_sale'],
'data': [
'security/product_nutrition_allergen_groups.xml',
'security/ir.model.access.csv',
'report/product_nutrition_allergen_reports.xml',
'report/product_nutrition_allergen_templates.xml',
'views/website_product_template.xml',
'views/product_template_views.xml'
],
'assets':
{
'web.assets_frontend': [
'product_nutrition_allergen/static/src/js/website_sale.js']
},
'images': ['static/description/banner.png'],
'license': 'LGPL-3',
'installable': True,
'auto_install': False,
'application': False
}

6
product_nutrition_allergen/doc/RELEASE_NOTES.md

@ -0,0 +1,6 @@
## Module <product_nutrition_allergen>
#### 02.12.2023
#### Version 16.0.1.0.0
##### ADD
- Initial Commit for Product Nutrition

23
product_nutrition_allergen/models/__init__.py

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sreeshanth V S (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from . import product_nutrition
from . import product_template

39
product_nutrition_allergen/models/product_nutrition.py

@ -0,0 +1,39 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Sreeshanth V S (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from odoo import fields, models
class ProductNutrition(models.Model):
""" For managing product nutrition and allergen information"""
_name = "product.nutrition"
_description = "Product Nutrition"
name = fields.Char(string='Nutritional Name',
help="Identifying nutritional name")
nutrition_value = fields.Float(string="Value",
help="Getting nutritional value")
product_template_id = fields.Many2one('product.template',
string="Product",
help="Inverse fields for nutrition_ids "
"One2many field in product template")
uom_id = fields.Many2one("uom.uom", string="Unit",
help="For getting unit of nutrition value")

88
product_nutrition_allergen/models/product_template.py

@ -0,0 +1,88 @@
# -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author : Sreeshanth V S (odoo@cybrosys.com)
#
# You can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details.
#
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE
# (LGPL v3) along with this program.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from odoo import api, fields, models
class ProductTemplate(models.Model):
""" Added product nutrition information"""
_inherit = "product.template"
nutrition_details = fields.Boolean(string="Nutrition Details",
help="Enable to add nutrition "
"information")
allergy_details = fields.Boolean(string="Allergy Details",
help="Enable to add allergy information")
ingredients_details = fields.Boolean(string="Ingredients Details",
help="Enable to add ingredients "
"details")
nutrition_amount = fields.Float(string="Nutrition as Per",
help="Nutrition amount per unit")
unit_id = fields.Many2one('uom.uom', string="Unit",
help="Nutrition unit")
nutrition_ids = fields.One2many('product.nutrition',
'product_template_id',
string="Nutrition",
help="Adding nutrition information in"
"product")
ingredients_information = fields.Text(string="Ingredients Information",
help="Ingredients Information")
allergy_information = fields.Text(string="Allergy Information",
help="Allergy Information")
@api.model
def product_nutrition_details(self, name):
""" Return product nutrition details to js"""
lang = self.env['res.users'].browse(self.env.uid).lang
product_name = name.split('#')[0].split('-')
product_info = product_name[len(product_name) - 1]
product_id = product_info.split('?')[0]
product = self.browse(int(product_id))
query = (""" select product_nutrition.name AS name,
product_nutrition.nutrition_value,uom_uom.name->> '{}' as
uom_name from product_template join product_nutrition on
product_template.id = product_nutrition.product_template_id
join uom_uom on uom_uom.id = product_nutrition.uom_id """
.format(lang))
if product.nutrition_ids:
self.env.cr.execute(
"""{} where product_template.id ='{}'""".format(
query, product_id))
conf = self.env.cr.dictfetchall()
return conf
@api.model
def product_ingredients_details(self, name):
""" Return product ingredient details to js"""
product_name = name.split('#')[0].split('-')
product_info = product_name[len(product_name) - 1]
product_id = product_info.split('?')[0]
product = self.browse(int(product_id))
return product.ingredients_information
@api.model
def product_allergy_details(self, name):
""" Return product allergy details to js"""
product_name = name.split('#')[0].split('-')
product_info = product_name[len(product_name) - 1]
product_id = product_info.split('?')[0]
product = self.browse(int(product_id))
return product.allergy_information

14
product_nutrition_allergen/report/product_nutrition_allergen_reports.xml

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Report action for product nutrition report -->
<record id="action_report_product_nutrition" model="ir.actions.report">
<field name="name">Product Nutrition</field>
<field name="model">product.template</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">product_nutrition_allergen.product_nutrition_report</field>
<field name="report_file">product_nutrition_report</field>
<field name="print_report_name">'product nutrition details'</field>
<field name="binding_model_id" ref="model_product_template"/>
<field name="binding_type">report</field>
</record>
</odoo>

121
product_nutrition_allergen/report/product_nutrition_allergen_templates.xml

@ -0,0 +1,121 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Product nutrition pdf report template -->
<template id="product_nutrition_report">
<t t-call="web.html_container">
<div class="article">
<div class="header">
<div class="row text-left"
style="border-top: 1px solid black;">
<div class="col-xs-3 col-xs-offset-9 text-right">
<ul class="list-inline"
style="margin-top:10px;">
<li>
<span class="page"/>
/
<span class="topage"/>
</li>
</ul>
</div>
</div>
</div>
<h1>
<strong>
<t t-set="docs" t-value="docs"/>
<span class="text-left" style="color:Blue;"
t-esc="docs.name"/>
</strong>
</h1>
<br/>
<br/>
<div style="background:SlateBlue; color:White;">
<table class="table">
<thead>
<tr>
<th>Nutrition Details</th>
<th>Ingredients</th>
<th>Allergy</th>
</tr>
</thead>
</table>
</div>
<div>
<center>
<h3>
Nutrition Information
<span class="text-left"
t-esc="docs.nutrition_amount"/>
per
<span class="text-left"
t-esc="docs.unit_id.name"/>
</h3>
</center>
</div>
<div>
<table class="table">
<thead style="background:SlateBlue; color:White;">
<tr>
<th>Nutrition Name</th>
<th>Nutrition Value</th>
<th>Unit</th>
</tr>
</thead>
<tbody style="background-color:rgb(208,208,208);">
<t t-set="i" t-value="1"/>
<t t-foreach="docs.nutrition_ids"
t-as="nutrition">
<tr>
<td class="text-center"
style="width: 15%">
<span t-esc="nutrition.name"/>
</td>
<td class="text-center"
style="width: 15%">
<span t-esc="nutrition.nutrition_value"/>
</td>
<td class="text-center"
style="width: 15%">
<span t-esc="nutrition.uom_id.name"/>
</td>
</tr>
</t>
</tbody>
</table>
</div>
<div>
<center>
<t t-if="docs.ingredients_information">
<h3>
Ingredients Information
</h3>
</t>
<br>
</br>
<div style="background-color:rgb(208,208,208);">
<span class="text-center"
t-esc="docs.ingredients_information"/>
</div>
</center>
</div>
<br/>
<br/>
<div>
<center>
<t t-if="docs.allergy_information">
<h3>
Allergy Information
</h3>
</t>
<br>
</br>
<div style="background-color:rgb(208,208,208);">
<span class="text-left"
t-esc="docs.allergy_information"/>
</div>
</center>
</div>
</div>
</t>
</template>
</odoo>

2
product_nutrition_allergen/security/ir.model.access.csv

@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_product_nutrition_user,access.product.nutrition.user,model_product_nutrition,product_nutrition_allergen_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_product_nutrition_user access.product.nutrition.user model_product_nutrition product_nutrition_allergen_group_user 1 1 1 1

8
product_nutrition_allergen/security/product_nutrition_allergen_groups.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- User group for product nutrition and allergen -->
<record id="product_nutrition_allergen_group_user" model="res.groups">
<field name="name">Product Nutrition</field>
<field name="category_id" ref="base.module_category_usability"/>
</record>
</odoo>

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

BIN
product_nutrition_allergen/static/description/assets/modules/2.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
product_nutrition_allergen/static/description/assets/modules/4.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
product_nutrition_allergen/static/description/assets/modules/5.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_01.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_02.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_03.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_04.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_05.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_06.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_07.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_08.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_09.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

BIN
product_nutrition_allergen/static/description/assets/screenshots/product_nutrition_screenshots.zip

Binary file not shown.

BIN
product_nutrition_allergen/static/description/banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
product_nutrition_allergen/static/description/icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

562
product_nutrition_allergen/static/description/index.html

@ -0,0 +1,562 @@
<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 O F 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 Nutrition
</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;">Product Nutrition and Allergen Information</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">
This module helps you to add nutrition,ingredient and allergen information
of products and that information can be display on website
</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: 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;">We can view and manage product nutrition information</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;">We can manage product allergen information</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;"> Product ingredient information are available</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;">Available in Odoo 16.0
Community, Enterprise and Odoo Sh.</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;">Nutrition per amount can be added on the products</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;">Product Nutrition User Groups
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Go to Settings -> User & Companies -> Users
->
From the User enable Product Nutrition user group for the current user
</p>
<img src="assets/screenshots/product_nutrition_11.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;">Nutrition and Allergy information
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Go to Inventory -> Products -> Products
->
In the form view we can see Nutrition & Allergy details ,By enabling checkbox we can add corresponding information
</p>
<img src="assets/screenshots/product_nutrition_01.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;">Ingredient Information
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">By enabling the Ingredient Details we can add ingredient information
</p>
<img src="assets/screenshots/product_nutrition_03.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;">Allergy Information
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">By enabling Allergy Details we can add allergy information
</p>
<img src="assets/screenshots/product_nutrition_02.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 Nutrition Report
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">By clicking the Print we can print the Product Nutrition Report
</p>
<img src="assets/screenshots/product_nutrition_04.png" class="img-thumbnail">
<img src="assets/screenshots/product_nutrition_05.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 Nutrition Details in Website
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Go to Website and select the corresponding product from the Shop and see the details
</p>
<img src="assets/screenshots/product_nutrition_06.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 Nutrition Details in Website
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">Click Nutrition Details we get nutrition included in the product
</p>
<img src="assets/screenshots/product_nutrition_07.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 Allergy Details in Website
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">By clicking Allergy we can get the allergy information in the Website
</p>
<img src="assets/screenshots/product_nutrition_09.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 Ingredient Details in Website
</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">By clicking Ingredient we get product ingredient information in the Website
</p>
<img src="assets/screenshots/product_nutrition_10.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/product_brand_ecommerce/" 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/website_upload_files/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/2.jpg">
</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/ecommerce_barcode_search/#" 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/one_page_checkout/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/4.jpg">
</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/website_sale_variant_selection/" target="_blank">
<div style="border-radius:10px">
<img class="img img-responsive center-block" style="border-radius: 0px;" src="assets/modules/5.jpg">
</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/openai_website_product_media/#" 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>
</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 -->

86
product_nutrition_allergen/static/src/js/website_sale.js

@ -0,0 +1,86 @@
/** @odoo-module **/
import publicWidget from 'web.public.widget';
var ajax=require('web.ajax');
var rpc=require('web.rpc');
publicWidget.registry.nutritionWidget = publicWidget.Widget.extend({
selector : '#nutritional_info',
events: {
'click #button_nutrition': '_onClickNutrition',
'click #button_ingredients': '_onClickIngredient',
'click #button_allergy' : '_onClickAllergy',
'click #show_nutrition' : '_onClickShowNutrition',
},
start: function () {
// Hide all buttons and divs while loading
this.$el.find("#product_ingredients").empty();
this.$el.find("#product_ingredients").hide();
this.$el.find("#product_allergy").empty();
this.$el.find("#product_allergy").hide();
this.$el.find("#per_person").empty();
this.$el.find("#per_person").hide();
this.$el.find("#button_nutrition").hide();
this.$el.find("#button_ingredients").hide();
this.$el.find("#button_allergy").hide();
},
_onClickShowNutrition : function(ev) {
// Function to display nutritional information buttons
var div_selector = this.$el
div_selector.find("#button_nutrition").toggle();
div_selector.find("#button_ingredients").toggle();
div_selector.find("#button_allergy").toggle();
},
_onClickNutrition: function (ev) {
// Function to display product nutrition details
var div_selector = this.$el;
div_selector.find("#per_person").empty();
div_selector.find("#per_person").show();
var base_url = this.target.baseURI
var demo = base_url.split("/");
rpc.query({
model: 'product.template',
method: 'product_nutrition_details',
args: [demo[4]]
}).then(function (nutrition) {
$.each(nutrition, function( index, value ) {
div_selector.find("#product_allergy").empty();
div_selector.find("#product_ingredients").empty();
div_selector.find("#per_person").append("<div>"+value['name']+":"+value['nutrition_value']+" "+value['uom_name']+"</div>");
});
});
},
_onClickIngredient : function (ev) {
// Function to display product ingredient details
var div_selector = this.$el;
div_selector.find("#product_ingredients").show();
var base_url = this.target.baseURI
var demo = base_url.split("/");
rpc.query({
model: 'product.template',
method: 'product_ingredients_details',
args: [demo[4]]
}).then(function (ingredients_information) {
div_selector.find("#product_ingredients").empty();
div_selector.find("#product_allergy").empty();
div_selector.find("#per_person").empty();
div_selector.find("#product_ingredients").append(ingredients_information);
});
},
_onClickAllergy : function (ev) {
// Function to print product allergen information
var div_selector = this.$el;
div_selector.find("#product_allergy").show();
var base_url = this.target.baseURI
var demo = base_url.split("/");
rpc.query({
model: 'product.template',
method: 'product_allergy_details',
args: [demo[4]]
}).then(function (allergy_information) {
div_selector.find("#product_allergy").empty();
div_selector.find("#product_ingredients").empty();
div_selector.find("#per_person").empty();
div_selector.find("#product_allergy").append(allergy_information);
});
},
});
return publicWidget.registry.nutritionWidget;

54
product_nutrition_allergen/views/product_template_views.xml

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inheriting product view to add nutrition and allergen information -->
<record id="product_template_form_view" model="ir.ui.view">
<field name="name">
product.template.view.form.inherit.product.nutrition.allergen
</field>
<field name="model">product.template</field>
<field name="mode">extension</field>
<field name="inherit_id" ref="account.product_template_form_view"/>
<field name="arch" type="xml">
<xpath expr="//page[@name='invoicing']" position="after">
<page string="Nutrition &amp; Allergy"
name="nutrition_details">
<group>
<group>
<field name="nutrition_details"/>
<field name="ingredients_details"/>
</group>
<group>
<field name="allergy_details"/>
<field name="nutrition_amount"/>
<field name="unit_id"/>
</group>
</group>
<notebook>
<page name="nutrition_details"
attrs="{'invisible':[('nutrition_details', '!=', True)]}"
string="Nutritional Information">
<field name="nutrition_ids" nolabel="1"
colspan="2">
<tree editable="bottom">
<field name="name"/>
<field name="uom_id"/>
<field name="nutrition_value"/>
</tree>
</field>
</page>
<page name="ingredients_information"
string="Ingredients Information"
attrs="{'invisible':[('ingredients_details', '!=', True)]}">
<field name="ingredients_information"/>
</page>
<page name="allergy_information"
string="Allergy Information"
attrs="{'invisible':[('allergy_details', '!=', True)]}">
<field name="allergy_information"/>
</page>
</notebook>
</page>
</xpath>
</field>
</record>
</odoo>

43
product_nutrition_allergen/views/website_product_template.xml

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Inheriting website product template to display nutrition and allergen information -->
<template inherit_id="website_sale.product"
id="product_nutrition_information"
name="Product Nutrition Information">
<xpath expr="//div[@id='o_product_terms_and_share']" position="before">
<div id="nutritional_info"> <a id="show_nutrition" href="#">Nutrition and Allergen Details</a>
<table class="table">
<thead>
<tr>
<th>
<button type="button"
id="button_nutrition"
class="btn btn-primary">Nutrition Details
</button>
<button type="button"
id="button_ingredients"
class="btn btn-primary">Ingredients
</button>
<button type="button"
id="button_allergy"
class="btn btn-primary">Allergy
</button>
</th>
</tr>
<tr>
<th>
<div id="per_person"><u/></div>
<table>
<thead>
</thead>
</table>
<div id="product_ingredients"/>
<div id="product_allergy"/>
</th>
</tr>
</thead>
</table>
</div>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save