[FIX] commission module installable

This commit is contained in:
Florian da Costa
2025-11-13 11:56:13 +01:00
parent 4b5385f391
commit b4efcdb2d7
7 changed files with 9 additions and 9 deletions

View File

@@ -3,6 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import api, fields, models
from odoo.tools import SQL
class AccountInvoiceReport(models.Model):
@@ -11,7 +12,5 @@ class AccountInvoiceReport(models.Model):
commission_amount = fields.Float(readonly=True)
@api.model
def _select(self):
select_str = super()._select()
select_str += ", line.commission_amount * currency_table.rate AS commission_amount"
return select_str
def _select(self) -> SQL:
return SQL("%s, line.commission_amount * account_currency_table.rate AS commission_amount", super()._select())