commit 1e6cb0a1d0aa91f6a68ce22d2d0b279d5a3a91c0 Author: sonal Date: Sun Jul 19 12:09:56 2020 +0530 add new fields diff --git a/tra_backend_Product/__init__.py b/tra_backend_Product/__init__.py new file mode 100644 index 0000000..b00031b --- /dev/null +++ b/tra_backend_Product/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + + +from . import models + diff --git a/tra_backend_Product/__manifest__.py b/tra_backend_Product/__manifest__.py new file mode 100644 index 0000000..40832c7 --- /dev/null +++ b/tra_backend_Product/__manifest__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +{ + 'name': 'Tra_Backend', + 'version': '1.0', + 'category': 'Product', + 'sequence': 5, + 'summary': 'Product', + 'description': "", + 'website': 'https://www.odoo.com/page/crm', + 'depends': [ + 'product' + ], + 'data': [ + 'views/product_views.xml', + ], + 'demo': [ + + ], + 'css': [], + 'installable': True, + 'application': True, + 'auto_install': False +} diff --git a/tra_backend_Product/__pycache__/__init__.cpython-36.pyc b/tra_backend_Product/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..d217f10 Binary files /dev/null and b/tra_backend_Product/__pycache__/__init__.cpython-36.pyc differ diff --git a/tra_backend_Product/models/__init__.py b/tra_backend_Product/models/__init__.py new file mode 100644 index 0000000..e1bf2a2 --- /dev/null +++ b/tra_backend_Product/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + + +from . import product \ No newline at end of file diff --git a/tra_backend_Product/models/__pycache__/__init__.cpython-36.pyc b/tra_backend_Product/models/__pycache__/__init__.cpython-36.pyc new file mode 100644 index 0000000..2de26b8 Binary files /dev/null and b/tra_backend_Product/models/__pycache__/__init__.cpython-36.pyc differ diff --git a/tra_backend_Product/models/__pycache__/product.cpython-36.pyc b/tra_backend_Product/models/__pycache__/product.cpython-36.pyc new file mode 100644 index 0000000..50c0578 Binary files /dev/null and b/tra_backend_Product/models/__pycache__/product.cpython-36.pyc differ diff --git a/tra_backend_Product/models/product.py b/tra_backend_Product/models/product.py new file mode 100644 index 0000000..9c34cb9 --- /dev/null +++ b/tra_backend_Product/models/product.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# Part of Odoo. See LICENSE file for full copyright and licensing details. + +import logging +from psycopg2 import sql, extras +from datetime import datetime, timedelta, date + +from odoo import api, fields, models, tools, SUPERUSER_ID + + +class ProductProduct(models.Model): + _inherit = "product.template" + + width = fields.Float('Width', digits='Stock Weight') + length = fields.Float('Length', digits='Stock Weight') + height = fields.Float('Height', digits='Stock Weight') + model_grade = fields.Char('Model/Grade') diff --git a/tra_backend_Product/views/product_views.xml b/tra_backend_Product/views/product_views.xml new file mode 100644 index 0000000..9eb724d --- /dev/null +++ b/tra_backend_Product/views/product_views.xml @@ -0,0 +1,25 @@ + + + + + + + product.template.stock.property.form.inherit + product.template + + + + + + + + + + + + + + + + +