[IMP] pre-commit: first run on whole repo
This commit is contained in:
@@ -6,14 +6,16 @@ from odoo import fields, models
|
||||
|
||||
|
||||
class SaleReport(models.Model):
|
||||
_inherit = 'sale.report'
|
||||
_inherit = "sale.report"
|
||||
|
||||
margin = fields.Float(string='Margin', readonly=True)
|
||||
margin = fields.Float(string="Margin", readonly=True)
|
||||
|
||||
def _query(self, with_clause='', fields={}, groupby='', from_clause=''):
|
||||
fields['margin_company_currency'] =\
|
||||
", SUM(l.margin_company_currency) AS margin"
|
||||
def _query(self, with_clause="", fields={}, groupby="", from_clause=""):
|
||||
fields["margin_company_currency"] = ", SUM(l.margin_company_currency) AS margin"
|
||||
res = super(SaleReport, self)._query(
|
||||
with_clause=with_clause, fields=fields, groupby=groupby,
|
||||
from_clause=from_clause)
|
||||
with_clause=with_clause,
|
||||
fields=fields,
|
||||
groupby=groupby,
|
||||
from_clause=from_clause,
|
||||
)
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user