-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BAH-3410 | Add. Custom Reports, API Payload Format Changed And Fix Mi…
…nor Issues * [Hari | BAH-3410 |Add. ] * Revert "[Hari | BAH-3410 |Add. ]" This reverts commit bd1639c. * [ Hari,Karthi ] | BAH-3410 | Add. Custom Reports was added, API payload format changed and minor issues are fixed. * [Karthi] | BAH-3410 | Refactor. Logs all undoed * [Karthi] | BAH-3410 | Refactor. All the print statement has been removed * [Karthi] | BAH-3410 | CLA Verfication * [Karthi] | BAH-3410 | Refactor. Menus file position has been changed * [Karthi] | BAH-3410 | Refactor. sudo access given to stock warehouse --------- Co-authored-by: karthikeyan <[email protected]>
- Loading branch information
1 parent
562c0ee
commit a287b14
Showing
30 changed files
with
606 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<t t-name="web.external_layout_standard"> | ||
<div t-attf-class="header o_company_#{company.id}_layout" t-att-style="report_header_style"> | ||
<div style="width: 55%;float: left;"> | ||
<address> | ||
<p style="margin-bottom: -5px;padding: 1px;"><span t-field="company.company_details"/></p> | ||
<p style="margin-bottom: 2px;">Phone : <span t-field="o.company_id.phone"/></p> | ||
</address> | ||
</div> | ||
<div style="width: 25%;float: right;"> | ||
<img t-att-src="image_data_uri(o.company_id.logo)"/></div> | ||
</div> | ||
|
||
<div t-attf-class="article o_report_layout_standard o_company_#{company.id}_layout {{ 'o_report_layout_background' if company.layout_background in ['Geometric', 'Custom'] else '' }}" t-attf-style="background-image: url({{ 'data:image/png;base64,%s' % company.layout_background_image.decode('utf-8') if company.layout_background_image and company.layout_background == 'Custom' else '/base/static/img/bg_background_template.jpg' if company.layout_background == 'Geometric' else ''}});" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id" t-att-data-oe-lang="o and o.env.context.get('lang')"> | ||
<div class="pt-5"> | ||
<!-- This div ensures that the address is not cropped by the header. --> | ||
<t t-call="web.address_layout"/> | ||
</div> | ||
<t t-out="0"/> | ||
</div> | ||
|
||
<div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout"> | ||
<div class="text-center" style="border-top: 1px solid black;"> | ||
<ul class="list-inline mb4"> | ||
<div style="width: 65%;float: right;"> | ||
<!--Page: <span class="page"/> of <span class="topage"/>--> | ||
</div> | ||
<div style="width: 35%;float: left;" t-if="report_type == 'pdf'"> | ||
<span t-field="user.name"/> - <span t-esc="context_timestamp(datetime.datetime.now()).strftime('%d/%m/%Y %H:%M:%S')"/> | ||
</div> | ||
</ul> | ||
<div t-if="report_type == 'pdf'" style="width: 30%; float: left;"> | ||
Page: <span class="page"/> of <span class="topage"/> | ||
</div> | ||
<div t-if="report_type == 'pdf' and display_name_in_footer" class="text-muted"> | ||
<span t-field="o.name"/> | ||
</div> | ||
</div> | ||
</div> | ||
</t> |
Oops, something went wrong.