add new fields

This commit is contained in:
sonal
2020-07-19 12:09:56 +05:30
commit 1e6cb0a1d0
8 changed files with 78 additions and 0 deletions

View File

@@ -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')