mirror of
https://gitlab.com/sonalarora/tra_backend.git
synced 2025-12-18 02:39:10 +02:00
add new module
This commit is contained in:
@@ -2,4 +2,5 @@
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
|
||||
from . import product
|
||||
from . import product
|
||||
from . import partner
|
||||
|
||||
15
tra_backend_Product/models/partner.py
Normal file
15
tra_backend_Product/models/partner.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import time
|
||||
import logging
|
||||
|
||||
from odoo import api, fields, models, _
|
||||
from odoo.tools import DEFAULT_SERVER_DATETIME_FORMAT
|
||||
from odoo.exceptions import ValidationError
|
||||
from odoo.addons.base.models.res_partner import WARNING_MESSAGE, WARNING_HELP
|
||||
from psycopg2 import sql, DatabaseError
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = 'res.partner'
|
||||
|
||||
street3 = fields.Char('Steet3')
|
||||
street4 = fields.Char('Steet4')
|
||||
street5 = fields.Char('Steet5')
|
||||
@@ -15,3 +15,6 @@ class ProductProduct(models.Model):
|
||||
length = fields.Float('Length', digits='Stock Weight')
|
||||
height = fields.Float('Height', digits='Stock Weight')
|
||||
model_grade = fields.Char('Model/Grade')
|
||||
rental_group_id = fields.Char('Rental Group')
|
||||
group_id = fields.Many2one(
|
||||
'stock.groups', 'Group', help="Select group for the current product")
|
||||
|
||||
Reference in New Issue
Block a user