This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Add barcode to product ===== <code> #!/bin/bash for i in $(cat codigosyreferencia.csv) do referencia=$(echo $i | awk -F, '{print $1}') codigobarras=$(echo $i | awk -F, '{print $2}') echo "update public.product_product SET barcode='$codigobarras' where default_code='$referencia';" done </code> As postgres: <code> psql alejandrogomez < product_barcode.sql </code> Change product type: <code> update product_template SET type = 'product'; </code> Enable available in POS: <code> update product_template SET available_in_pos = true; </code>