mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
22 lines
554 B
Python
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",
|
|
)
|