diff --git a/product_volume/README.rst b/product_volume/README.rst new file mode 100755 index 000000000..d279a8f16 --- /dev/null +++ b/product_volume/README.rst @@ -0,0 +1,34 @@ +Product Volume v13 +================== +This module will helps you to give the length, breadth and height of the product + +Features +======== + +* Provision to enter the length, breadth and height of the product. +* Automaticaly calculates the volume + +Tech +==== +* [Python] - Models +* [XML] - Odoo views + +Installation +============ +- www.odoo.com/documentation/13.0/setup/install.html +- Install our custom addon + +Bug Tracker +=========== +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + + +Developer: Tintuk Tomin @ cybrosys, odoo@cybrosys.com + Kripal K V13 @ cybrosys, odoo@cybrosys.com + +Maintainer +---------- + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com. diff --git a/product_volume/__init__.py b/product_volume/__init__.py new file mode 100644 index 000000000..698385290 --- /dev/null +++ b/product_volume/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin @cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import models diff --git a/product_volume/__manifest__.py b/product_volume/__manifest__.py new file mode 100755 index 000000000..26bdfed11 --- /dev/null +++ b/product_volume/__manifest__.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin @cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +{ + 'name': 'Product Volume Calculation', + 'version': '13.0.1.0.0', + 'summary': """This module will helps you to give dimensions of the product.""", + 'description': "Module helps you to manage the length, breadth and height of the product and calculates its volume accordingily.", + 'category': "Inventory", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'stock'], + 'data': [ + 'views/volume_view.xml' + ], + 'demo': [], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'application': True, +} diff --git a/product_volume/doc/RELEASE_NOTES.md b/product_volume/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..c376dcdc6 --- /dev/null +++ b/product_volume/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 03.12.2019 +#### Version 13.0.1.0.0 +#### ADD +Initial Commit Product Volume Calculation diff --git a/product_volume/models/__init__.py b/product_volume/models/__init__.py new file mode 100644 index 000000000..ef2f5750c --- /dev/null +++ b/product_volume/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin @cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from . import volume diff --git a/product_volume/models/volume.py b/product_volume/models/volume.py new file mode 100644 index 000000000..58d9b5524 --- /dev/null +++ b/product_volume/models/volume.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2019-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin @cybrosys(odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# + +from odoo import api, models, fields + + +class ProductDimensionsVolume(models.Model): + _inherit = 'product.template' + + length = fields.Char(string="Length") + breadth = fields.Char(string="Breadth") + height = fields.Char(string="Height") + + @api.onchange('length', 'breadth', 'height') + def onchange_l_b_h(self): + self.volume = float(self.length if self.length else 0) * float(self.breadth if self.breadth else 0) * float( + self.height if self.height else 0) diff --git a/product_volume/static/description/banner.jpg b/product_volume/static/description/banner.jpg new file mode 100644 index 000000000..fc8d28386 Binary files /dev/null and b/product_volume/static/description/banner.jpg differ diff --git a/product_volume/static/description/icon.png b/product_volume/static/description/icon.png new file mode 100644 index 000000000..ba2d291fd Binary files /dev/null and b/product_volume/static/description/icon.png differ diff --git a/product_volume/static/description/index.html b/product_volume/static/description/index.html new file mode 100644 index 000000000..bab05330b --- /dev/null +++ b/product_volume/static/description/index.html @@ -0,0 +1,335 @@ +
+
+

+ Product Volume Calculation +

+

+ Calculates the product volume +

+
+ Cybrosys Technologies +
+ +
+ cybrosys technologies
+
+
+
+
+
+

+ Overview +

+

+ The module provisions to add the length, breadth and height of the chosen product. + It also enables the end user to perform automatic volume calculation of the product. +

+
+
+

+ Configuration +

+

+ No additional configuration is required. +

+
+
+ +
+
+

+ Features +

+

+ + Seamless adding of properties- Length, Breadth and Height of the product in the product master page +

+

+ + Automatic calculation of volume with the above details +

+
+
+ +
+
+

+ Screenshots +

+

+ + Provision for the product dimensions +

+
+ +
+
+
+ +
+
+ cybrosys technologies +
+
+ +
+
+

+ Our Services +

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

+ + Odoo Support +

+ +
+ +
+
+
+
+
+

+ Our Industries +

+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Trading + +

+

+ Easily procure and sell your products. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Manufacturing +

+

+ Plan, track and schedule your operations. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Restaurant +

+

+ Run your bar or restaurant methodical. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + POS +

+

+ Easy configuring and convivial selling. +

+
+ +
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + E-commerce & Website +

+

+ Mobile friendly, awe-inspiring product pages. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Hotel Management +

+

+ An all-inclusive hotel management application. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Education +

+

+ A Collaborative platform for educational management. +

+
+
+
+ +
+
+ + Odoo Industry + +
+
+
+

+ + Service Management +

+

+ Keep track of services and invoice accordingly. +

+
+
+
+
+
+
+ +
+test \ No newline at end of file diff --git a/product_volume/static/description/product-dimension-cybrosys.png b/product_volume/static/description/product-dimension-cybrosys.png new file mode 100644 index 000000000..b1a77c607 Binary files /dev/null and b/product_volume/static/description/product-dimension-cybrosys.png differ diff --git a/product_volume/views/volume_view.xml b/product_volume/views/volume_view.xml new file mode 100644 index 000000000..f38f17175 --- /dev/null +++ b/product_volume/views/volume_view.xml @@ -0,0 +1,30 @@ + + + + + product.template.volume + product.template + + + + + + + + + +