Browse Source

fixup! [ADD] partner_label

12.0
Holger Brunn 7 years ago
parent
commit
5a3c0c22e7
  1. 2
      partner_label/reports/res_partner.xml
  2. 6
      partner_label/views/base_config_settings.xml

2
partner_label/reports/res_partner.xml

@ -11,7 +11,7 @@
<div class="page"> <div class="page">
<t t-foreach="docs.with_context(show_address=True)" t-as="this"> <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: {{this.company_id.partner_labels_margin}}mm; display: inline-block; overflow: hidden;"> <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: {{this.company_id.partner_labels_margin}}mm; display: inline-block; overflow: hidden;">
<div t-esc="this.name_get()[0][1]" style="white-space: pre-line;" />
<address t-field="this.self" t-options='{"widget": "contact", "fields": ["address", "name"], "no_marker": True}' />
</div> </div>
</t> </t>
</div> </div>

6
partner_label/views/base_config_settings.xml

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<odoo>
<record id="view_general_configuration" model="ir.ui.view"> <record id="view_general_configuration" model="ir.ui.view">
<field name="model">base.config.settings</field> <field name="model">base.config.settings</field>
<field name="inherit_id" ref="base_setup.view_general_configuration" /> <field name="inherit_id" ref="base_setup.view_general_configuration" />
@ -24,5 +23,4 @@
</group> </group>
</field> </field>
</record> </record>
</data>
</openerp>
</odoo>
Loading…
Cancel
Save