Files
rma/product_warranty/models/product_template.py
2021-08-11 09:40:38 +01:00

22 lines
554 B
Python

# Copyright 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",
)