Browse Source

Jul 14 : [UPDT] Index updated 'one2many_excel_report'

pull/266/head
Shijin V 2 years ago
parent
commit
5fd2fe41c4
  1. 2
      one2many_excel_report/README.rst
  2. 2
      one2many_excel_report/controllers/one2many_excel_report.py
  3. 2
      one2many_excel_report/doc/RELEASE_NOTES.md
  4. 4
      one2many_excel_report/models/report_excel.py
  5. BIN
      one2many_excel_report/static/description/assets/screenshots/2.png
  6. BIN
      one2many_excel_report/static/description/assets/screenshots/hero.gif
  7. 42
      one2many_excel_report/static/description/index.html
  8. 3
      one2many_excel_report/static/src/xml/X2ManyField.xml

2
one2many_excel_report/README.rst

@ -9,7 +9,7 @@ This module is used to print the excel report of the one2many fields using the
Configuration
=============
* Add one2many_excel to the one2many fields as widget
* Add the widget "one2many_excel" for one2many field.
Company
-------

2
one2many_excel_report/controllers/one2many_excel_report.py

@ -31,7 +31,7 @@ except ImportError:
class ExcelHttp(http.Controller):
"""Used to print the Excel report"""
"""Used to print the excel report"""
@http.route('/get/excel', type='json', auth='user', methods=['POST'],
csrf=False)
def get_excel_report(self):

2
one2many_excel_report/doc/RELEASE_NOTES.md

@ -1,6 +1,6 @@
## Module <one2many_excel_report>
#### 01.06.2023
#### 05.07.2023
#### Version 16.0.1.0.0
##### ADD
- Initial commit for One2many Excel Report

4
one2many_excel_report/models/report_excel.py

@ -30,11 +30,11 @@ except ImportError:
class SelectReportExcel(models.Model):
"""Used to get the Excel report function"""
"""Used to get the excel report function"""
_name = 'report.excel'
def get_xlsx_report(self, data, names, response):
"""Used to print the Excel report"""
"""Used to print the excel report"""
sl = 0
row_num = 7
output = io.BytesIO()

BIN
one2many_excel_report/static/description/assets/screenshots/2.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 KiB

After

Width:  |  Height:  |  Size: 100 KiB

BIN
one2many_excel_report/static/description/assets/screenshots/hero.gif

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 KiB

After

Width:  |  Height:  |  Size: 132 KiB

42
one2many_excel_report/static/description/index.html

@ -24,10 +24,8 @@
<!-- END OF TITLE BAR -->
<!-- APP HERO -->
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">One2many
Mass Select/ Deselect Widget</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> Managing Multiple
Selection/Deselection of One2many Fields. </p>
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;">One2many Excel Report</h1>
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> This module is used to print the one2many fields report in xlsx.</p>
<!-- END OF APP HERO -->
<img src="./assets/screenshots/hero.gif"
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/>
@ -100,11 +98,27 @@
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
If we want to print the excel report of the one2many fields .
We can print the excel report of the one2many fields.
</div>
</div>
<!-- END OF OVERVIEW SECTION -->
<!-- CONFIGURATION SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="configuration">
<div class="d-flex justify-content-center align-items-center mr-2"
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;">
<img src="./assets/misc/pie-chart.png"/>
</div>
<h2 class="mt-2" style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;">Configuration
</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 py-4">
Add the widget "one2many_excel" for one2many field.
</div>
</div>
<!-- END OF CONFIGURATION SECTION -->
<!-- FEATURES SECTION -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features">
<div class="d-flex justify-content-center align-items-center mr-2"
@ -115,14 +129,14 @@
</h2>
</div>
<div class="row" style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;">
<div class="col-sm-12 col-md-6">
<div class="d-flex flex-column justify-content-center align-items-start"
<div class="col-sm-12 col-md-6">
<div class="d-flex align-items-center"
style="margin-top: 40px; margin-bottom: 40px">
<img src="./assets/misc/check-box.png" class="mr-2"/>
<img src="assets/misc/check-box.png" class="mr-2"/>
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">
Excel report of the one2many</span>
Excel report for one2many fields.</span>
</div>
</div>
</div>
</div>
<!-- END OF FEATURES SECTION -->
@ -140,13 +154,13 @@
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Configuration</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> Add the widget "one2many_excel" for one2many field .</p>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> Add the widget "one2many_excel" for one2many field.</p>
<img src="./assets/screenshots/1.png" class="img-thumbnail">
</div>
<div style="display: block; margin: 30px auto;">
<h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">One2Many Fields</h3>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">After adding the widget in the on2many field we can see a button in the field.</p>
<p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;">After adding the widget in the one2many field we can see a button in the field.</p>
<img src="./assets/screenshots/2.png" class="img-thumbnail">
</div>
@ -367,7 +381,7 @@
</div>
<!-- END OF END OF OUR SERVICES -->
<!-- END OF OUR SERVICES -->
<!-- OUR INDUSTRIES -->
@ -494,7 +508,7 @@
</div>
</div>
<!-- END OF END OF OUR INDUSTRIES -->
<!-- END OF OUR INDUSTRIES -->
<!-- SUPPORT -->
<div class="d-flex align-items-center" style="border-bottom: 2px solid #714B67; padding: 15px 0px;">

3
one2many_excel_report/static/src/xml/X2ManyField.xml

@ -5,7 +5,8 @@
t-inherit-mode="primary" owl="1">
<xpath expr="//div[hasclass('o_x2m_control_panel')]" position="before">
<div>
<button class="btn btn-danger" t-on-click="Print_excel_report">
<button class="btn btn-primary" t-on-click="Print_excel_report"
style="margin-top: 20px;margin-left: 35px;">
<span class="fa fa-download"/>
</button>
<t t-if="props.readonly">

Loading…
Cancel
Save