44be2f5cf2
no payment
19 lines
644 B
Python
19 lines
644 B
Python
from odoo import fields, models
|
|
|
|
class WarrantyManufacturer(models.Model):
|
|
_name = "warranty.manufacturer"
|
|
_description = "Warranty Manufacturer"
|
|
|
|
name = fields.Char(required=True)
|
|
vendor_id = fields.Many2one(
|
|
"res.partner",
|
|
string="True Vendor",
|
|
domain="[('supplier_rank', '>', 0)]",
|
|
)
|
|
# Flags for what this manufacturer requires
|
|
requires_model = fields.Boolean(default=True)
|
|
requires_serial = fields.Boolean(default=True)
|
|
requires_failure = fields.Boolean(default=True)
|
|
requires_original_so = fields.Boolean(default=True)
|
|
notes = fields.Text("Vendor Warranty Instructions")
|