Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
6093 Näkymät

I would like to display a barcode on my Manufactory Order view (view_type=form & model=mrp.production). 


What I've tried has been to enable debugging mode and edit the form view and inserting the following:

<barCode code="code128" fontName="Times-Roman" fontSize="50" alignment="CENTER"> 'My Data' </barCode>

The results I get is "My Data" rendered in clear text instead of a barcode. 


Any suggestions? 

Avatar
Hylkää
Paras vastaus

Refer the Odoo 8 stock Module,

create and set image path /your_module/static/src/img/scan.png

Example,

 <div class="oe_right oe_button_box"> 
<button name="do_partial_open_barcode" groups="stock.group_stock_user" type="object"
class="oe_stock_scan_button" attrs="{'invisible': ['|',('pack_operation_exist', '=', True),('state','not in',('assigned', 'partially_available'))]}">
<img src="/stock/static/src/img/scan.png" class="oe_stock_scan_image oe_stock_scan_image_btn"/>
</button>
</div>

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
tammik. 25
648
0
helmik. 22
2812
0
kesäk. 21
2093
0
jouluk. 19
2139
2
syysk. 18
8744