From facd3adf745c1e785979ae86aed95d6e9106c41f Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 15 May 2023 15:03:54 +0200 Subject: [PATCH] account_product_fiscal_classification_pos_sale: Add inherit of group_by --- .../report/sale_report.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/account_product_fiscal_classification_pos_sale/report/sale_report.py b/account_product_fiscal_classification_pos_sale/report/sale_report.py index 61cd409..0a20937 100644 --- a/account_product_fiscal_classification_pos_sale/report/sale_report.py +++ b/account_product_fiscal_classification_pos_sale/report/sale_report.py @@ -28,3 +28,8 @@ class SaleReport(models.Model): res = super()._fill_pos_fields(additional_fields) res['fiscal_classification_id'] = "t.fiscal_classification_id" return res + + def _group_by_pos(self): + res = super()._group_by_pos() + res += ", t.fiscal_classification_id" + return res