Skip to content
Extraits de code Groupes Projets
Valider 63d1eef8 rédigé par Juliana's avatar Juliana
Parcourir les fichiers

Print Barcode ticket

parent c02519b9
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
{
"name": "VRACOOP - POS Balance ticketing",
"summary": "POS Balance ticketing",
"version": "12.0.0.2",
"version": "12.0.1.0",
"development_status": "Beta",
"author": "Le Filament",
"maintainers": ["remi-filament"],
......
......@@ -71,6 +71,8 @@ odoo.define('vracoop_balance_ticketing.screens', function (require) {
var num_ean13 = this.pos.config.prefix + transaction.ean13.slice(2)
var width_pix = (Math.round(this.pos.config.page_width * 3.78)).toString() + "px";
var url_barcode = "/report/barcode/?type=EAN13&value=" + num_ean13 + "&width=600&height=150"
return {
widget: this,
pos: this.pos,
......@@ -78,6 +80,7 @@ odoo.define('vracoop_balance_ticketing.screens', function (require) {
transaction: transaction,
num_ean13: num_ean13,
width: width_pix,
url_barcode: url_barcode,
};
},
print_web: function() {
......
......@@ -64,6 +64,7 @@
<tr class="title-info bloc-barcode">
<td>
<img t-att-src="widget.get_barcode_url()" style="width:100%;height:35%;" />
<span class="caption"><t t-esc="num_ean13"/></span>
</td>
</tr>
</table>
......@@ -109,15 +110,11 @@
<br />
<br />
<line>
<left>
<img t-att-src="widget.get_barcode_url()" style="width:100%;height:35%;" />
<span class="caption"><t t-esc="num_ean13"/></span>
</left>
</line>
<line>
<img t-att-src="widget.get_barcode_url()" style="width:100%;height:35%;" />
<img t-att-src="url_barcode" style="width:100%;height:35%;" />
<span class="caption"><t t-esc="num_ean13"/></span>
</line>
<br />
<br />
</div>
</div>
</receipt>
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter