mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-17 18:29:08 +02:00
add new fields
This commit is contained in:
5
tra_backend_Product/models/__init__.py
Normal file
5
tra_backend_Product/models/__init__.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
|
||||
from . import product
|
||||
BIN
tra_backend_Product/models/__pycache__/__init__.cpython-36.pyc
Normal file
BIN
tra_backend_Product/models/__pycache__/__init__.cpython-36.pyc
Normal file
Binary file not shown.
BIN
tra_backend_Product/models/__pycache__/product.cpython-36.pyc
Normal file
BIN
tra_backend_Product/models/__pycache__/product.cpython-36.pyc
Normal file
Binary file not shown.
17
tra_backend_Product/models/product.py
Normal file
17
tra_backend_Product/models/product.py
Normal 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')
|
||||
Reference in New Issue
Block a user