[IMP] stock: better position for the barcode in picking report

This commit is contained in:
Fabien Pinckaers
2017-01-04 18:51:00 +01:00
committed by Christophe Simonis
parent b9f4a98774
commit 2d5ff1cb3d
2 changed files with 8 additions and 16 deletions
@@ -6,7 +6,6 @@
<t t-foreach="docs" t-as="o">
<t t-call="report.external_layout">
<div class="page">
<h2>
Stock Inventory
</h2>
@@ -1,24 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="external_layout_barcode_right" inherit_id="report.external_layout" primary="True">
<xpath expr="//t[@t-call='report.external_layout_header']" position="attributes">
<attribute name="t-call">stock.external_layout_header_barcode_right</attribute>
</xpath>
</template>
<template id="external_layout_header_barcode_right" inherit_id="report.external_layout_header" primary="True">
<xpath expr="//div[@name='company_address']" position="after">
<div class="col-xs-4 pull-right mt8" name="right_box">
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px;"/>
</div>
</xpath>
</template>
<template id="report_picking">
<t t-call="report.html_container">
<t t-foreach="docs" t-as="o">
<t t-call="stock.external_layout_barcode_right">
<t t-call="report.external_layout">
<div class="page">
<br/>
<div class="row">
<div class="col-xs-6">
<div t-if="o.move_lines and o.move_lines[0].partner_id and o.move_lines[0].partner_id.id != o.partner_id.id">
@@ -50,7 +38,12 @@
</div>
</div>
<br/>
<h1 t-field="o.name" class="mt0"/>
<img
t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.name, 600, 100)"
style="width:300px;height:50px" class="pull-right mb16"
/>
<h1 t-field="o.name" class="mt0 pull-left"/>
<div class="clearfix"/>
<table class="table table-condensed">
<thead>
<tr>