From b787f8132512d8759b95b4a1aa72d272bc634612 Mon Sep 17 00:00:00 2001 From: Marc Durepos Date: Mon, 31 Jul 2023 07:04:46 -0400 Subject: [PATCH] bemade_fsm: Add the beginning of the PDF report for service tasks. --- bemade_fsm/__manifest__.py | 4 + bemade_fsm/reports/worksheet_templates.xml | 86 ++++++++++++++++++++++ bemade_fsm/static/src/scss/bemade_fsm.scss | 45 +++++++++++ 3 files changed, 135 insertions(+) create mode 100644 bemade_fsm/reports/worksheet_templates.xml create mode 100644 bemade_fsm/static/src/scss/bemade_fsm.scss diff --git a/bemade_fsm/__manifest__.py b/bemade_fsm/__manifest__.py index b44bb86..387b0b3 100644 --- a/bemade_fsm/__manifest__.py +++ b/bemade_fsm/__manifest__.py @@ -49,6 +49,7 @@ 'views/menus.xml', 'views/task_views.xml', 'views/sale_order_views.xml', + 'reports/worksheet_templates.xml', ], 'assets': { 'web.assets_tests': [ @@ -56,6 +57,9 @@ 'bemade_fsm/static/tests/tours/equipment_tour.js', 'bemade_fsm/static/tests/tours/sale_order_tour.js', ], + 'web.report_assets_common': [ + 'bemade_fsm/static/src/scss/bemade_fsm.scss' + ] }, 'installable': True, 'auto_install': False diff --git a/bemade_fsm/reports/worksheet_templates.xml b/bemade_fsm/reports/worksheet_templates.xml new file mode 100644 index 0000000..3936a1b --- /dev/null +++ b/bemade_fsm/reports/worksheet_templates.xml @@ -0,0 +1,86 @@ + + + + + Complete Worksheet Report (PDF) + project.task + qweb-pdf + bemade_fsm.worksheet_complete + + '%s Worksheet %s' % (time.now().strftime('%Y-%m-%d'),object.name) + + + report + + + + + + + \ No newline at end of file diff --git a/bemade_fsm/static/src/scss/bemade_fsm.scss b/bemade_fsm/static/src/scss/bemade_fsm.scss new file mode 100644 index 0000000..c6f94ae --- /dev/null +++ b/bemade_fsm/static/src/scss/bemade_fsm.scss @@ -0,0 +1,45 @@ +.border-black { + border: 1px solid black; +} + +.wo-information{ + border: 1px solid black; + .row{ + .col-auto{ + border: 1px solid black; + } + } + page-break-inside: avoid; +} + +.wo-intervention{ + border: 1px solid black; + margin-bottom: 10px; + padding-bottom: 10px; + page-break-inside: avoid; +} + +.wo-parts-used{ + page-break-inside: avoid; +} + +.wo-task{ + border: 1px solid black; + margin-bottom: 10px; + padding-bottom: 10px; + page-break-inside: avoid; +} + +.border-top-black{ + border-top: 1px solid black; +} + +.text-left { + text-align: left; +} + +.manual_line_input { + border-bottom: 1px solid black; + margin: 30px 0px 0px 0px; + width: 100%; +} \ No newline at end of file