odoo-addon-stock-lot-image 18.0.1.0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/stock_lot_image/README.rst +97 -0
- odoo/addons/stock_lot_image/__init__.py +1 -0
- odoo/addons/stock_lot_image/__manifest__.py +23 -0
- odoo/addons/stock_lot_image/i18n/es.po +175 -0
- odoo/addons/stock_lot_image/i18n/stock_lot_image.pot +170 -0
- odoo/addons/stock_lot_image/models/__init__.py +2 -0
- odoo/addons/stock_lot_image/models/stock_lot.py +13 -0
- odoo/addons/stock_lot_image/models/stock_lot_image.py +66 -0
- odoo/addons/stock_lot_image/readme/CONTRIBUTORS.md +4 -0
- odoo/addons/stock_lot_image/readme/DESCRIPTION.md +1 -0
- odoo/addons/stock_lot_image/readme/USAGE.md +1 -0
- odoo/addons/stock_lot_image/security/ir.model.access.csv +3 -0
- odoo/addons/stock_lot_image/static/description/icon.png +0 -0
- odoo/addons/stock_lot_image/static/description/index.html +441 -0
- odoo/addons/stock_lot_image/static/src/scss/stock_lot_image_backend.scss +86 -0
- odoo/addons/stock_lot_image/views/stock_lot_image_views.xml +106 -0
- odoo/addons/stock_lot_image/views/stock_lot_views.xml +23 -0
- odoo_addon_stock_lot_image-18.0.1.0.0.2.dist-info/METADATA +113 -0
- odoo_addon_stock_lot_image-18.0.1.0.0.2.dist-info/RECORD +21 -0
- odoo_addon_stock_lot_image-18.0.1.0.0.2.dist-info/WHEEL +5 -0
- odoo_addon_stock_lot_image-18.0.1.0.0.2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,441 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
5
|
+
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
|
|
6
|
+
<title>README.rst</title>
|
|
7
|
+
<style type="text/css">
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
:Author: David Goodger (goodger@python.org)
|
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
|
12
|
+
:Copyright: This stylesheet has been placed in the public domain.
|
|
13
|
+
|
|
14
|
+
Default cascading style sheet for the HTML output of Docutils.
|
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
|
16
|
+
|
|
17
|
+
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
|
18
|
+
customize this style sheet.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/* used to remove borders from tables and images */
|
|
22
|
+
.borderless, table.borderless td, table.borderless th {
|
|
23
|
+
border: 0 }
|
|
24
|
+
|
|
25
|
+
table.borderless td, table.borderless th {
|
|
26
|
+
/* Override padding for "table.docutils td" with "! important".
|
|
27
|
+
The right padding separates the table cells. */
|
|
28
|
+
padding: 0 0.5em 0 0 ! important }
|
|
29
|
+
|
|
30
|
+
.first {
|
|
31
|
+
/* Override more specific margin styles with "! important". */
|
|
32
|
+
margin-top: 0 ! important }
|
|
33
|
+
|
|
34
|
+
.last, .with-subtitle {
|
|
35
|
+
margin-bottom: 0 ! important }
|
|
36
|
+
|
|
37
|
+
.hidden {
|
|
38
|
+
display: none }
|
|
39
|
+
|
|
40
|
+
.subscript {
|
|
41
|
+
vertical-align: sub;
|
|
42
|
+
font-size: smaller }
|
|
43
|
+
|
|
44
|
+
.superscript {
|
|
45
|
+
vertical-align: super;
|
|
46
|
+
font-size: smaller }
|
|
47
|
+
|
|
48
|
+
a.toc-backref {
|
|
49
|
+
text-decoration: none ;
|
|
50
|
+
color: black }
|
|
51
|
+
|
|
52
|
+
blockquote.epigraph {
|
|
53
|
+
margin: 2em 5em ; }
|
|
54
|
+
|
|
55
|
+
dl.docutils dd {
|
|
56
|
+
margin-bottom: 0.5em }
|
|
57
|
+
|
|
58
|
+
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* Uncomment (and remove this text!) to get bold-faced definition list terms
|
|
63
|
+
dl.docutils dt {
|
|
64
|
+
font-weight: bold }
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
div.abstract {
|
|
68
|
+
margin: 2em 5em }
|
|
69
|
+
|
|
70
|
+
div.abstract p.topic-title {
|
|
71
|
+
font-weight: bold ;
|
|
72
|
+
text-align: center }
|
|
73
|
+
|
|
74
|
+
div.admonition, div.attention, div.caution, div.danger, div.error,
|
|
75
|
+
div.hint, div.important, div.note, div.tip, div.warning {
|
|
76
|
+
margin: 2em ;
|
|
77
|
+
border: medium outset ;
|
|
78
|
+
padding: 1em }
|
|
79
|
+
|
|
80
|
+
div.admonition p.admonition-title, div.hint p.admonition-title,
|
|
81
|
+
div.important p.admonition-title, div.note p.admonition-title,
|
|
82
|
+
div.tip p.admonition-title {
|
|
83
|
+
font-weight: bold ;
|
|
84
|
+
font-family: sans-serif }
|
|
85
|
+
|
|
86
|
+
div.attention p.admonition-title, div.caution p.admonition-title,
|
|
87
|
+
div.danger p.admonition-title, div.error p.admonition-title,
|
|
88
|
+
div.warning p.admonition-title, .code .error {
|
|
89
|
+
color: red ;
|
|
90
|
+
font-weight: bold ;
|
|
91
|
+
font-family: sans-serif }
|
|
92
|
+
|
|
93
|
+
/* Uncomment (and remove this text!) to get reduced vertical space in
|
|
94
|
+
compound paragraphs.
|
|
95
|
+
div.compound .compound-first, div.compound .compound-middle {
|
|
96
|
+
margin-bottom: 0.5em }
|
|
97
|
+
|
|
98
|
+
div.compound .compound-last, div.compound .compound-middle {
|
|
99
|
+
margin-top: 0.5em }
|
|
100
|
+
*/
|
|
101
|
+
|
|
102
|
+
div.dedication {
|
|
103
|
+
margin: 2em 5em ;
|
|
104
|
+
text-align: center ;
|
|
105
|
+
font-style: italic }
|
|
106
|
+
|
|
107
|
+
div.dedication p.topic-title {
|
|
108
|
+
font-weight: bold ;
|
|
109
|
+
font-style: normal }
|
|
110
|
+
|
|
111
|
+
div.figure {
|
|
112
|
+
margin-left: 2em ;
|
|
113
|
+
margin-right: 2em }
|
|
114
|
+
|
|
115
|
+
div.footer, div.header {
|
|
116
|
+
clear: both;
|
|
117
|
+
font-size: smaller }
|
|
118
|
+
|
|
119
|
+
div.line-block {
|
|
120
|
+
display: block ;
|
|
121
|
+
margin-top: 1em ;
|
|
122
|
+
margin-bottom: 1em }
|
|
123
|
+
|
|
124
|
+
div.line-block div.line-block {
|
|
125
|
+
margin-top: 0 ;
|
|
126
|
+
margin-bottom: 0 ;
|
|
127
|
+
margin-left: 1.5em }
|
|
128
|
+
|
|
129
|
+
div.sidebar {
|
|
130
|
+
margin: 0 0 0.5em 1em ;
|
|
131
|
+
border: medium outset ;
|
|
132
|
+
padding: 1em ;
|
|
133
|
+
background-color: #ffffee ;
|
|
134
|
+
width: 40% ;
|
|
135
|
+
float: right ;
|
|
136
|
+
clear: right }
|
|
137
|
+
|
|
138
|
+
div.sidebar p.rubric {
|
|
139
|
+
font-family: sans-serif ;
|
|
140
|
+
font-size: medium }
|
|
141
|
+
|
|
142
|
+
div.system-messages {
|
|
143
|
+
margin: 5em }
|
|
144
|
+
|
|
145
|
+
div.system-messages h1 {
|
|
146
|
+
color: red }
|
|
147
|
+
|
|
148
|
+
div.system-message {
|
|
149
|
+
border: medium outset ;
|
|
150
|
+
padding: 1em }
|
|
151
|
+
|
|
152
|
+
div.system-message p.system-message-title {
|
|
153
|
+
color: red ;
|
|
154
|
+
font-weight: bold }
|
|
155
|
+
|
|
156
|
+
div.topic {
|
|
157
|
+
margin: 2em }
|
|
158
|
+
|
|
159
|
+
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
|
160
|
+
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
|
161
|
+
margin-top: 0.4em }
|
|
162
|
+
|
|
163
|
+
h1.title {
|
|
164
|
+
text-align: center }
|
|
165
|
+
|
|
166
|
+
h2.subtitle {
|
|
167
|
+
text-align: center }
|
|
168
|
+
|
|
169
|
+
hr.docutils {
|
|
170
|
+
width: 75% }
|
|
171
|
+
|
|
172
|
+
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
|
173
|
+
clear: left ;
|
|
174
|
+
float: left ;
|
|
175
|
+
margin-right: 1em }
|
|
176
|
+
|
|
177
|
+
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
|
178
|
+
clear: right ;
|
|
179
|
+
float: right ;
|
|
180
|
+
margin-left: 1em }
|
|
181
|
+
|
|
182
|
+
img.align-center, .figure.align-center, object.align-center {
|
|
183
|
+
display: block;
|
|
184
|
+
margin-left: auto;
|
|
185
|
+
margin-right: auto;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
table.align-center {
|
|
189
|
+
margin-left: auto;
|
|
190
|
+
margin-right: auto;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.align-left {
|
|
194
|
+
text-align: left }
|
|
195
|
+
|
|
196
|
+
.align-center {
|
|
197
|
+
clear: both ;
|
|
198
|
+
text-align: center }
|
|
199
|
+
|
|
200
|
+
.align-right {
|
|
201
|
+
text-align: right }
|
|
202
|
+
|
|
203
|
+
/* reset inner alignment in figures */
|
|
204
|
+
div.align-right {
|
|
205
|
+
text-align: inherit }
|
|
206
|
+
|
|
207
|
+
/* div.align-center * { */
|
|
208
|
+
/* text-align: left } */
|
|
209
|
+
|
|
210
|
+
.align-top {
|
|
211
|
+
vertical-align: top }
|
|
212
|
+
|
|
213
|
+
.align-middle {
|
|
214
|
+
vertical-align: middle }
|
|
215
|
+
|
|
216
|
+
.align-bottom {
|
|
217
|
+
vertical-align: bottom }
|
|
218
|
+
|
|
219
|
+
ol.simple, ul.simple {
|
|
220
|
+
margin-bottom: 1em }
|
|
221
|
+
|
|
222
|
+
ol.arabic {
|
|
223
|
+
list-style: decimal }
|
|
224
|
+
|
|
225
|
+
ol.loweralpha {
|
|
226
|
+
list-style: lower-alpha }
|
|
227
|
+
|
|
228
|
+
ol.upperalpha {
|
|
229
|
+
list-style: upper-alpha }
|
|
230
|
+
|
|
231
|
+
ol.lowerroman {
|
|
232
|
+
list-style: lower-roman }
|
|
233
|
+
|
|
234
|
+
ol.upperroman {
|
|
235
|
+
list-style: upper-roman }
|
|
236
|
+
|
|
237
|
+
p.attribution {
|
|
238
|
+
text-align: right ;
|
|
239
|
+
margin-left: 50% }
|
|
240
|
+
|
|
241
|
+
p.caption {
|
|
242
|
+
font-style: italic }
|
|
243
|
+
|
|
244
|
+
p.credits {
|
|
245
|
+
font-style: italic ;
|
|
246
|
+
font-size: smaller }
|
|
247
|
+
|
|
248
|
+
p.label {
|
|
249
|
+
white-space: nowrap }
|
|
250
|
+
|
|
251
|
+
p.rubric {
|
|
252
|
+
font-weight: bold ;
|
|
253
|
+
font-size: larger ;
|
|
254
|
+
color: maroon ;
|
|
255
|
+
text-align: center }
|
|
256
|
+
|
|
257
|
+
p.sidebar-title {
|
|
258
|
+
font-family: sans-serif ;
|
|
259
|
+
font-weight: bold ;
|
|
260
|
+
font-size: larger }
|
|
261
|
+
|
|
262
|
+
p.sidebar-subtitle {
|
|
263
|
+
font-family: sans-serif ;
|
|
264
|
+
font-weight: bold }
|
|
265
|
+
|
|
266
|
+
p.topic-title {
|
|
267
|
+
font-weight: bold }
|
|
268
|
+
|
|
269
|
+
pre.address {
|
|
270
|
+
margin-bottom: 0 ;
|
|
271
|
+
margin-top: 0 ;
|
|
272
|
+
font: inherit }
|
|
273
|
+
|
|
274
|
+
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
275
|
+
margin-left: 2em ;
|
|
276
|
+
margin-right: 2em }
|
|
277
|
+
|
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
|
279
|
+
pre.code, code { background-color: #eeeeee }
|
|
280
|
+
pre.code .comment, code .comment { color: #5C6576 }
|
|
281
|
+
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
|
282
|
+
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
|
283
|
+
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
|
284
|
+
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
|
285
|
+
pre.code .inserted, code .inserted { background-color: #A3D289}
|
|
286
|
+
|
|
287
|
+
span.classifier {
|
|
288
|
+
font-family: sans-serif ;
|
|
289
|
+
font-style: oblique }
|
|
290
|
+
|
|
291
|
+
span.classifier-delimiter {
|
|
292
|
+
font-family: sans-serif ;
|
|
293
|
+
font-weight: bold }
|
|
294
|
+
|
|
295
|
+
span.interpreted {
|
|
296
|
+
font-family: sans-serif }
|
|
297
|
+
|
|
298
|
+
span.option {
|
|
299
|
+
white-space: nowrap }
|
|
300
|
+
|
|
301
|
+
span.pre {
|
|
302
|
+
white-space: pre }
|
|
303
|
+
|
|
304
|
+
span.problematic, pre.problematic {
|
|
305
|
+
color: red }
|
|
306
|
+
|
|
307
|
+
span.section-subtitle {
|
|
308
|
+
/* font-size relative to parent (h1..h6 element) */
|
|
309
|
+
font-size: 80% }
|
|
310
|
+
|
|
311
|
+
table.citation {
|
|
312
|
+
border-left: solid 1px gray;
|
|
313
|
+
margin-left: 1px }
|
|
314
|
+
|
|
315
|
+
table.docinfo {
|
|
316
|
+
margin: 2em 4em }
|
|
317
|
+
|
|
318
|
+
table.docutils {
|
|
319
|
+
margin-top: 0.5em ;
|
|
320
|
+
margin-bottom: 0.5em }
|
|
321
|
+
|
|
322
|
+
table.footnote {
|
|
323
|
+
border-left: solid 1px black;
|
|
324
|
+
margin-left: 1px }
|
|
325
|
+
|
|
326
|
+
table.docutils td, table.docutils th,
|
|
327
|
+
table.docinfo td, table.docinfo th {
|
|
328
|
+
padding-left: 0.5em ;
|
|
329
|
+
padding-right: 0.5em ;
|
|
330
|
+
vertical-align: top }
|
|
331
|
+
|
|
332
|
+
table.docutils th.field-name, table.docinfo th.docinfo-name {
|
|
333
|
+
font-weight: bold ;
|
|
334
|
+
text-align: left ;
|
|
335
|
+
white-space: nowrap ;
|
|
336
|
+
padding-left: 0 }
|
|
337
|
+
|
|
338
|
+
/* "booktabs" style (no vertical lines) */
|
|
339
|
+
table.docutils.booktabs {
|
|
340
|
+
border: 0px;
|
|
341
|
+
border-top: 2px solid;
|
|
342
|
+
border-bottom: 2px solid;
|
|
343
|
+
border-collapse: collapse;
|
|
344
|
+
}
|
|
345
|
+
table.docutils.booktabs * {
|
|
346
|
+
border: 0px;
|
|
347
|
+
}
|
|
348
|
+
table.docutils.booktabs th {
|
|
349
|
+
border-bottom: thin solid;
|
|
350
|
+
text-align: left;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
|
|
354
|
+
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
|
|
355
|
+
font-size: 100% }
|
|
356
|
+
|
|
357
|
+
ul.auto-toc {
|
|
358
|
+
list-style-type: none }
|
|
359
|
+
|
|
360
|
+
</style>
|
|
361
|
+
</head>
|
|
362
|
+
<body>
|
|
363
|
+
<div class="document">
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
|
|
367
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
|
|
368
|
+
</a>
|
|
369
|
+
<div class="section" id="stock-lot-image">
|
|
370
|
+
<h1>Stock Lot Image</h1>
|
|
371
|
+
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
372
|
+
!! This file is generated by oca-gen-addon-readme !!
|
|
373
|
+
!! changes will be overwritten. !!
|
|
374
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
+
!! source digest: sha256:ba4cf576230bd0075168576b472a842d9a171bb5395f52e45145d4bf9fa0b679
|
|
376
|
+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
|
+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_lot_image"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_lot_image"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
|
+
<p>This module adds the ability to define images in a lot (similar to what
|
|
379
|
+
happens with website_sale in products).</p>
|
|
380
|
+
<p><strong>Table of contents</strong></p>
|
|
381
|
+
<div class="contents local topic" id="contents">
|
|
382
|
+
<ul class="simple">
|
|
383
|
+
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
|
|
384
|
+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
|
|
385
|
+
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
|
|
386
|
+
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
|
|
387
|
+
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
|
|
388
|
+
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
|
|
389
|
+
</ul>
|
|
390
|
+
</li>
|
|
391
|
+
</ul>
|
|
392
|
+
</div>
|
|
393
|
+
<div class="section" id="usage">
|
|
394
|
+
<h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
|
|
395
|
+
<p>Go to a lot and in the Images tab you can add linked files.</p>
|
|
396
|
+
</div>
|
|
397
|
+
<div class="section" id="bug-tracker">
|
|
398
|
+
<h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
|
|
399
|
+
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
|
|
400
|
+
In case of trouble, please check there if your issue has already been reported.
|
|
401
|
+
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
402
|
+
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_lot_image%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
|
403
|
+
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
404
|
+
</div>
|
|
405
|
+
<div class="section" id="credits">
|
|
406
|
+
<h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
|
|
407
|
+
<div class="section" id="authors">
|
|
408
|
+
<h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
|
|
409
|
+
<ul class="simple">
|
|
410
|
+
<li>Tecnativa</li>
|
|
411
|
+
</ul>
|
|
412
|
+
</div>
|
|
413
|
+
<div class="section" id="contributors">
|
|
414
|
+
<h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
|
|
415
|
+
<ul class="simple">
|
|
416
|
+
<li><tt class="docutils literal">Tecnativa <span class="pre"><https://www.tecnativa.com></span></tt>_:<ul>
|
|
417
|
+
<li>Pedro M. Baeza</li>
|
|
418
|
+
<li>Víctor Martínez</li>
|
|
419
|
+
</ul>
|
|
420
|
+
</li>
|
|
421
|
+
</ul>
|
|
422
|
+
</div>
|
|
423
|
+
<div class="section" id="maintainers">
|
|
424
|
+
<h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
|
|
425
|
+
<p>This module is maintained by the OCA.</p>
|
|
426
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
|
427
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
|
428
|
+
</a>
|
|
429
|
+
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
430
|
+
mission is to support the collaborative development of Odoo features and
|
|
431
|
+
promote its widespread use.</p>
|
|
432
|
+
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
|
433
|
+
<p><a class="reference external image-reference" href="https://github.com/victoralmau"><img alt="victoralmau" src="https://github.com/victoralmau.png?size=40px" /></a></p>
|
|
434
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_lot_image">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
|
|
435
|
+
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
|
436
|
+
</div>
|
|
437
|
+
</div>
|
|
438
|
+
</div>
|
|
439
|
+
</div>
|
|
440
|
+
</body>
|
|
441
|
+
</html>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// These styles are similar to those added in website_sale, but we don't want to depend on website_sale.
|
|
2
|
+
//website_sale/static/src/scss/website_sale_backend.scss
|
|
3
|
+
.o_stock_lot_image_list .o_kanban_view.o_kanban_ungrouped {
|
|
4
|
+
width: auto;
|
|
5
|
+
|
|
6
|
+
.o_kanban_record {
|
|
7
|
+
flex: 0 1 50%;
|
|
8
|
+
position: relative;
|
|
9
|
+
|
|
10
|
+
@include media-breakpoint-up(md) {
|
|
11
|
+
flex: 0 0 percentage(1/3);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include media-breakpoint-up(lg) {
|
|
15
|
+
flex: 0 0 percentage(1/5);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include media-breakpoint-up(xl) {
|
|
19
|
+
flex: 0 0 percentage(1/6);
|
|
20
|
+
}
|
|
21
|
+
// make the image square and in the center
|
|
22
|
+
.o_squared_image {
|
|
23
|
+
position: relative;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
padding-bottom: 100%;
|
|
26
|
+
> img {
|
|
27
|
+
position: absolute;
|
|
28
|
+
margin: auto;
|
|
29
|
+
top: 0;
|
|
30
|
+
left: 0;
|
|
31
|
+
bottom: 0;
|
|
32
|
+
right: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.o_product_image_size {
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: 0;
|
|
39
|
+
left: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
.o_stock_lot_image_modal {
|
|
44
|
+
.o_stock_lot_image_modal_container {
|
|
45
|
+
border-left: 1px solid map-get($grays, "400");
|
|
46
|
+
|
|
47
|
+
.o_field_image {
|
|
48
|
+
margin-bottom: 0;
|
|
49
|
+
box-shadow: 0 2px 10px map-get($grays, "300");
|
|
50
|
+
|
|
51
|
+
> img {
|
|
52
|
+
border: 1px solid map-get($grays, "400");
|
|
53
|
+
height: 200px;
|
|
54
|
+
width: auto;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.o_video_container {
|
|
59
|
+
height: 200px;
|
|
60
|
+
position: relative;
|
|
61
|
+
@include o-we-preview-box($text-muted);
|
|
62
|
+
.o_invalid_warning {
|
|
63
|
+
width: 90%;
|
|
64
|
+
@include o-position-absolute($top: 50%, $left: 50%);
|
|
65
|
+
transform: translate(-50%, -50%);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//website_sale/static/src/scss/kanban_record.scss
|
|
70
|
+
.o_form_renderer {
|
|
71
|
+
.o_field_x2_many_media_viewer.o_stock_lot_image_list .o_kanban_renderer {
|
|
72
|
+
--KanbanRecord-width: 100px;
|
|
73
|
+
|
|
74
|
+
article.o_kanban_record {
|
|
75
|
+
display: flex;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
margin-bottom: unset !important;
|
|
78
|
+
|
|
79
|
+
& img {
|
|
80
|
+
height: 128px;
|
|
81
|
+
width: 168.86px;
|
|
82
|
+
object-fit: contain;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<odoo>
|
|
3
|
+
<record id="stock_lot_image_view_form" model="ir.ui.view">
|
|
4
|
+
<field name="name">stock.lot.image.form</field>
|
|
5
|
+
<field name="model">stock.lot.image</field>
|
|
6
|
+
<field name="arch" type="xml">
|
|
7
|
+
<form>
|
|
8
|
+
<field name="sequence" invisible="1" />
|
|
9
|
+
<div class="row o_stock_lot_image_modal">
|
|
10
|
+
<div class="col-md-6 col-xl-5">
|
|
11
|
+
<label for="name" string="Image Name" />
|
|
12
|
+
<h2>
|
|
13
|
+
<field name="name" placeholder="Image Name" />
|
|
14
|
+
</h2>
|
|
15
|
+
<label for="video_url" string="Video URL" />
|
|
16
|
+
<br />
|
|
17
|
+
<field name="video_url" />
|
|
18
|
+
<br />
|
|
19
|
+
</div>
|
|
20
|
+
<div
|
|
21
|
+
class="col-md-6 col-xl-7 text-center o_stock_lot_image_modal_container"
|
|
22
|
+
>
|
|
23
|
+
<div class="row">
|
|
24
|
+
<div class="col">
|
|
25
|
+
<field name="image_1920" widget="image" />
|
|
26
|
+
</div>
|
|
27
|
+
<div class="col" invisible="video_url in ['', False]">
|
|
28
|
+
<div class="o_video_container p-2">
|
|
29
|
+
<span>Video Preview</span>
|
|
30
|
+
<field
|
|
31
|
+
name="embed_code"
|
|
32
|
+
class="mt-2"
|
|
33
|
+
widget="video_preview"
|
|
34
|
+
/>
|
|
35
|
+
<h4
|
|
36
|
+
class="o_invalid_warning text-muted text-center"
|
|
37
|
+
invisible="embed_code"
|
|
38
|
+
>
|
|
39
|
+
Please enter a valid Video URL.
|
|
40
|
+
</h4>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</form>
|
|
47
|
+
</field>
|
|
48
|
+
</record>
|
|
49
|
+
<record id="stock_lot_image_view_kanban" model="ir.ui.view">
|
|
50
|
+
<field name="name">stock.lot.image.kanban</field>
|
|
51
|
+
<field name="model">stock.lot.image</field>
|
|
52
|
+
<field name="arch" type="xml">
|
|
53
|
+
<kanban default_order="sequence">
|
|
54
|
+
<field name="video_url" invisible="1" />
|
|
55
|
+
<field name="sequence" widget="handle" />
|
|
56
|
+
<templates>
|
|
57
|
+
<t t-name="card" class="p-0 border-0">
|
|
58
|
+
<div class="card">
|
|
59
|
+
<div class="o_squared_image">
|
|
60
|
+
<field
|
|
61
|
+
class="card-img-top"
|
|
62
|
+
name="image_1920"
|
|
63
|
+
widget="x2_many_image"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
<div
|
|
67
|
+
class="p-2 m-0 bg-200"
|
|
68
|
+
t-attf-title="#{record.name.value}"
|
|
69
|
+
>
|
|
70
|
+
<field
|
|
71
|
+
name="name"
|
|
72
|
+
class="small fs-5 text-truncate d-block"
|
|
73
|
+
/>
|
|
74
|
+
</div>
|
|
75
|
+
<!-- below 100 Kb: good -->
|
|
76
|
+
<t t-if="record.image_1920.raw_value.length < 100*1000">
|
|
77
|
+
<t t-set="size_status" t-value="'text-bg-success'" />
|
|
78
|
+
<t t-set="message">Acceptable file size</t>
|
|
79
|
+
</t>
|
|
80
|
+
<!-- below 1000 Kb: decent -->
|
|
81
|
+
<t
|
|
82
|
+
t-elif="record.image_1920.raw_value.length < 1000*1000"
|
|
83
|
+
>
|
|
84
|
+
<t t-set="size_status" t-value="'text-bg-warning'" />
|
|
85
|
+
<t
|
|
86
|
+
t-set="message"
|
|
87
|
+
>Huge file size. The image should be optimized/reduced.</t>
|
|
88
|
+
</t>
|
|
89
|
+
<!-- above 1000 Kb: bad -->
|
|
90
|
+
<t t-else="1">
|
|
91
|
+
<t t-set="size_status" t-value="'text-bg-danger'" />
|
|
92
|
+
<t
|
|
93
|
+
t-set="message"
|
|
94
|
+
>Optimization required! Reduce the image size or increase your compression settings.</t>
|
|
95
|
+
</t>
|
|
96
|
+
<span
|
|
97
|
+
t-attf-class="badge #{size_status} o_product_image_size"
|
|
98
|
+
t-att-title="message"
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
</t>
|
|
102
|
+
</templates>
|
|
103
|
+
</kanban>
|
|
104
|
+
</field>
|
|
105
|
+
</record>
|
|
106
|
+
</odoo>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
|
2
|
+
<odoo>
|
|
3
|
+
<record id="view_production_lot_form" model="ir.ui.view">
|
|
4
|
+
<field name="model">stock.lot</field>
|
|
5
|
+
<field name="inherit_id" ref="stock.view_production_lot_form" />
|
|
6
|
+
<field name="arch" type="xml">
|
|
7
|
+
<page name="description" position="after">
|
|
8
|
+
<page name="lot_images" string="Images">
|
|
9
|
+
<field
|
|
10
|
+
name="image_ids"
|
|
11
|
+
class="o_stock_lot_image_list"
|
|
12
|
+
context="{'default_name': name}"
|
|
13
|
+
mode="kanban"
|
|
14
|
+
add-label="Add Media"
|
|
15
|
+
nolabel="1"
|
|
16
|
+
widget="x2_many_media_viewer"
|
|
17
|
+
options="{'convert_to_webp': True}"
|
|
18
|
+
/>
|
|
19
|
+
</page>
|
|
20
|
+
</page>
|
|
21
|
+
</field>
|
|
22
|
+
</record>
|
|
23
|
+
</odoo>
|