Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vracoop_pos_container_qrcode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Le Filament
Vracoop
vracoop_pos_container_qrcode
Commits
c60d7aca
Commit
c60d7aca
authored
3 years ago
by
Juliana
Browse files
Options
Downloads
Patches
Plain Diff
Change template + Add weight to label
parent
09776130
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
static/src/js/container.js
+2
-1
2 additions, 1 deletion
static/src/js/container.js
static/src/xml/pos.xml
+6
-2
6 additions, 2 deletions
static/src/xml/pos.xml
with
8 additions
and
3 deletions
static/src/js/container.js
+
2
−
1
View file @
c60d7aca
...
...
@@ -133,11 +133,12 @@ odoo.define('vracoop_pos_container_qrcode.container_print_qr', function (require
var
base36_cle
=
cle_int
.
toString
(
36
);
var
url_qrcode
=
url_qr
.
concat
(
base36_cle
,
'
-
'
,
base36_first
,
'
-
'
,
base36_second
);
var
weight_gr
=
parseInt
(
weight_str
,
10
)
+
'
g
'
return
{
widget
:
this
,
weight
:
this
.
weight
,
url_barcode
:
url_qrcode
,
weight_gr
:
weight_gr
}
},
...
...
This diff is collapsed.
Click to expand it.
static/src/xml/pos.xml
+
6
−
2
View file @
c60d7aca
...
...
@@ -102,10 +102,14 @@
<!-- ^FO60,30^BQ,2,5,H,7^FDQA,<t t-esc='url_barcode'/>^FS-->
<!-- ^XZ-->
^XA
<!--
^XA
-->
^FO40,143^BQ,2,4,H,7^FDQA,
<t
t-esc=
'url_barcode'
/>
^FS
<!--
^FO40,143^BQ,2,4,H,7^FDQA,<t t-esc='url_barcode'/>^FS
-->
<!-- ^XZ-->
<!-- ^XA-->
^FO103,30^BQ,2,4,H,7^FDQA,
<t
t-esc=
'url_barcode'
/>
^FS
^CF,15,10^FO135,170^FD
<t
t-esc=
'weight_gr'
/>
^FS
^XZ
</receipt>
</t>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment