1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/appointment_account_payment/models/product_template.py
2024-12-10 09:04:09 +07:00

18 lines
522 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
detailed_type = fields.Selection(selection_add=[
('booking_fees', 'Booking Fees'),
], ondelete={'booking_fees': 'set service'})
def _detailed_type_mapping(self):
type_mapping = super()._detailed_type_mapping()
type_mapping['booking_fees'] = 'service'
return type_mapping