Add module sale_agent

This commit is contained in:
Alexis de Lattre
2024-11-07 17:18:57 +01:00
parent f93f17b27b
commit e22badc605
13 changed files with 330 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# Copyright 2024 Akretion France (https://www.akretion.com)
# @author Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import fields, models
class AccountInvoiceReport(models.Model):
_inherit = "account.invoice.report"
invoice_agent_id = fields.Many2one("res.partner", string="Agent", readonly=True)
def _select(self):
select_str = super()._select()
return f"{select_str}, move.invoice_agent_id AS invoice_agent_id"