product_op.py
717 Bytes
from odoo import models, fields
class Hotel(models.Model):
_inherit = "product.template"
# type = fields.Selection(selection_add=[
# ('hotel', 'Hotel'),
# ('resto', 'Restaurant'),
# ('hibur', 'Hiburan'),
# ('ppj', 'Penerangan Jalan'),
# ('golc', 'Mineral dan Batuan'),
# ('walet', 'Sarang Burung Walet'),
# ], string='Product Type', default='consu', required=True,
# help='A storable product is a product for which you manage stock. The Inventory app has to be installed.\n'
# 'A consumable product is a product for which stock is not managed.\n'
# 'A service is a non-material product you provide.')