@ -0,0 +1,40 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg |
||||
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html |
||||
|
:alt: License: AGPL-3 |
||||
|
|
||||
|
POS Manual Weight |
||||
|
================= |
||||
|
This module will help you to add product weight manually using weigh scale screen without a weigh machine. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
* No additional configurations needed. |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: (V17) Vishnu Kp, |
||||
|
Developer: (V18) Safa KB, |
||||
|
Contact : odoo@cybrosys.com |
||||
|
|
||||
|
|
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,22 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Safa KB (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 |
@ -0,0 +1,49 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Safa KB (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': 'POS Manual Weight', |
||||
|
'version': '18.0.1.0.0', |
||||
|
'category': 'Point of Sale', |
||||
|
'summary': 'Add Manual Weight for products in POS.', |
||||
|
'description': """This module will help you to add product weight manually |
||||
|
using weigh scale screen without a weigh machine.""", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': ['point_of_sale'], |
||||
|
'data': [ |
||||
|
'views/res_config_settings_views.xml', |
||||
|
], |
||||
|
'assets': { |
||||
|
'point_of_sale._assets_pos': [ |
||||
|
'pos_weight_manual/static/src/xml/Screens/ScaleScreen/ScaleScreen.xml', |
||||
|
'pos_weight_manual/static/src/js/**/*', |
||||
|
'pos_weight_manual/static/src/css/**/*', |
||||
|
] |
||||
|
}, |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'AGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
## Module <pos_weight_manual> |
||||
|
|
||||
|
#### 07.05.2025 |
||||
|
#### Version 18.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial Commit for POS Manual Weight |
@ -0,0 +1,24 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Safa KB (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from . import res_config_settings |
||||
|
from . import pos_config |
||||
|
from . import pos_session |
@ -0,0 +1,34 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Safa KB (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 PosConf(models.Model): |
||||
|
"""Class for POS Configuration""" |
||||
|
_inherit = 'pos.config' |
||||
|
|
||||
|
is_allow_manual_weight = fields.Boolean(string='Allow Manual Weight', |
||||
|
help='If enabled, it will allow you' |
||||
|
'to add weight manually on POS' |
||||
|
' Screen if a product has a ' |
||||
|
'price per weight set.' |
||||
|
) |
@ -0,0 +1,32 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Safa KB (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 |
||||
|
|
||||
|
|
||||
|
class PosSession(models.Model): |
||||
|
_inherit = 'pos.session' |
||||
|
|
||||
|
def _loader_params_product_template(self): |
||||
|
"""Add custom fields to POS product template loader parameters.""" |
||||
|
result = super()._loader_params_product_template() |
||||
|
result['search_params']['fields'] += ['to_weight_with_manual','select'] |
||||
|
return result |
@ -0,0 +1,32 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
################################################################################ |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). |
||||
|
# Author: Safa KB (odoo@cybrosys.com) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU AFFERO |
||||
|
# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE |
||||
|
# (AGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
################################################################################ |
||||
|
from odoo import fields, models |
||||
|
|
||||
|
|
||||
|
class ResConfigSettings(models.TransientModel): |
||||
|
"""Inherits the ConfigSettings class for Adding the fields""" |
||||
|
_inherit = 'res.config.settings' |
||||
|
|
||||
|
pos_is_allow_manual_weight = fields.Boolean( |
||||
|
string='Allow Manual Weight', readonly=False, |
||||
|
related='pos_config_id.is_allow_manual_weight', |
||||
|
config_parameter='pos_manual.pos_is_allow_manual_weight') |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 628 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 738 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 86 KiB |
After Width: | Height: | Size: 144 KiB |
After Width: | Height: | Size: 126 KiB |
After Width: | Height: | Size: 307 KiB |
After Width: | Height: | Size: 409 KiB |
After Width: | Height: | Size: 104 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,814 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html lang="en"> |
||||
|
<head> |
||||
|
<meta charset="UTF-8"/> |
||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> |
||||
|
<title>Pos Manual Weight</title> |
||||
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" |
||||
|
rel="stylesheet"/> |
||||
|
<link rel="preconnect" href="https://fonts.googleapis.com"> |
||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
||||
|
<link href="https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" |
||||
|
rel="stylesheet"> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css"/> |
||||
|
<link rel="stylesheet" |
||||
|
href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"/> |
||||
|
<style> |
||||
|
:root { |
||||
|
--primary-color: #7f54b3; |
||||
|
--bg-white: #fff; |
||||
|
--text-color: #121212; |
||||
|
--text-color-light: #64728f; |
||||
|
} |
||||
|
|
||||
|
body { |
||||
|
font-family: "Montserrat", sans-serif; |
||||
|
} |
||||
|
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active { |
||||
|
color: #121212; |
||||
|
font-family: Montserrat; |
||||
|
font-size: 16px !important; |
||||
|
font-weight: 500 !important; |
||||
|
border-radius: 30px; |
||||
|
line-height: normal; |
||||
|
text-transform: capitalize; |
||||
|
background-color: #F5F5F5; |
||||
|
border: none; |
||||
|
margin-bottom: 0; |
||||
|
padding: 12px 24px; |
||||
|
} |
||||
|
|
||||
|
.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover { |
||||
|
border-color: transparent; |
||||
|
isolation: isolate; |
||||
|
} |
||||
|
|
||||
|
.nav-tabs .nav-link:focus-visible { |
||||
|
border-color: transparent; |
||||
|
box-shadow: none; |
||||
|
} |
||||
|
|
||||
|
/* owl-carosel */ |
||||
|
.owl-carousel .owl-nav { |
||||
|
position: absolute; |
||||
|
top: 42%; |
||||
|
width: 100%; |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
transform: translateY(-42%); |
||||
|
} |
||||
|
|
||||
|
.owl-carousel .owl-nav button.owl-prev { |
||||
|
position: absolute; |
||||
|
right: -36px; |
||||
|
font-size: 28px; |
||||
|
background-color: #e4e4e4; |
||||
|
border-radius: 20px; |
||||
|
width: 40px; |
||||
|
height: 40px; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
} |
||||
|
|
||||
|
.owl-carousel .owl-nav button.owl-next { |
||||
|
position: absolute; |
||||
|
left: -36px; |
||||
|
font-size: 28px; |
||||
|
background-color: #e4e4e4; |
||||
|
border-radius: 20px; |
||||
|
width: 40px; |
||||
|
height: 40px; |
||||
|
display: flex; |
||||
|
justify-content: center; |
||||
|
align-items: center; |
||||
|
|
||||
|
} |
||||
|
|
||||
|
</style> |
||||
|
</head> |
||||
|
<body> |
||||
|
<!-- overview --> |
||||
|
<div class="container"> |
||||
|
<div class="my-5"> |
||||
|
<!-- button tab --> |
||||
|
<!-- --> |
||||
|
<!-- version support --> |
||||
|
<div class="my-3 d-flex align-items-center justify-content-end"> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#017E84 !important; font-size:0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important"> |
||||
|
Community |
||||
|
</div> |
||||
|
<div class="text-center" |
||||
|
style="background-color:#875A7B !important; color:#fff !important; font-size:0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important"> |
||||
|
Enterprise |
||||
|
</div> |
||||
|
<!-- <div class="text-center"--> |
||||
|
<!-- style="background-color:#7C7BAD !important; color:#fff !important; font-size:0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width:120px !important">--> |
||||
|
<!-- Odoo.sh--> |
||||
|
<!-- </div>--> |
||||
|
</div> |
||||
|
<div class="tab-content" id="myTabContent"> |
||||
|
<!-- description --> |
||||
|
<div class="tab-pane fade show active" id="home" role="tabpanel" |
||||
|
aria-labelledby="home-tab"> |
||||
|
<div class="position-relative" |
||||
|
style="border-radius: 16px; background: #f8f8f8; padding: 20px 0;"> |
||||
|
<div class="row " style=" |
||||
|
padding: 2rem 0rem 0 !important; |
||||
|
"> |
||||
|
<div class="col-lg-8 mx-auto gap-4 d-flex flex-column align-items-center"> |
||||
|
<p class="my-1 text-center text-uppercase" |
||||
|
style=" |
||||
|
letter-spacing: 4px !important; |
||||
|
color: #7f54b3; |
||||
|
font-weight: bold; |
||||
|
text-align: center; |
||||
|
font-size: 14px; |
||||
|
font-weight: 600; |
||||
|
line-height: 15.96px; |
||||
|
text-transform: uppercase; |
||||
|
"> |
||||
|
A Module for generating pos weight manual. |
||||
|
</p> |
||||
|
<h1 class="text-center text-uppercase my-0" |
||||
|
style=" |
||||
|
color: #121212; |
||||
|
font-size: 46px; |
||||
|
font-weight: 700; |
||||
|
line-height: normal; |
||||
|
"> Pos Manual Weight</span> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<div class="col-lg-12 d-flex justify-content-center align-items-center" |
||||
|
style="margin: 3rem 0;"> |
||||
|
<img src="./assets/icons/brand-pair.svg" |
||||
|
width="100%" |
||||
|
height="auto" |
||||
|
style="width: 50%" |
||||
|
class="img-responsive"/> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<a href="mailto:odoo@cybrosys.com" |
||||
|
target="_blank" |
||||
|
style="background-color: transparent;border-radius: 35px; |
||||
|
font-family: Montserrat; |
||||
|
display: inline-block; |
||||
|
padding: 7px 33px; |
||||
|
border: 1px solid #7f54b3; |
||||
|
color: #7f54b3; |
||||
|
text-decoration: none; |
||||
|
" |
||||
|
class="mx-1 mb-2 deep-1 deep_hover"> |
||||
|
<img class="img" |
||||
|
style="width: 24px" |
||||
|
src="./assets/icons/mail.svg"/> |
||||
|
<span class="pl-2" |
||||
|
style=" font-size: 16px; vertical-align: middle" |
||||
|
>Email Us</span |
||||
|
> |
||||
|
</a> |
||||
|
<a href="skype:cybroopenerp?chat" |
||||
|
target="_blank" |
||||
|
style=" |
||||
|
background-color: #7f289b; |
||||
|
font-family: Montserrat; |
||||
|
display: inline-block; |
||||
|
padding: 7px 33px; |
||||
|
border: 1px solid #7f289b; |
||||
|
border-radius: 35px; |
||||
|
text-decoration: none; |
||||
|
" |
||||
|
class="mx-1 mb-2 deep-1 deep_hover"> |
||||
|
<img |
||||
|
class="img" |
||||
|
style="width: 24px" |
||||
|
src="./assets/icons/skype-fill.svg" |
||||
|
/> |
||||
|
<span |
||||
|
class="pl-2" |
||||
|
style="color: #fff; font-size: 16px; vertical-align: middle" |
||||
|
>Skype Us</span |
||||
|
> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="d-flex justify-content-center mt-2"> |
||||
|
<img src="assets/screenshots/hero.gif" |
||||
|
class="w-100" |
||||
|
style="z-index: 3; height: auto;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-absolute bottom-0" |
||||
|
style="z-index: 1; width: 100%;"> |
||||
|
<img src="./assets/icons/banner-bg.svg" |
||||
|
class="img-fluid w-100"> |
||||
|
</div> |
||||
|
<div class="position-absolute bottom-0 end-0" |
||||
|
style=" z-index: 2;"> |
||||
|
<img src="./assets/icons/patter.svg"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- key-highlight --> |
||||
|
<div class="" style="border-radius: 16px; |
||||
|
padding: 60px 40px; |
||||
|
border: 1px solid #EBEEF2; |
||||
|
background: #F5F5F7; |
||||
|
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25); "> |
||||
|
<div class="row"> |
||||
|
<div class="col-lg-12 d-flex flex-column justify-content-center align-items-center"> |
||||
|
<h2 style=" color: #121212; |
||||
|
text-align: center; |
||||
|
font-size: 40px; |
||||
|
font-weight: 700; |
||||
|
text-transform: uppercase; padding-bottom: 50px;">Key |
||||
|
Highlights</h2> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<h5 class="m-0" |
||||
|
style="color:#000 !important; font-weight:bold"> |
||||
|
Community & Enterprise Support.</h5> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="col-lg-4"> |
||||
|
<div class="mb-4 d-flex flex-column justify-content-center gap-3" |
||||
|
style="border-radius: 12px; |
||||
|
border: 1px solid #B6BCCD; |
||||
|
background: #FFF;padding:32px "> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#7847D9 !important; border-radius:8px !important; height:42px; width:42px"> |
||||
|
<img src="./assets/icons/feature-icon.svg" |
||||
|
class="img-responsive" height="26px" |
||||
|
width="26px"> |
||||
|
</div> |
||||
|
<h5 class="m-0" |
||||
|
style="color:#000 !important; font-weight:bold"> |
||||
|
Add Product Weight Manually.</h5> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!--code --> |
||||
|
<div class="my-5"> |
||||
|
<div style=" padding: 5rem 4rem 5rem 4rem; background-color: #0A1425; border-radius: 12px; position: relative;"> |
||||
|
<div class="wrapper-info" |
||||
|
style="display: flex; flex-direction: column; gap: 20px;"> |
||||
|
<span class="wrapper-subtitle" |
||||
|
style="font-size: 40px; font-weight: 700; color: #fff;line-height: 60px; text-transform: capitalize; width: 450px; font-family: Montserrat;">Automatic Database Backup</span> |
||||
|
<h3 class="wrapper-details" |
||||
|
style="font-size: 20px; font-weight: 400; color: #fff; line-height: 32px; "> |
||||
|
Are you ready to make your business more |
||||
|
organized? |
||||
|
<br> Improve now! |
||||
|
</h3> |
||||
|
<div class="d-flex gap-3"> |
||||
|
<a href="mailto:odoo@cybrosys.com" |
||||
|
class="shop-btn" style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
||||
|
border: 1px solid #ffffff33; |
||||
|
background-color: #ffffff14; |
||||
|
backdrop-filter: blur(10px); color: #fff; padding: 12px 16px 12px 16px; text-decoration: none;"> |
||||
|
<span style="border-radius: 12px; |
||||
|
background-color: #ffffff1a; |
||||
|
backdrop-filter: blur(6px);padding: 12px; "> |
||||
|
<img src="./assets/icons/banner-mail.svg"> |
||||
|
</span> |
||||
|
<span style="font-weight: 500;font-family: Montserrat;">odoo@cybrosys.com</span> |
||||
|
</a> |
||||
|
<a href="tel:+91 9074270811" class="shop-btn" |
||||
|
style="cursor: pointer; border-radius: 16px; display: flex; justify-content: center; align-items: center; gap: 7px; |
||||
|
border: 1px solid #ffffff33; |
||||
|
background-color: #ffffff14; |
||||
|
backdrop-filter: blur(10px); color: #fff; padding: 12px 22px 12px 18px; text-decoration: none;"> |
||||
|
<span style="border-radius: 12px; |
||||
|
background-color: #ffffff1a; |
||||
|
backdrop-filter: blur(6px);padding: 12px;"> |
||||
|
<img src="./assets/icons/banner-call.svg"> |
||||
|
</span> |
||||
|
<span style="font-weight: 500;font-family: Montserrat;">+91 9074270811</span> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-absolute bottom-0 end-0"> |
||||
|
<img src="./assets/icons/banner-pattern.svg" |
||||
|
style="width: 540px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- end-code --> |
||||
|
<!-- --> |
||||
|
<!-- screenshot and other --> |
||||
|
|
||||
|
<div class="mb-4 bg-white" |
||||
|
style=" border: 1px solid #EBEEF2; border-radius: 6px; box-shadow: 0px 8px 20px -4px rgba(0, 0, 0, 0.10); border: 1px solid #EBEEF2;"> |
||||
|
<div> |
||||
|
<ul class="nav nav-tabs justify-content-center bg-white py-2" |
||||
|
id="myTab" role="tablist" |
||||
|
style="border-radius: 6px 6px 0 0;"> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="overview" |
||||
|
aria-bs-selected="true" |
||||
|
class="nav-link active" data-bs-toggle="tab" |
||||
|
href="#overview" id="overview-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px"> |
||||
|
Screenshots</a> |
||||
|
</li> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="feature" |
||||
|
aria-bs-selected="false" |
||||
|
class="nav-link py-2" data-bs-toggle="tab" |
||||
|
href="#feature" id="feature-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px">Features</a> |
||||
|
</li> |
||||
|
<li class="nav-item"> |
||||
|
<a aria-controls="releases" |
||||
|
aria-bs-selected="false" class="nav-link" |
||||
|
data-bs-toggle="tab" href="#releases" |
||||
|
id="releases-tab" role="tab" |
||||
|
style="color:#121212; font-weight:500; font-size:16px">Releases</a> |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="tab-content p-md-5 p-2 py-3" id="myTabContent"> |
||||
|
<div aria-labelledby="overview-tab" |
||||
|
class="tab-pane fade show active" id="overview" |
||||
|
role="tabpanel"> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px"> |
||||
|
<img alt="acc_bg" |
||||
|
class="w-100 h-100 position-absolute img-fluid left_0" |
||||
|
loading="lazy" |
||||
|
src="//apps.odoocdn.com/apps/assets/17.0/ks_dashboard_ninja/ai-img/o3.png?007008f" |
||||
|
style=""> |
||||
|
</div> |
||||
|
<!-- screenshots section--> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
||||
|
font-weight: 700;"> |
||||
|
<span style="color:#121212; font-size:calc(1.1rem + 1vw)"> Configuration Settings |
||||
|
</span> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<div class="col-md-12 mb-4"> |
||||
|
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)"> |
||||
|
There will be a field in configuration settings to enable the feature. |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="assets/screenshots/pos_weight_1.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
||||
|
font-weight: 700;"> |
||||
|
<span style="color:#121212; font-size:calc(1.1rem + 1vw)">Weight Scale Screen |
||||
|
</span> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<div class="col-md-12 mb-4"> |
||||
|
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:var(--text-color-light)"> |
||||
|
When you click on the product, a screen displaying the weight scale will appear. |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="assets/screenshots/pos_weight_3.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="position-relative mb-4" |
||||
|
style="border-radius:10px; background-color:#f4f4f4"> |
||||
|
<div class="p-md-5 p-3 position-relative"> |
||||
|
<div class="row"> |
||||
|
<div class="col-md-12"> |
||||
|
<h1 style="font-weight:bold; font-size:calc(1.1rem + 1vw); line-height:120%; text-align:center; text-transform:capitalize; font-size: 40px; |
||||
|
font-weight: 700;"> |
||||
|
<span style="color:#121212; font-size:calc(1.1rem + 1vw)">Order line |
||||
|
</span> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<div class="col-md-12 mb-4"> |
||||
|
<p style="font-weight:400; font-size:16px; line-height:150%; text-align:center; color:#64728f">Now the quantity and price will be added to the order line. |
||||
|
</p> |
||||
|
</div> |
||||
|
<div class="col-md-12 text-center"> |
||||
|
<div class="d-inline-block p-3 shadow-sm" |
||||
|
style="background-color:#fff; border-radius:10px"> |
||||
|
<img alt="" class="img-fluid" |
||||
|
loading="lazy" |
||||
|
src="assets/screenshots/pos_weight_4.png" |
||||
|
style="min-height: 1px;"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div aria-labelledby="feature-tab" |
||||
|
class="tab-pane fade show py-1" id="feature" |
||||
|
role="tabpanel"> |
||||
|
<div class="row py-4"> |
||||
|
<!-- Features Section --> |
||||
|
<div class="col-md-6 col-sm-12 p-3"> |
||||
|
<div class="d-flex flex-column align-items-start h-100" |
||||
|
style="padding:30px; border-radius:12px; background-color:#faf8ff"> |
||||
|
<div class="d-flex align-items-center justify-content-center"> |
||||
|
<div class="d-flex align-items-center justify-content-center " |
||||
|
style="width:36px; height:36px; border-radius:50%; background-color:#7847D9 ; margin-right:10px"> |
||||
|
<i class="fa fa-star " |
||||
|
style="color:#fff; font-size:14px"></i> |
||||
|
</div> |
||||
|
<p style="color:#1A202C; font-weight:600; font-size:1.2rem; margin-bottom:2px">Can Add product weight without weighing machine. |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div aria-labelledby="releases-tab" |
||||
|
class="tab-pane fade show" id="releases" |
||||
|
role="tabpanel"> |
||||
|
<!-- Release Notes --> |
||||
|
<div class="row pt-5 m-0"> |
||||
|
<div class="col-md-3"> |
||||
|
<h4 style="font-size:16px; font-weight:600; color:#514F4F; margin:0; line-height:26px;"> |
||||
|
Latest Release 18.0.1.0.0 |
||||
|
</h4> |
||||
|
<span style="font-size:14px; color:#7A7979; display:block; margin-bottom:20px;"> |
||||
|
07th may, 2025 |
||||
|
</span> |
||||
|
</div> |
||||
|
<div class="col-md-8"> |
||||
|
<div style="padding:0 0 40px"> |
||||
|
<div style="margin:0 0 10px"> |
||||
|
<div style="display:inline-block; padding:0px 8px; color:#514F4F; background-color:#FFD8D8; border-radius:20px"> |
||||
|
Add |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="d-flex m-0" |
||||
|
style="color:#7A7979;"> |
||||
|
<ul class="pl-3 mb-0"> |
||||
|
<li> |
||||
|
Initial Commit |
||||
|
</li> |
||||
|
|
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div style="padding:0 0 0; border-bottom:1px solid #E3E3E3"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- --> |
||||
|
<!-- related post --> |
||||
|
<div class="" style="margin-top: 100px;"> |
||||
|
<div class="text-center mt-4"> |
||||
|
<h3 class="mb-0" style="color: #000; |
||||
|
text-align: center; |
||||
|
font-family: Montserrat; |
||||
|
font-size: 40px; |
||||
|
font-style: normal; |
||||
|
font-weight: 700; |
||||
|
line-height: normal; |
||||
|
text-transform: uppercase; |
||||
|
padding-bottom: 50px;" |
||||
|
>Related Modules</h3> |
||||
|
</div> |
||||
|
|
||||
|
<div class="owl-carousel owl-theme"> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/18.0/simple_mrp_order" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/1.gif" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center mb-2 pb-0 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Simple Manufacturing Orders</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/18.0/invoice_design" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/2.jpg" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Custom Design For Invoices</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/18.0/sale_report_advanced" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/3.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Advanced Sales Reports Odoo18</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/18.0/product_brand_sale" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/4.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Product Brand in Sale</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/18.0/sale_order_line_multi_warehouse" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/5.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Multiple Warehouses in Sale Order |
||||
|
Lines Odoo18</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item" |
||||
|
style="border:1px solid #CBCBCB !important; border-radius: 6px;"> |
||||
|
<div class="p-3"> |
||||
|
<a href="https://apps.odoo.com/apps/modules/18.0/sale_mini_dashboard" |
||||
|
style="color:#000; text-decoration:none"> |
||||
|
<div style=" border-radius:4px"> |
||||
|
<div> |
||||
|
<img src="./assets/modules/6.png" |
||||
|
alt="" width="100%" |
||||
|
height="auto"> |
||||
|
</div> |
||||
|
<p class="text-center pb-0 mb-2 text-black" |
||||
|
style="font-weight: 600; padding-top: 16px;"> |
||||
|
Sale Mini Dashboard</p> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- --> |
||||
|
<!-- service-section --> |
||||
|
<section id="services" class="mt-5" style="border-radius: 16px; |
||||
|
border: 1px solid #EBEEF2; |
||||
|
background: var(--Neutral-N0, #FFF); |
||||
|
padding: 60px 40px; |
||||
|
box-shadow: 0px 5px 20px -11px rgba(0, 0, 0, 0.25);"> |
||||
|
<div class="text-center mt-4"><h3 class="mb-0" style="color: #000; |
||||
|
text-align: center; |
||||
|
font-family: Montserrat; |
||||
|
font-size: 40px; |
||||
|
font-style: normal; |
||||
|
font-weight: 700; |
||||
|
line-height: normal; |
||||
|
text-transform: uppercase; |
||||
|
padding-bottom: 50px;"> |
||||
|
Our Services</h3></div> |
||||
|
<div class="row mt-3"> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#FFE2E5; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#FA5A7D; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/gear.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;"> Odoo Customization</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#FFF4DE; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#FF947A; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/wrench-icon.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;"> Odoo Implementation</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#DCFCE7; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#3CD856; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/life-ring-icon.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Support</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#F3E8FF; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#BF83FF; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/arrows-repeat.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Migration</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#F1F9FF; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#01649C; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/puzzle-piece-icon.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo integration</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#EDF8ED; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
|
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#69CC70; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/odoo-consultancy.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Consultancy</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#F1F6FF; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
|
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#2E4556; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/odoo-licencing.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Odoo Licensing</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
<div class="col-lg-3 col-sm-12 mb-3"> |
||||
|
<a href="#" style="text-decoration:none"> |
||||
|
<div class="btn-lg btn-block p-4 mb-2 d-flex flex-column justify-content-center align-items-center" |
||||
|
style="font-size:25px; font-weight:bold;background-color:#FAF6EA; margin:auto; gap: 16px; border-radius: 8px;"> |
||||
|
|
||||
|
<div class="d-flex justify-content-center align-items-center" |
||||
|
style="background-color:#FCD12C; border-radius:50%; height:56px; width:56px"> |
||||
|
<img src="./assets/icons/hire-odoo.svg" |
||||
|
class="img-responsive" |
||||
|
height="28px" width="28px"> |
||||
|
</div> |
||||
|
<span style="font-size: 18px; |
||||
|
color: var(--text-color); |
||||
|
font-weight: 600;">Hire Odoo Developer</span> |
||||
|
</div> |
||||
|
</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- licence --> |
||||
|
<div class="tab-pane fade" id="profile" role="tabpanel" |
||||
|
aria-labelledby="profile-tab"> |
||||
|
<div class="px-5"> |
||||
|
.... |
||||
|
</div> |
||||
|
</div> |
||||
|
<!-- --> |
||||
|
</div> |
||||
|
</section> |
||||
|
<!-- --> |
||||
|
</div> |
||||
|
</div> |
||||
|
</body> |
||||
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"></script> |
||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" |
||||
|
integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" |
||||
|
crossorigin="anonymous" referrerpolicy="no-referrer"></script> |
||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js"></script> |
||||
|
<script> |
||||
|
$('.owl-carousel').owlCarousel({ |
||||
|
rtl: true, |
||||
|
loop: true, |
||||
|
margin: 10, |
||||
|
nav: true, |
||||
|
responsive: { |
||||
|
0: { |
||||
|
items: 1 |
||||
|
}, |
||||
|
600: { |
||||
|
items: 3 |
||||
|
}, |
||||
|
1000: { |
||||
|
items: 3 |
||||
|
} |
||||
|
} |
||||
|
}) |
||||
|
</script> |
||||
|
</html> |
@ -0,0 +1,3 @@ |
|||||
|
.centered-content{ |
||||
|
width:500px !important; |
||||
|
height:300px !important;} |
@ -0,0 +1,342 @@ |
|||||
|
/** @odoo-module **/ |
||||
|
import { Component } from "@odoo/owl"; |
||||
|
import { ScaleScreen } from "@pos_weight_manual/js/scale_screen"; |
||||
|
import { Dialog } from "@web/core/dialog/dialog"; |
||||
|
import { useService } from "@web/core/utils/hooks"; |
||||
|
import { PosStore } from "@point_of_sale/app/store/pos_store"; |
||||
|
import { patch } from "@web/core/utils/patch"; |
||||
|
import { makeAwaitable } from "@point_of_sale/app/store/make_awaitable_dialog"; |
||||
|
|
||||
|
patch(PosStore.prototype, { |
||||
|
async addLineToCurrentOrder(vals, opts = {}, merge = true) { |
||||
|
merge = false; |
||||
|
let order = this.get_order(); |
||||
|
order.assert_editable(); |
||||
|
|
||||
|
if (!order) { |
||||
|
order = this.add_new_order(); |
||||
|
} |
||||
|
|
||||
|
const options = { |
||||
|
...opts, |
||||
|
}; |
||||
|
|
||||
|
if ("price_unit" in vals) { |
||||
|
merge = false; |
||||
|
} |
||||
|
|
||||
|
const product = vals.product_id; |
||||
|
const productPrice = product.lst_price || product.price || 0; |
||||
|
|
||||
|
const values = { |
||||
|
price_type: "price_unit" in vals ? "manual" : "original", |
||||
|
price_extra: 0, |
||||
|
price_unit: productPrice, |
||||
|
order_id: this.get_order(), |
||||
|
qty: 1, |
||||
|
tax_ids: product.taxes_id.map((tax) => ["link", tax]), |
||||
|
...vals, |
||||
|
}; |
||||
|
|
||||
|
if (!('price_unit' in vals) && productPrice > 0) { |
||||
|
values.price_unit = productPrice; |
||||
|
} |
||||
|
|
||||
|
if (this.env.services.pos.config.is_allow_manual_weight) { |
||||
|
if (values.product_id.isScaleAvailable) { |
||||
|
this.isScaleScreenVisible = true; |
||||
|
this.scaleData = { |
||||
|
productName: values.product_id?.display_name, |
||||
|
uomName: values.product_id.uom_id?.name, |
||||
|
uomRounding: values.product_id.uom_id?.rounding, |
||||
|
productPrice: productPrice, |
||||
|
}; |
||||
|
const weight = await makeAwaitable( |
||||
|
this.env.services.dialog, |
||||
|
ScaleScreen, |
||||
|
this.scaleData |
||||
|
); |
||||
|
if (!weight) { |
||||
|
return; |
||||
|
} |
||||
|
values.qty = weight; |
||||
|
this.isScaleScreenVisible = false; |
||||
|
this.scaleWeight = 0; |
||||
|
this.scaleTare = 0; |
||||
|
this.totalPriceOnScale = 0; |
||||
|
} else { |
||||
|
await values.product_id._onScaleNotAvailable(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
return super.addLineToCurrentOrder(values, options, merge); |
||||
|
}, |
||||
|
|
||||
|
async addLineToOrder(vals, order, opts = {}, configure = true) { |
||||
|
let merge = true; |
||||
|
order.assert_editable(); |
||||
|
|
||||
|
const options = { |
||||
|
...opts, |
||||
|
}; |
||||
|
|
||||
|
if ("price_unit" in vals) { |
||||
|
merge = false; |
||||
|
} |
||||
|
|
||||
|
if (typeof vals.product_id == "number") { |
||||
|
vals.product_id = this.data.models["product.product"].get(vals.product_id); |
||||
|
} |
||||
|
const product = vals.product_id; |
||||
|
|
||||
|
const values = { |
||||
|
price_type: "price_unit" in vals ? "manual" : "original", |
||||
|
price_extra: 0, |
||||
|
price_unit: 0, |
||||
|
order_id: this.get_order(), |
||||
|
qty: 1, |
||||
|
tax_ids: product.taxes_id.map((tax) => ["link", tax]), |
||||
|
...vals, |
||||
|
}; |
||||
|
|
||||
|
// Handle refund constraints
|
||||
|
if ( |
||||
|
order.doNotAllowRefundAndSales() && |
||||
|
order._isRefundOrder() && |
||||
|
(!values.qty || values.qty > 0) |
||||
|
) { |
||||
|
this.dialog.add(AlertDialog, { |
||||
|
title: _t("Refund and Sales not allowed"), |
||||
|
body: _t("It is not allowed to mix refunds and sales"), |
||||
|
}); |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
if (values.product_id.isConfigurable() && configure) { |
||||
|
const payload = await this.openConfigurator(values.product_id); |
||||
|
|
||||
|
if (payload) { |
||||
|
const productFound = this.models["product.product"] |
||||
|
.filter((p) => p.raw?.product_template_variant_value_ids?.length > 0) |
||||
|
.find((p) => |
||||
|
p.raw.product_template_variant_value_ids.every((v) => |
||||
|
payload.attribute_value_ids.includes(v) |
||||
|
) |
||||
|
); |
||||
|
|
||||
|
Object.assign(values, { |
||||
|
attribute_value_ids: payload.attribute_value_ids |
||||
|
.filter((a) => { |
||||
|
if (productFound) { |
||||
|
const attr = |
||||
|
this.data.models["product.template.attribute.value"].get(a); |
||||
|
return ( |
||||
|
attr.is_custom || attr.attribute_id.create_variant !== "always" |
||||
|
); |
||||
|
} |
||||
|
return true; |
||||
|
}) |
||||
|
.map((id) => [ |
||||
|
"link", |
||||
|
this.data.models["product.template.attribute.value"].get(id), |
||||
|
]), |
||||
|
custom_attribute_value_ids: Object.entries(payload.attribute_custom_values).map( |
||||
|
([id, cus]) => { |
||||
|
return [ |
||||
|
"create", |
||||
|
{ |
||||
|
custom_product_template_attribute_value_id: |
||||
|
this.data.models["product.template.attribute.value"].get( |
||||
|
id |
||||
|
), |
||||
|
custom_value: cus, |
||||
|
}, |
||||
|
]; |
||||
|
} |
||||
|
), |
||||
|
price_extra: values.price_extra + payload.price_extra, |
||||
|
qty: payload.qty || values.qty, |
||||
|
product_id: productFound || values.product_id, |
||||
|
}); |
||||
|
} else { |
||||
|
return; |
||||
|
} |
||||
|
} else if (values.product_id.product_template_variant_value_ids.length > 0) { |
||||
|
const priceExtra = values.product_id.product_template_variant_value_ids |
||||
|
.filter((attr) => attr.attribute_id.create_variant !== "always") |
||||
|
.reduce((acc, attr) => acc + attr.price_extra, 0); |
||||
|
values.price_extra += priceExtra; |
||||
|
} |
||||
|
|
||||
|
if (values.product_id.isCombo() && configure) { |
||||
|
const payload = await makeAwaitable(this.dialog, ComboConfiguratorPopup, { |
||||
|
product: values.product_id, |
||||
|
}); |
||||
|
|
||||
|
if (!payload) { |
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
const comboPrices = computeComboItems( |
||||
|
values.product_id, |
||||
|
payload, |
||||
|
order.pricelist_id, |
||||
|
this.data.models["decimal.precision"].getAll(), |
||||
|
this.data.models["product.template.attribute.value"].getAllBy("id") |
||||
|
); |
||||
|
|
||||
|
values.combo_line_ids = comboPrices.map((comboItem) => [ |
||||
|
"create", |
||||
|
{ |
||||
|
product_id: comboItem.combo_item_id.product_id, |
||||
|
tax_ids: comboItem.combo_item_id.product_id.taxes_id.map((tax) => [ |
||||
|
"link", |
||||
|
tax, |
||||
|
]), |
||||
|
combo_item_id: comboItem.combo_item_id, |
||||
|
price_unit: comboItem.price_unit, |
||||
|
order_id: order, |
||||
|
qty: 1, |
||||
|
attribute_value_ids: comboItem.attribute_value_ids?.map((attr) => [ |
||||
|
"link", |
||||
|
attr, |
||||
|
]), |
||||
|
custom_attribute_value_ids: Object.entries( |
||||
|
comboItem.attribute_custom_values |
||||
|
).map(([id, cus]) => { |
||||
|
return [ |
||||
|
"create", |
||||
|
{ |
||||
|
custom_product_template_attribute_value_id: |
||||
|
this.data.models["product.template.attribute.value"].get(id), |
||||
|
custom_value: cus, |
||||
|
}, |
||||
|
]; |
||||
|
}), |
||||
|
}, |
||||
|
]); |
||||
|
} |
||||
|
|
||||
|
const code = opts.code; |
||||
|
if (values.product_id.isTracked() && (configure || code)) { |
||||
|
let pack_lot_ids = {}; |
||||
|
const packLotLinesToEdit = |
||||
|
(!values.product_id.isAllowOnlyOneLot() && |
||||
|
this.get_order() |
||||
|
.get_orderlines() |
||||
|
.filter((line) => !line.get_discount()) |
||||
|
.find((line) => line.product_id.id === values.product_id.id) |
||||
|
?.getPackLotLinesToEdit()) || |
||||
|
[]; |
||||
|
|
||||
|
if (code && code.type === "lot") { |
||||
|
const modifiedPackLotLines = Object.fromEntries( |
||||
|
packLotLinesToEdit.filter((item) => item.id).map((item) => [item.id, item.text]) |
||||
|
); |
||||
|
const newPackLotLines = [{ lot_name: code.code }]; |
||||
|
pack_lot_ids = { modifiedPackLotLines, newPackLotLines }; |
||||
|
} else { |
||||
|
pack_lot_ids = await this.editLots(values.product_id, packLotLinesToEdit); |
||||
|
} |
||||
|
|
||||
|
if (!pack_lot_ids) { |
||||
|
return; |
||||
|
} else { |
||||
|
const packLotLine = pack_lot_ids.newPackLotLines; |
||||
|
values.pack_lot_ids = packLotLine.map((lot) => ["create", lot]); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (values.product_id.to_weight && this.config.iface_electronic_scale && configure) { |
||||
|
|
||||
|
if (values.product_id.isScaleAvailable) { |
||||
|
this.isScaleScreenVisible = true; |
||||
|
this.scaleData = { |
||||
|
productName: values.product_id?.display_name, |
||||
|
uomName: values.product_id.uom_id?.name, |
||||
|
uomRounding: values.product_id.uom_id?.rounding, |
||||
|
productPrice: this.getProductPrice(values.product_id), |
||||
|
}; |
||||
|
const weight = await makeAwaitable( |
||||
|
this.env.services.dialog, |
||||
|
ScaleScreen, |
||||
|
this.scaleData |
||||
|
); |
||||
|
if (!weight) { |
||||
|
return; |
||||
|
} |
||||
|
values.qty = weight; |
||||
|
this.isScaleScreenVisible = false; |
||||
|
this.scaleWeight = 0; |
||||
|
this.scaleTare = 0; |
||||
|
this.totalPriceOnScale = 0; |
||||
|
} else { |
||||
|
await values.product_id._onScaleNotAvailable(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (!values.product_id.isCombo() && vals.price_unit === undefined) { |
||||
|
values.price_unit = values.product_id.get_price(order.pricelist_id, values.qty); |
||||
|
} |
||||
|
const isScannedProduct = opts.code && opts.code.type === "product"; |
||||
|
if (values.price_extra && !isScannedProduct) { |
||||
|
const price = values.product_id.get_price( |
||||
|
order.pricelist_id, |
||||
|
values.qty, |
||||
|
values.price_extra |
||||
|
); |
||||
|
|
||||
|
values.price_unit = price; |
||||
|
} |
||||
|
|
||||
|
const line = this.data.models["pos.order.line"].create({ ...values, order_id: order }); |
||||
|
line.setOptions(options); |
||||
|
this.selectOrderLine(order, line); |
||||
|
if (configure) { |
||||
|
this.numberBuffer.reset(); |
||||
|
} |
||||
|
const selectedOrderline = order.get_selected_orderline(); |
||||
|
if (options.draftPackLotLines && configure) { |
||||
|
selectedOrderline.setPackLotLines({ |
||||
|
...options.draftPackLotLines, |
||||
|
setQuantity: options.quantity === undefined, |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
let to_merge_orderline; |
||||
|
for (const curLine of order.lines) { |
||||
|
if (curLine.id !== line.id) { |
||||
|
if (curLine.can_be_merged_with(line)) { |
||||
|
to_merge_orderline = curLine; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
if (to_merge_orderline) { |
||||
|
to_merge_orderline.merge(line); |
||||
|
line.delete(); |
||||
|
this.selectOrderLine(order, to_merge_orderline); |
||||
|
} else if (!selectedOrderline) { |
||||
|
this.selectOrderLine(order, order.get_last_orderline()); |
||||
|
} |
||||
|
|
||||
|
if (configure) { |
||||
|
this.numberBuffer.reset(); |
||||
|
} |
||||
|
|
||||
|
order.recomputeOrderData(); |
||||
|
|
||||
|
if (configure) { |
||||
|
this.numberBuffer.reset(); |
||||
|
} |
||||
|
|
||||
|
this.hasJustAddedProduct = true; |
||||
|
clearTimeout(this.productReminderTimeout); |
||||
|
this.productReminderTimeout = setTimeout(() => { |
||||
|
this.hasJustAddedProduct = false; |
||||
|
}, 3000); |
||||
|
|
||||
|
return line; |
||||
|
} |
||||
|
}); |
@ -0,0 +1,108 @@ |
|||||
|
import { roundPrecision as round_pr } from "@web/core/utils/numbers"; |
||||
|
import { usePos } from "@point_of_sale/app/store/pos_hook"; |
||||
|
import { Component, onMounted, onWillUnmount, useState } from "@odoo/owl"; |
||||
|
import { Dialog } from "@web/core/dialog/dialog"; |
||||
|
import { useService } from "@web/core/utils/hooks"; |
||||
|
|
||||
|
export class ScaleScreen extends Component { |
||||
|
static template = "pos_weight_manual.ScaleScreenManual"; |
||||
|
static components = { Dialog }; |
||||
|
|
||||
|
static props = { |
||||
|
getPayload: Function, |
||||
|
productName: String, |
||||
|
uomName: String, |
||||
|
uomRounding: Number, |
||||
|
productPrice: Number, |
||||
|
close: Function, |
||||
|
}; |
||||
|
|
||||
|
setup() { |
||||
|
this.pos = usePos(); |
||||
|
this.hardwareProxy = useService("hardware_proxy"); |
||||
|
|
||||
|
this.state = useState({ |
||||
|
weight: 0, |
||||
|
tare: 0, |
||||
|
tareLoading: false, |
||||
|
manualOverride: false, |
||||
|
}); |
||||
|
|
||||
|
onMounted(this.onMounted); |
||||
|
onWillUnmount(this.onWillUnmount); |
||||
|
} |
||||
|
|
||||
|
onMounted() { |
||||
|
this._readScale(); |
||||
|
} |
||||
|
|
||||
|
onWillUnmount() { |
||||
|
this.shouldRead = false; |
||||
|
} |
||||
|
|
||||
|
confirm() { |
||||
|
this.props.getPayload(this.netWeight); |
||||
|
this.props.close(); |
||||
|
} |
||||
|
|
||||
|
_readScale() { |
||||
|
this.shouldRead = true; |
||||
|
this._setWeight(); |
||||
|
} |
||||
|
|
||||
|
async _setWeight() { |
||||
|
if (!this.shouldRead || this.state.manualOverride) return; |
||||
|
|
||||
|
try { |
||||
|
const scaleWeight = await this.hardwareProxy.readScale(); |
||||
|
this.state.weight = scaleWeight; |
||||
|
// Removed this.pos.setScaleWeight(scaleWeight) as it doesn't exist
|
||||
|
} catch (error) { |
||||
|
console.warn("Scale read error:", error); |
||||
|
} |
||||
|
|
||||
|
setTimeout(() => this._setWeight(), 500); |
||||
|
} |
||||
|
|
||||
|
get netWeight() { |
||||
|
const weight = round_pr(this.state.weight || 0, this.props.uomRounding); |
||||
|
const rounded = weight.toFixed( |
||||
|
Math.ceil(Math.log(1.0 / this.props.uomRounding) / Math.log(10)) |
||||
|
); |
||||
|
return parseFloat(rounded) - parseFloat(this.state.tare || 0); |
||||
|
} |
||||
|
|
||||
|
get productWeightString() { |
||||
|
const weight = round_pr(this.state.weight || 0, this.props.uomRounding); |
||||
|
const weightStr = weight.toFixed( |
||||
|
Math.ceil(Math.log(1.0 / this.props.uomRounding) / Math.log(10)) |
||||
|
); |
||||
|
return `${weightStr} ${this.props.uomName || 'Kg'}`; |
||||
|
} |
||||
|
|
||||
|
get computedPriceString() { |
||||
|
const priceString = this.env.utils.formatCurrency(this.netWeight * this.props.productPrice); |
||||
|
// Store the price in a way that doesn't require pos.totalPriceOnScale
|
||||
|
// You can access this via this.computedPriceString when needed
|
||||
|
return priceString; |
||||
|
} |
||||
|
|
||||
|
async handleTareButtonClick() { |
||||
|
this.state.tareLoading = true; |
||||
|
try { |
||||
|
const tareWeight = await this.hardwareProxy.readScale(); |
||||
|
this.state.tare = tareWeight; |
||||
|
} catch (error) { |
||||
|
console.warn("Tare read error:", error); |
||||
|
} |
||||
|
setTimeout(() => { |
||||
|
this.state.tareLoading = false; |
||||
|
}, 3000); |
||||
|
} |
||||
|
|
||||
|
handleInputChange(ev) { |
||||
|
const value = parseFloat(ev.target.value) || 0; |
||||
|
this.state.weight = value; |
||||
|
this.state.manualOverride = true; |
||||
|
} |
||||
|
} |
@ -0,0 +1,43 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8" ?> |
||||
|
<!-- Inherited POS scale screen --> |
||||
|
<templates id="template" xml:space="preserve"> |
||||
|
<t t-name="pos_weight_manual.ScaleScreenManual"> |
||||
|
<Dialog size="'md'" title="props.productName || 'Unnamed Product'"> |
||||
|
<t t-set-slot="header"> |
||||
|
<h4 class="modal-title text-break text-center w-100"> |
||||
|
<t t-esc="props.productName || 'Unnamed Product'" /> |
||||
|
</h4> |
||||
|
<button type="button" class="btn-close" aria-label="Close" t-on-click="props.close"></button> |
||||
|
</t> |
||||
|
|
||||
|
<div class="d-flex flex-column align-items-center px-4"> |
||||
|
<!-- Weight Input --> |
||||
|
<div class="d-flex align-items-center mb-3 w-100"> |
||||
|
<label class="fs-4 me-2">Weight:</label> |
||||
|
<input type="number" |
||||
|
class="form-control text-end" |
||||
|
style="max-width: 120px;" |
||||
|
t-att-value="state.weight || ''" |
||||
|
t-on-input="handleInputChange" /> |
||||
|
<span class="ms-2 fs-4" t-esc="props.uomName"/> |
||||
|
</div> |
||||
|
|
||||
|
<!-- Computed Price --> |
||||
|
<div class="d-flex justify-content-between w-100 mb-3"> |
||||
|
<div class="fs-5"> |
||||
|
<t t-esc="props.productPrice"/> / <t t-esc="props.uomName"/> |
||||
|
</div> |
||||
|
<div class="fs-5 fw-bold text-primary"> |
||||
|
<t t-esc="computedPriceString"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<t t-set-slot="footer"> |
||||
|
<div class="btn btn-lg btn-primary w-100" t-on-click="confirm"> |
||||
|
Order <i class="fa fa-angle-double-right ms-2"></i> |
||||
|
</div> |
||||
|
</t> |
||||
|
</Dialog> |
||||
|
</t> |
||||
|
</templates> |
@ -0,0 +1,28 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Inherited form view of res config settings--> |
||||
|
<record id="res_config_settings_view_form" model="ir.ui.view"> |
||||
|
<field name="name"> |
||||
|
res.config.settings.view.form.inherit.pos.weight.manual |
||||
|
</field> |
||||
|
<field name="model">res.config.settings</field> |
||||
|
<field name="inherit_id" |
||||
|
ref="point_of_sale.res_config_settings_view_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//block[@id='pos_payment_section']" position="inside"> |
||||
|
<div class="col-12 col-lg-6 o_setting_box" |
||||
|
id="is_allow_manual_weight_id"> |
||||
|
<div class="o_setting_left_pane"> |
||||
|
<field name="pos_is_allow_manual_weight"/> |
||||
|
</div> |
||||
|
<div class="o_setting_right_pane"> |
||||
|
<label for="pos_is_allow_manual_weight"/> |
||||
|
<div class="text-muted"> |
||||
|
Allow to add Weight Manually. |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |