diff --git a/product_volume/README.rst b/product_volume/README.rst new file mode 100755 index 000000000..31e6383c3 --- /dev/null +++ b/product_volume/README.rst @@ -0,0 +1,33 @@ +Product Volume v12 +=========================== +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/12.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 + +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..5305644df --- /dev/null +++ b/product_volume/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import models \ No newline at end of file diff --git a/product_volume/__manifest__.py b/product_volume/__manifest__.py new file mode 100755 index 000000000..e2fed2ade --- /dev/null +++ b/product_volume/__manifest__.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2018-TODAY Cybrosys Technologies(). +# Author: Tintuk Tomin() +# you can modify it under the terms of the GNU AGPL (v3), Version 3. +# +# It is forbidden to publish, distribute, sublicense, or sell copies +# of the Software or modified copies of the Software. +# +# 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 AGPL (AGPL v3) for more details. +# +############################################################################## + +{ + 'name': 'Product Dimensions', + 'version': '12.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..8d69dc46d --- /dev/null +++ b/product_volume/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 10.04.2019 +#### Version 12.0.1.0.0 +##### ADD +- Initial commit diff --git a/product_volume/models/__init__.py b/product_volume/models/__init__.py new file mode 100644 index 000000000..2871c709d --- /dev/null +++ b/product_volume/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import volume diff --git a/product_volume/models/volume.py b/product_volume/models/volume.py new file mode 100644 index 000000000..a82dfc3c2 --- /dev/null +++ b/product_volume/models/volume.py @@ -0,0 +1,14 @@ +# -*- coding: utf-8 -*- + +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..281bd6df3 --- /dev/null +++ b/product_volume/views/volume_view.xml @@ -0,0 +1,29 @@ + + + + + product.template.volume + product.template + + + + + + + + + + \ No newline at end of file