20 lines
558 B
Python
20 lines
558 B
Python
# -*- coding: utf-8 -*-
|
|
from odoo import models, fields
|
|
|
|
class SaleOrder(models.Model):
|
|
_inherit = 'sale.order'
|
|
|
|
is_lab_request = fields.Boolean(
|
|
string="Is a Laboratory Request",
|
|
default=False,
|
|
copy=False,
|
|
help="Technical field to identify if the sale order is a laboratory request."
|
|
)
|
|
|
|
doctor_id = fields.Many2one(
|
|
'res.partner',
|
|
string="Referring Doctor",
|
|
domain="[('is_doctor', '=', True)]",
|
|
help="The doctor who referred the patient for this laboratory request."
|
|
)
|