Browse Source

Feb 17 [UPDT] : Index Updated 'purchase_report_generator'

pull/242/head
AjmalCybro 2 years ago
parent
commit
93b80fa4e5
  1. 2
      purchase_report_generator/__manifest__.py
  2. 165
      purchase_report_generator/static/src/css/purchase_report.css
  3. 2
      purchase_report_generator/static/src/js/purchase_report.js
  4. 2
      purchase_report_generator/views/purchase_report.xml

2
purchase_report_generator/__manifest__.py

@ -21,7 +21,7 @@
{ {
'name': 'Purchase All In One Report Generator', 'name': 'Purchase All In One Report Generator',
'version': '14.0.1.0.0', 'version': '14.0.1.0.1',
'summary': "Dynamic Purchase Report Maker", 'summary': "Dynamic Purchase Report Maker",
'description': "Dynamic Purchase Report Maker", 'description': "Dynamic Purchase Report Maker",
'category': 'Purchase', 'category': 'Purchase',

165
purchase_report_generator/static/src/css/purchase_report.css

@ -3,23 +3,63 @@
border: 2px solid #ccc; border: 2px solid #ccc;
border-radius: 5px; border-radius: 5px;
padding: 10px; padding: 10px;
} }
.apply_sale{
.apply_sale {
margin-right: 5px; margin-right: 5px;
padding: 4px; padding: 4px;
} }
#apply_filter {
margin-right: 25px;
}
#pdf, #xlsx, #apply_filter {
color: white;
background-color: #7c7bad;
border-color: #7c7bad;
}
a.dropdown-toggle.report-type { a.dropdown-toggle.report-type {
margin: 10px; margin: 10px;
} }
.search-Result-Selection { .search-Result-Selection {
border: 2px solid #ccc; border: 2px solid #ccc;
width: 257px; max-width: 360px;
min-width: 250px;
margin-right: 10px; margin-right: 10px;
margin-left: 10px; margin-left: 10px;
border-radius: 5px; 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 { .table_pr_head {
background-color: #7c7bad; background-color: #7c7bad;
color: #fff; color: #fff;
@ -29,30 +69,115 @@ a.dropdown-toggle.report-type {
width: 100%; width: 100%;
border: 1px solid #000; border: 1px solid #000;
} }
element.style {
top: 0px;
height: 42px;
color: white;
background-color: #7c7bad;
border-color: #7c7bad;
width: 100px;
}
tr.pr-line { tr.pr-line {
height: 48px; height: 48px;
} }
tr.table_pr_head th { tr.table_pr_head th {
font-size: 18px; font-size: 18px;
text-align: center; text-align: center;
} }
ul.dropdown-menu.show {
height: 40px; .table_view_pr {
background-color: #eeeeee; overflow-y: scroll;
width: 200px; position: relative;
height: 500px;
max-width: 100%;
} }
ul.dropdown-menu.show li { .my_custom_dropdown{
margin-left: 10px; 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; @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;
}
}

2
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; return PurchaseReport;
}); });

2
purchase_report_generator/views/purchase_report.xml

@ -2,7 +2,7 @@
<odoo> <odoo>
<record id="purchase_all_report_action" model="ir.actions.client"> <record id="purchase_all_report_action" model="ir.actions.client">
<field name="name">Purchase Report</field> <field name="name">Purchase Report</field>
<field name="tag">p_r</field> <field name="tag">pu_r</field>
</record> </record>
<menuitem action="purchase_all_report_action" parent="purchase.purchase_report" <menuitem action="purchase_all_report_action" parent="purchase.purchase_report"

Loading…
Cancel
Save