mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-26 03:32:02 +02:00
20 lines
522 B
Python
20 lines
522 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)"),
|
|
],
|
|
required=True,
|
|
default="day",
|
|
)
|