From 93b80fa4e579710e1d3739aa9e53e8c17d3e8cd0 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Fri, 17 Feb 2023 10:40:45 +0530 Subject: [PATCH] Feb 17 [UPDT] : Index Updated 'purchase_report_generator' --- purchase_report_generator/__manifest__.py | 2 +- .../static/src/css/purchase_report.css | 165 +++++++++++++++--- .../static/src/js/purchase_report.js | 2 +- .../views/purchase_report.xml | 2 +- 4 files changed, 148 insertions(+), 23 deletions(-) diff --git a/purchase_report_generator/__manifest__.py b/purchase_report_generator/__manifest__.py index 30e0159a1..d98e5309d 100644 --- a/purchase_report_generator/__manifest__.py +++ b/purchase_report_generator/__manifest__.py @@ -21,7 +21,7 @@ { 'name': 'Purchase All In One Report Generator', - 'version': '14.0.1.0.0', + 'version': '14.0.1.0.1', 'summary': "Dynamic Purchase Report Maker", 'description': "Dynamic Purchase Report Maker", 'category': 'Purchase', diff --git a/purchase_report_generator/static/src/css/purchase_report.css b/purchase_report_generator/static/src/css/purchase_report.css index 892697cce..ccf75eb49 100644 --- a/purchase_report_generator/static/src/css/purchase_report.css +++ b/purchase_report_generator/static/src/css/purchase_report.css @@ -3,23 +3,63 @@ border: 2px solid #ccc; border-radius: 5px; padding: 10px; + } -.apply_sale{ + +.apply_sale { margin-right: 5px; padding: 4px; } +#apply_filter { + margin-right: 25px; +} + +#pdf, #xlsx, #apply_filter { + color: white; + background-color: #7c7bad; + border-color: #7c7bad; +} + a.dropdown-toggle.report-type { margin: 10px; - } + .search-Result-Selection { border: 2px solid #ccc; - width: 257px; + max-width: 360px; + min-width: 250px; margin-right: 10px; margin-left: 10px; border-radius: 5px; + min-height: 40px; +} +.search-Result-Selection:hover{ + border:2px solid #eaeaea; + +} +.dropdown-togglereport-type{ + min-height: 40px; + padding-top: 10px; } + + +.low_case, #report_res { + text-transform: capitalize; + text-align: center; + +} + +#report_res{ + padding-right: 3px; + +} + + +.print-btns { + margin-bottom: 30px; +} + .table_pr_head { background-color: #7c7bad; color: #fff; @@ -29,30 +69,115 @@ a.dropdown-toggle.report-type { width: 100%; border: 1px solid #000; } -element.style { - top: 0px; - height: 42px; - color: white; - background-color: #7c7bad; - border-color: #7c7bad; - width: 100px; -} + tr.pr-line { height: 48px; } + tr.table_pr_head th { font-size: 18px; text-align: center; } -ul.dropdown-menu.show { - height: 40px; - background-color: #eeeeee; - width: 200px; + +.table_view_pr { + overflow-y: scroll; + position: relative; + height: 500px; + max-width: 100%; + } -ul.dropdown-menu.show li { - margin-left: 10px; +.my_custom_dropdown{ + min-width:200px; + height:150px; + padding: 20px; +} +.my_custom_dropdown input{ + height:25px; + +} +.report_type{ + min-height: 100px; + min-width: 150px; + padding: 30px 10px 10px; +} + + +.sub_container_right, .print-btns { + + display: flex; + justify-content: space-around; + align-items: center; + +} + +@media screen and (max-width: 768px) { + .sub_container_right, .print-btns { + flex-flow: column; + align-items: center; + + } + + .sub_container_left { + order: 2; + margin: 0; + } + + .sub_container_right { + flex-flow: row; + margin-bottom: 10px; + flex-wrap: wrap !important; + width: 100%; + + } + + + } -ul.dropdown-menu.show a{ - color: #221c1c; -} \ No newline at end of file + +@media screen and (max-width: 576px) { + + + .apply_filter { + width: 100%; + position: relative; + + } + + #apply_filter { + position: absolute; + margin: 30px 0 0; + top: 50%; + left: 50%; + -ms-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + } + + #date_chose { + margin-bottom: 15px; + } + + .search-Result-Selection { + text-align: center; + } + + .sub_container_left { + order: 2; + display: flex; + margin-top: 50px; + width: 100%; + justify-content: center; + align-items: center; + flex-wrap: wrap !important; + + } + + .sub_container_right { + flex-direction: column; + } + + + +} + + diff --git a/purchase_report_generator/static/src/js/purchase_report.js b/purchase_report_generator/static/src/js/purchase_report.js index dd5a16cfb..3c751ca88 100644 --- a/purchase_report_generator/static/src/js/purchase_report.js +++ b/purchase_report_generator/static/src/js/purchase_report.js @@ -232,6 +232,6 @@ odoo.define('purchase_report_generator.purchase_report', function(require) { }, }); - core.action_registry.add("p_r", PurchaseReport); + core.action_registry.add("pu_r", PurchaseReport); return PurchaseReport; }); \ No newline at end of file diff --git a/purchase_report_generator/views/purchase_report.xml b/purchase_report_generator/views/purchase_report.xml index 0c756c3d8..6735b3502 100644 --- a/purchase_report_generator/views/purchase_report.xml +++ b/purchase_report_generator/views/purchase_report.xml @@ -2,7 +2,7 @@ Purchase Report - p_r + pu_r