Skip to content
Permalink
Browse files

🚑 print badge error

  • Loading branch information...
KolushovAlexandr committed Apr 25, 2019
1 parent 9ae3175 commit 5bf6e0bd425fa16aeb586e0552843081fd236708
@@ -7,7 +7,7 @@
"category": "Extra Tools",
# "live_test_url": "",
"images": [],
"version": "11.0.1.1.0",
"version": "11.0.1.1.1",
"application": False,

"author": "IT-Projects LLC, Kolushov Alexandr",
@@ -1,3 +1,8 @@
`1.1.1`
-------

- **Fix:** Error when printing partner's badge

`1.1.0`
-------

@@ -24,7 +24,7 @@ def set_values(self):
config_parameters = self.env["ir.config_parameter"].sudo()
for record in self:
config_parameters.set_param("base_attendance.shift_autocheckout",
record.shift_autocheckout or '0')
record.shift_autocheckout or '0')
config_parameters.set_param("base_attendance.hex_scanner_is_used", record.hex_scanner_is_used)
self.checkout_shifts()

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--Copyright (c) 2004-2015 Odoo S.A.
Copyright 2018 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
Copyright 2018-2019 Kolushov Alexandr <https://it-projects.info/team/KolushovAlexandr>
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).-->
<odoo>

@@ -13,7 +13,7 @@
file="base_attendance.print_partner_badge"/>

<template id="print_partner_badge">
<t t-call="report.html_container">
<t t-call="web.html_container">
<div class="page">
<t t-foreach="docs" t-as="partner">
<div class="col-sm-6">
@@ -22,12 +22,12 @@
<table style="width:77pt; height:150pt">
<tr style="height:30%">
<td align="center" valign="center">
<img t-if="partner.company_id and partner.company_id.logo" t-att-src="'data:image/png;base64,%s' % (partner.company_id.logo,)" style="max-height:45pt;max-width:90%" alt="Company Logo"/>
<img t-if="partner.company_id and partner.company_id.logo" t-att-src="'data:image/png;base64,%s' % to_text(partner.company_id.logo,)" style="max-height:45pt;max-width:90%" alt="Company Logo"/>
</td>
</tr>
<tr style="height:70%;">
<td align="center" valign="center">
<img t-if="partner.image" t-att-src="'data:image/png;base64,%s' % (partner.image,)" style="max-height:85pt;max-width:90%" alt="Partner Image"/>
<img t-if="partner.image" t-att-src="'data:image/png;base64,%s' % to_text(partner.image,)" style="max-height:85pt;max-width:90%" alt="Partner Image"/>
</td>
</tr>
</table>

0 comments on commit 5bf6e0b

Please sign in to comment.
You can’t perform that action at this time.