You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
1.4 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<template id="view_res_partner_label">
<t t-call="web.basic_layout">
<t t-foreach="docs.with_context(show_address=True)" t-as="this">
<div t-attf-style="height: {{this.company_id.partner_labels_height}}mm;
width: {{this.company_id.partner_labels_width}}mm;
padding: {{this.company_id.partner_labels_padding}}mm;
margin-top: {{this.company_id.partner_labels_margin_top}}mm;
margin-bottom: {{this.company_id.partner_labels_margin_bottom}}mm;
margin-left: {{this.company_id.partner_labels_margin_left}}mm;
margin-right: {{this.company_id.partner_labels_margin_right}}mm;
display: inline-block;
overflow: hidden;
float:left;
page-break-inside: avoid;">
<address t-field="this.self"
t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}'
/>
</div>
</t>
</t>
</template>
<report id="report_res_partner_label"
string="Partner Labels"
model="res.partner"
name="partner_label.view_res_partner_label"
report_type="qweb-pdf"
paperformat="base.paperformat_euro"
/>
</odoo>