Debian Codegraph @

addons/sale/report/account_invoice_report.py

raw
1 # Part of Odoo. See LICENSE file for full copyright and licensing details.
2
3 from odoo import fields, models
4 from odoo.tools import SQL
5
6
7 class AccountInvoiceReport(models.Model):
8 _inherit = 'account.invoice.report'
9
10 team_id = fields.Many2one(comodel_name='crm.team', string="Sales Team")
11
12 def _select(self) -> SQL:
13 return SQL("%s, move.team_id as team_id", super()._select())