#12 debrand
This commit is contained in:
parent
5f4bb24894
commit
f874606369
6 changed files with 23 additions and 27 deletions
|
|
@ -6,11 +6,11 @@
|
|||
string="Barcode"
|
||||
model="product.product"
|
||||
report_type="qweb-pdf"
|
||||
name="product_laosa.report_productbarcode_laosa"
|
||||
file="product_laosa.report_productbarcode_laosa"/>
|
||||
name="product_update_price_last_purchase.report_productbarcode_update"
|
||||
file="product_update_price_last_purchase.report_productbarcode_update"/>
|
||||
|
||||
<record id="report_productbarcode" model="ir.actions.report" >
|
||||
<field name="paperformat_id" ref="product_laosa.paperformat_barcode"/>
|
||||
<field name="paperformat_id" ref="product_update_price_last_purchase.paperformat_barcode"/>
|
||||
</record>
|
||||
|
||||
<report
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
/>
|
||||
|
||||
<record id="report_product_product_barcode" model="ir.actions.report" >
|
||||
<field name="paperformat_id" ref="product_laosa.paperformat_barcode"/>
|
||||
<field name="paperformat_id" ref="product_update_price_last_purchase.paperformat_barcode"/>
|
||||
</record>
|
||||
|
||||
|
||||
|
|
@ -39,11 +39,11 @@
|
|||
/>
|
||||
|
||||
<record id="report_product_template_barcode" model="ir.actions.report" >
|
||||
<field name="paperformat_id" ref="product_laosa.paperformat_barcode"/>
|
||||
<field name="paperformat_id" ref="product_update_price_last_purchase.paperformat_barcode"/>
|
||||
</record>
|
||||
|
||||
<report
|
||||
id="report_simple_barcode_laosa"
|
||||
id="report_simple_barcode_update"
|
||||
string="Product Barcode (PDF)"
|
||||
model="product.product"
|
||||
report_type="qweb-pdf"
|
||||
|
|
@ -52,12 +52,12 @@
|
|||
print_report_name="'Products barcode - %s' % (object.name)"
|
||||
/>
|
||||
|
||||
<record id="report_simple_barcode_laosa" model="ir.actions.report" >
|
||||
<field name="paperformat_id" ref="product_laosa.paperformat_barcode"/>
|
||||
<record id="report_simple_barcode_update" model="ir.actions.report" >
|
||||
<field name="paperformat_id" ref="product_update_price_last_purchase.paperformat_barcode"/>
|
||||
</record>
|
||||
|
||||
<report
|
||||
id="report_productbarcode_laosa"
|
||||
id="report_productbarcode_update"
|
||||
string="Product Barcode (PDF)"
|
||||
model="product.product"
|
||||
report_type="qweb-pdf"
|
||||
|
|
@ -66,8 +66,8 @@
|
|||
print_report_name="'Products barcode - %s' % (object.name)"
|
||||
/>
|
||||
|
||||
<record id="report_productbarcode_laosa" model="ir.actions.report" >
|
||||
<field name="paperformat_id" ref="product_laosa.paperformat_barcode"/>
|
||||
<record id="report_productbarcode_update" model="ir.actions.report" >
|
||||
<field name="paperformat_id" ref="product_update_price_last_purchase.paperformat_barcode"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="report_simple_barcode_laosa" inherit_id="product.report_simple_barcode" >
|
||||
<template id="report_simple_barcode_update" inherit_id="product.report_simple_barcode" >
|
||||
<xpath expr="." position="replace">
|
||||
<t t-name="product.report_simple_barcode">
|
||||
<div style="height: 1.65cm; width: 3.5cm; margin-top: 0.2mm; padding: 0; text-align: center; position: relative; display: inline-table; border: 2px solid black;">
|
||||
|
|
@ -16,13 +16,13 @@
|
|||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="report_productbarcode_laosa" inherit_id="product.report_productbarcode">
|
||||
<template id="report_productbarcode_update" inherit_id="product.report_productbarcode">
|
||||
<xpath expr="." position="replace">
|
||||
<t t-name="product.report_productbarcode">
|
||||
<t t-call="web.html_container">
|
||||
<div class="page" >
|
||||
<t t-foreach="docs" t-as="product">
|
||||
<t t-call="product.report_simple_barcode_laosa">
|
||||
<t t-call="product.report_simple_barcode_update">
|
||||
<t t-set="product" t-value="product"/>
|
||||
</t>
|
||||
</t>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue