from odoo import fields, models class SaleOrder(models.Model): _inherit = "sale.order" contract_id = fields.Many2one( "res.partner.contract", string="Contract", help="Contract, assigned to this order", )