Files
rma/product_warranty/models/product_template.py
2022-05-13 15:48:26 +02:00

17 lines
648 B
Python

# Copyright (C) 2018 - TODAY, Open Source Integrators
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class ProductTemplate(models.Model):
_inherit = "product.template"
warranty = fields.Integer(string='Warranty Duration')
warranty_type = fields.Selection([('day', 'Day(s)'),
('week', 'Week(s)'),
('month', 'Month(s)'),
('year', 'Year(s)')],
string='Warranty Type',
required=True, default='day')