File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed
account_reporting_product_template Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 33
44{
55 "name" : "Product template in the invoices analysis view" ,
6- "version" : "16 .0.1.0.0" ,
6+ "version" : "18 .0.1.0.0" ,
77 "category" : "Account" ,
88 "license" : "AGPL-3" ,
99 "author" : "AvanzOSC" ,
Original file line number Diff line number Diff line change 22# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
33
44from odoo import api , fields , models
5+ from odoo .tools import SQL
56
67
78class AccountInvoiceReport (models .Model ):
@@ -14,14 +15,10 @@ class AccountInvoiceReport(models.Model):
1415
1516 @api .model
1617 def _select (self ):
17- select_str = super ()._select ()
18- select_str += """
19- , template.id as product_tmpl_id
18+ return SQL (
2019 """
21- return select_str
22-
23- @api .model
24- def _group_by (self ):
25- group_by_str = super ()._group_by ()
26- group_by_str += ", template.id"
27- return group_by_str
20+ %s,
21+ product.product_tmpl_id AS product_tmpl_id
22+ """ ,
23+ super ()._select (),
24+ )
You can’t perform that action at this time.
0 commit comments