Skip to content

Commit 3fcb745

Browse files
committed
[MOV] web_editor, point_of_sale: move html2canvas to web_editor
This moves the `html2canvas` library from `point_of_sale` to `web_editor` so as to be able to use it in `convert_inline`. `point_of_sale`, depending from `web_editor`, doesn't lose access to the library. task-2856858 Part-of: odoo#91314
1 parent c934652 commit 3fcb745

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

addons/point_of_sale/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120

121121
# Here includes the lib and POS UI assets.
122122
'point_of_sale/static/lib/**/*.js',
123+
'web_editor/static/lib/html2canvas.js',
123124
'point_of_sale/static/src/js/**/*.js',
124125
],
125126
# This bundle contains the code responsible for starting the POS UI.

addons/web_editor/__manifest__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'web_editor/static/lib/jQuery.transfo.js',
3535
'web/static/lib/nearest/jquery.nearest.js',
3636
'web_editor/static/lib/webgl-image-filter/webgl-image-filter.js',
37+
'web_editor/static/lib/html2canvas.js', # needed for convert_inline.js
3738

3839
# odoo-editor
3940
'web_editor/static/lib/odoo-editor/src/style.css',
File renamed without changes.

debian/copyright

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,6 @@ Files: addons/point_of_sale/models/account_bank_statement.py addons/point_of_sal
205205
Copyright: 2004-2008 PC Solutions (<http://pcsol.be>)
206206
License: LGPL-3+
207207

208-
Files: addons/point_of_sale/static/lib/html2canvas.js
209-
Copyright: 2013 Niklas von Hertzen; 2010 John Resig
210-
License: MIT
211-
212208
Files: addons/pos_epson_printer/static/lib/epos-2.12.0.js
213209
Copyright: Seiko Epson Corporation 2016 - 2019; 2011 LearnBoost <dev@learnboost.com>
214210
License: MIT
@@ -434,6 +430,10 @@ Files: addons/web_editor/static/lib/webgl-image-filter/*
434430
Copyright: 2020 Dominic Szablewski
435431
License: MIT
436432

433+
Files: addons/web_editor/static/lib/html2canvas.js
434+
Copyright: 2013 Niklas von Hertzen; 2010 John Resig
435+
License: MIT
436+
437437
Files: addons/website_event_track/static/lib/idb-keyval/idb-keyval.js
438438
Copyright: 2016 Jake Archibald
439439
License: Apache-2.0

0 commit comments

Comments
 (0)