| 1 | # Part of Odoo. See LICENSE file for full copyright and licensing details. |
| 2 | |
| 3 | from odoo import models, fields |
| 4 | |
| 5 | |
| 6 | class SaleReport(models.Model): |
| 7 | _inherit = 'sale.report' |
| 8 | |
| 9 | project_id = fields.Many2one(comodel_name='project.project', readonly=True) |
| 10 | |
| 11 | def _select_additional_fields(self): |
| 12 | res = super()._select_additional_fields() |
| 13 | res['project_id'] = 's.project_id' |
| 14 | return res |