| 1 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 | |
| 3 | from odoo import models |
| 4 | |
| 5 | |
| 6 | class SaleOrderLine(models.Model): |
| 7 | _inherit = 'sale.order.line' |
| 8 | |
| 9 | def _is_reorder_allowed(self): |
| 10 | # Don't allow courses in reorder |
| 11 | return self.service_tracking != 'course' and super()._is_reorder_allowed() |