[IMP] stock: better position for the barcode in picking report
This commit is contained in:
committed by
Christophe Simonis
parent
b9f4a98774
commit
2d5ff1cb3d
@@ -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&value=%s&width=%s&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&value=%s&width=%s&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>
|
||||
|
||||
Reference in New Issue
Block a user