From 865f075d1f56e7b4a4dacd70ce6919a09bd269f9 Mon Sep 17 00:00:00 2001 From: Sara <49147098+saralb9@users.noreply.github.com> Date: Tue, 2 Mar 2021 10:59:21 +0100 Subject: [PATCH] [ADD] Folio report (#59) * [IMP] Pms: Improve folio report * [IMP] Pms: Add show detail check in board_service and folio report * [IMP] Pms: Show currency in all monetary fields * [IMP] Pms: fix price_unit in folio_report * [IMP] Pms: add discounts in board_service price * [IMP] Pms: fix discount calculation * Pre-commit and rebase done --- pms/models/pms_board_service.py | 2 + pms/report/pms_folio_templates.xml | 523 ++++++++++++-------------- pms/views/pms_board_service_views.xml | 2 + 3 files changed, 254 insertions(+), 273 deletions(-) diff --git a/pms/models/pms_board_service.py b/pms/models/pms_board_service.py index ed4e63fae..8dc7a4ebf 100644 --- a/pms/models/pms_board_service.py +++ b/pms/models/pms_board_service.py @@ -28,7 +28,9 @@ class PmsBoardService(models.Model): "Amount", digits=("Product Price"), compute="_compute_board_amount", store=True ) + show_detail_report = fields.Boolean(string="Show Detail Report") # Compute and Search methods + @api.depends("board_service_line_ids.amount") def _compute_board_amount(self): for record in self: diff --git a/pms/report/pms_folio_templates.xml b/pms/report/pms_folio_templates.xml index 89128db3b..23e163bab 100644 --- a/pms/report/pms_folio_templates.xml +++ b/pms/report/pms_folio_templates.xml @@ -1,11 +1,10 @@ -