Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0][IMP] account_invoice_print_image: Improve printing error #3043

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions account_invoice_print_image/data/layouts.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,12 @@
<odoo>
<template id="external_layout_standard" inherit_id="web.external_layout_standard">
<xpath expr="//div[@name='company_address']" position="after">
<div class="col-6">
<span
name="out_invoice_image"
<div class="col-6 text-end">
<img
t-if="company and company._name == 'res.company' and company.out_invoice_image and o and o._name == 'account.move' and o.move_type in ('out_invoice', 'out_refund')"
style="position: absolute; top:55px; left: 740px"
>
<img
t-att-src="image_data_uri(company.out_invoice_image)"
style="max-height: 120px;"
/>
</span>
t-att-src="image_data_uri(company.out_invoice_image)"
style="max-height: 120px; margin: 3px 0 0 0;"
/>
</div>
</xpath>
</template>
Expand Down
Loading