| 1 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 | |
| 3 | from odoo import api, models |
| 4 | |
| 5 | |
| 6 | class SaleOrderLine(models.Model): |
| 7 | _inherit = 'sale.order.line' |
| 8 | |
| 9 | @api.depends('event_booth_ids') |
| 10 | def _compute_name_short(self): |
| 11 | wbooth = self.filtered(lambda line: line.event_booth_pending_ids) |
| 12 | for record in wbooth: |
| 13 | record.name_short = record.event_booth_pending_ids.event_id.name |
| 14 | super(SaleOrderLine, self - wbooth)._compute_name_short() |