odoo-addon-shopfloor-mobile 18.0.1.0.0.3__py3-none-any.whl → 18.0.1.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.
Potentially problematic release.
This version of odoo-addon-shopfloor-mobile might be problematic. Click here for more details.
- odoo/addons/shopfloor_mobile/README.rst +96 -83
- odoo/addons/shopfloor_mobile/__manifest__.py +1 -1
- odoo/addons/shopfloor_mobile/readme/CONTRIBUTORS.md +11 -0
- odoo/addons/shopfloor_mobile/readme/CREDITS.md +5 -0
- odoo/addons/shopfloor_mobile/readme/DESCRIPTION.md +30 -0
- odoo/addons/shopfloor_mobile/readme/{HISTORY.rst → HISTORY.md} +1 -2
- odoo/addons/shopfloor_mobile/readme/ROADMAP.md +43 -0
- odoo/addons/shopfloor_mobile/readme/USAGE.md +29 -0
- odoo/addons/shopfloor_mobile/static/description/index.html +44 -38
- odoo/addons/shopfloor_mobile/static/wms/src/components/packaging-qty-picker.esm.js +5 -3
- odoo/addons/shopfloor_mobile/static/wms/src/demo/demo.components.esm.js +118 -0
- odoo/addons/shopfloor_mobile/templates/assets.xml +5 -0
- {odoo_addon_shopfloor_mobile-18.0.1.0.0.3.dist-info → odoo_addon_shopfloor_mobile-18.0.1.0.2.dist-info}/METADATA +97 -84
- {odoo_addon_shopfloor_mobile-18.0.1.0.0.3.dist-info → odoo_addon_shopfloor_mobile-18.0.1.0.2.dist-info}/RECORD +16 -15
- odoo/addons/shopfloor_mobile/readme/CONTRIBUTORS.rst +0 -12
- odoo/addons/shopfloor_mobile/readme/CREDITS.rst +0 -5
- odoo/addons/shopfloor_mobile/readme/DESCRIPTION.rst +0 -31
- odoo/addons/shopfloor_mobile/readme/ROADMAP.rst +0 -29
- odoo/addons/shopfloor_mobile/readme/USAGE.rst +0 -34
- {odoo_addon_shopfloor_mobile-18.0.1.0.0.3.dist-info → odoo_addon_shopfloor_mobile-18.0.1.0.2.dist-info}/WHEEL +0 -0
- {odoo_addon_shopfloor_mobile-18.0.1.0.0.3.dist-info → odoo_addon_shopfloor_mobile-18.0.1.0.2.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ Shopfloor mobile
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:7b316bcbc47f2c8fb5a086a86975e7afe8170beac92441b3dfbd8f2118d92304
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -34,35 +34,35 @@ Shopfloor mobile
|
|
|
34
34
|
|
|
35
35
|
Frontend for Shopfloor app.
|
|
36
36
|
|
|
37
|
-
The work is organized in scenario.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Each scenario is linked to a specific menu item which can be configured in the backend.
|
|
42
|
-
Each scenario drives you through the work to do.
|
|
37
|
+
The work is organized in scenario. A scenario represents a process in
|
|
38
|
+
the warehouse (eg: receive, deliver). The app allows to start each
|
|
39
|
+
process through the main menu.
|
|
43
40
|
|
|
41
|
+
Each scenario is linked to a specific menu item which can be configured
|
|
42
|
+
in the backend. Each scenario drives you through the work to do.
|
|
44
43
|
|
|
45
44
|
Tech details
|
|
46
|
-
|
|
45
|
+
------------
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
and relies on
|
|
50
|
-
(based in turn on
|
|
47
|
+
- This frontend is built on top of `VueJS <vuejs.org>`__ and
|
|
48
|
+
`VuetifyJS <vuetifyjs.com/>`__ and relies on shopfloor module that
|
|
49
|
+
exposes REST API in Odoo (based in turn on
|
|
50
|
+
`base_rest <https://github.com/OCA/rest-framework/tree/13.0/base_rest>`__).
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
- The whole business logic comes from shopfloor module, this module
|
|
53
|
+
takes care of providing a nice and reactive UI to work with.
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
- No Odoo JS is used, no assets machinery used.
|
|
56
56
|
|
|
57
57
|
Static assets are loaded straight, served by a specific controller.
|
|
58
58
|
This app is a Single Page App, hence resources are loaded only once.
|
|
59
59
|
|
|
60
|
-
The version of the module appended to the URL of each resources
|
|
61
|
-
|
|
60
|
+
The version of the module appended to the URL of each resources makes
|
|
61
|
+
sure it's not cached when the version changes.
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
with pure JS demo data, without interacting with
|
|
65
|
-
Nothing to deal with Odoo demo data.
|
|
63
|
+
- When developing you can use a demo mode which allows to define
|
|
64
|
+
interactive scenario with pure JS demo data, without interacting with
|
|
65
|
+
Odoo. Nothing to deal with Odoo demo data.
|
|
66
66
|
|
|
67
67
|
**Table of contents**
|
|
68
68
|
|
|
@@ -73,78 +73,92 @@ Usage
|
|
|
73
73
|
=====
|
|
74
74
|
|
|
75
75
|
Pre-requisites
|
|
76
|
-
|
|
76
|
+
--------------
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
- Your Odoo instance is accessible via mobile device
|
|
79
|
+
- You have an API Key configured
|
|
80
80
|
|
|
81
81
|
Start the app
|
|
82
|
-
|
|
82
|
+
-------------
|
|
83
83
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
- Go to "Inventory -> Configuration -> Shopfloor -> Shopfloor App"
|
|
85
|
+
- In the login screen fill in your API key
|
|
86
|
+
- Hit "Login"
|
|
87
87
|
|
|
88
88
|
Select a profile
|
|
89
|
-
|
|
89
|
+
----------------
|
|
90
90
|
|
|
91
|
-
Several profiles can be configured in the backend,
|
|
92
|
-
|
|
91
|
+
Several profiles can be configured in the backend, you must choose one
|
|
92
|
+
before starting.
|
|
93
93
|
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
- Tap on "Configure profile"
|
|
95
|
+
- Select a profile
|
|
96
96
|
|
|
97
97
|
This will load all available menu items for the selected profile.
|
|
98
98
|
|
|
99
99
|
Change language
|
|
100
|
-
|
|
100
|
+
---------------
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
- Go to "Settings -> Language"
|
|
103
|
+
- Select a language
|
|
104
104
|
|
|
105
105
|
Customization
|
|
106
|
-
|
|
106
|
+
-------------
|
|
107
107
|
|
|
108
|
-
Please refer to
|
|
108
|
+
Please refer to shopfloor_mobile_custom_example.
|
|
109
109
|
|
|
110
110
|
Known issues / Roadmap
|
|
111
111
|
======================
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
This
|
|
140
|
-
|
|
141
|
-
|
|
113
|
+
- Split module by scenario
|
|
114
|
+
|
|
115
|
+
- Improve documentation and demo data
|
|
116
|
+
|
|
117
|
+
- Document each component
|
|
118
|
+
|
|
119
|
+
- Document demo mode
|
|
120
|
+
|
|
121
|
+
- Find / create a nice icon
|
|
122
|
+
|
|
123
|
+
- Finish base translations (move all UI strings to translatable terms)
|
|
124
|
+
|
|
125
|
+
- Use SCSS
|
|
126
|
+
|
|
127
|
+
- Refactor states definition
|
|
128
|
+
|
|
129
|
+
States are now part of the scenario data. They should be specific
|
|
130
|
+
objects with their own class. They should also provide all the actions
|
|
131
|
+
that should be displayed w/ their handlers when needed. Actions can be
|
|
132
|
+
popup actions or buttons at the bottom of the screen. The tricky part
|
|
133
|
+
here could be how to register this states for the given component.
|
|
134
|
+
Today states have access to the full object of the scenario component
|
|
135
|
+
as they are part of it. \_get_state_spec could probably lookup for
|
|
136
|
+
registered states (eg: when you register a component in the registry
|
|
137
|
+
you should provide states as well). When we'll have states in this
|
|
138
|
+
fashion we should also consider if they should provide their own
|
|
139
|
+
template. This way the component template will hold only the generic
|
|
140
|
+
bits of the scenario.
|
|
141
|
+
|
|
142
|
+
- Back buttons should be smarter
|
|
143
|
+
|
|
144
|
+
In some cases getting back using history is fine but very often this
|
|
145
|
+
could lead to outdated data display. To mitigate this in particular
|
|
146
|
+
scenario's steps, custom handlers for the back action have been
|
|
147
|
+
implemented. For instance, in cluster_picking when you hit back on
|
|
148
|
+
manual selection it forces the state to go to start and reload. For
|
|
149
|
+
starting we should provide on_back property to all states where we
|
|
150
|
+
want to display it (no more specific check on the state to display
|
|
151
|
+
this button). This part is also related to "Refactor states
|
|
152
|
+
definition".
|
|
153
|
+
|
|
154
|
+
- Go through \_.forEach and similar calls to replace them w/ vanilla JS
|
|
155
|
+
(eg: .map())
|
|
142
156
|
|
|
143
157
|
Changelog
|
|
144
158
|
=========
|
|
145
159
|
|
|
146
160
|
13.0.1.0.0
|
|
147
|
-
|
|
161
|
+
----------
|
|
148
162
|
|
|
149
163
|
First official version.
|
|
150
164
|
|
|
@@ -162,39 +176,38 @@ Credits
|
|
|
162
176
|
=======
|
|
163
177
|
|
|
164
178
|
Authors
|
|
165
|
-
|
|
179
|
+
-------
|
|
166
180
|
|
|
167
181
|
* Camptocamp
|
|
168
182
|
* BCIM
|
|
169
183
|
* Akretion
|
|
170
184
|
|
|
171
185
|
Contributors
|
|
172
|
-
|
|
186
|
+
------------
|
|
173
187
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
- Simone Orsi <simahawk@gmail.com>
|
|
189
|
+
- Thierry Ducrest <thierry.ducrest@camptocamp.com>
|
|
190
|
+
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
|
191
|
+
- Raphaël Reverdy <raphael.reverdy@akretion.com>
|
|
192
|
+
- Sébastien Beau <sebastien.beau@akretion.com>
|
|
193
|
+
- Jacques-Etienne Baudoux <je@bcim.be>
|
|
180
194
|
|
|
181
|
-
Design
|
|
182
|
-
~~~~~~
|
|
195
|
+
**Design**
|
|
183
196
|
|
|
184
|
-
|
|
185
|
-
|
|
197
|
+
- Joël Grand-Guillaume <joel.grandguillaume@camptocamp.com>
|
|
198
|
+
- Jacques-Etienne Baudoux <je@bcim.be>
|
|
186
199
|
|
|
187
200
|
Other credits
|
|
188
|
-
|
|
201
|
+
-------------
|
|
189
202
|
|
|
190
203
|
**Financial support**
|
|
191
204
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
205
|
+
- Cosanum
|
|
206
|
+
- Camptocamp R&D
|
|
207
|
+
- Akretion R&D
|
|
195
208
|
|
|
196
209
|
Maintainers
|
|
197
|
-
|
|
210
|
+
-----------
|
|
198
211
|
|
|
199
212
|
This module is maintained by the OCA.
|
|
200
213
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
{
|
|
6
6
|
"name": "Shopfloor mobile",
|
|
7
7
|
"summary": "Mobile frontend for WMS Shopfloor app",
|
|
8
|
-
"version": "18.0.1.0.
|
|
8
|
+
"version": "18.0.1.0.2",
|
|
9
9
|
"depends": ["shopfloor", "shopfloor_mobile_base"],
|
|
10
10
|
"author": "Camptocamp, BCIM, Akretion, Odoo Community Association (OCA)",
|
|
11
11
|
"maintainers": ["simahawk"],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
- Simone Orsi \<<simahawk@gmail.com>\>
|
|
2
|
+
- Thierry Ducrest \<<thierry.ducrest@camptocamp.com>\>
|
|
3
|
+
- Guewen Baconnier \<<guewen.baconnier@camptocamp.com>\>
|
|
4
|
+
- Raphaël Reverdy \<<raphael.reverdy@akretion.com>\>
|
|
5
|
+
- Sébastien Beau \<<sebastien.beau@akretion.com>\>
|
|
6
|
+
- Jacques-Etienne Baudoux \<<je@bcim.be>\>
|
|
7
|
+
|
|
8
|
+
**Design**
|
|
9
|
+
|
|
10
|
+
- Joël Grand-Guillaume \<<joel.grandguillaume@camptocamp.com>\>
|
|
11
|
+
- Jacques-Etienne Baudoux \<<je@bcim.be>\>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Frontend for Shopfloor app.
|
|
2
|
+
|
|
3
|
+
The work is organized in scenario. A scenario represents a process in
|
|
4
|
+
the warehouse (eg: receive, deliver). The app allows to start each
|
|
5
|
+
process through the main menu.
|
|
6
|
+
|
|
7
|
+
Each scenario is linked to a specific menu item which can be configured
|
|
8
|
+
in the backend. Each scenario drives you through the work to do.
|
|
9
|
+
|
|
10
|
+
## Tech details
|
|
11
|
+
|
|
12
|
+
- This frontend is built on top of [VueJS](vuejs.org) and
|
|
13
|
+
[VuetifyJS](vuetifyjs.com/) and relies on shopfloor module that
|
|
14
|
+
exposes REST API in Odoo (based in turn on
|
|
15
|
+
[base_rest](https://github.com/OCA/rest-framework/tree/13.0/base_rest)).
|
|
16
|
+
|
|
17
|
+
- The whole business logic comes from shopfloor module, this module
|
|
18
|
+
takes care of providing a nice and reactive UI to work with.
|
|
19
|
+
|
|
20
|
+
- No Odoo JS is used, no assets machinery used.
|
|
21
|
+
|
|
22
|
+
Static assets are loaded straight, served by a specific controller.
|
|
23
|
+
This app is a Single Page App, hence resources are loaded only once.
|
|
24
|
+
|
|
25
|
+
The version of the module appended to the URL of each resources makes
|
|
26
|
+
sure it's not cached when the version changes.
|
|
27
|
+
|
|
28
|
+
- When developing you can use a demo mode which allows to define
|
|
29
|
+
interactive scenario with pure JS demo data, without interacting with
|
|
30
|
+
Odoo. Nothing to deal with Odoo demo data.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
- Split module by scenario
|
|
2
|
+
|
|
3
|
+
- Improve documentation and demo data
|
|
4
|
+
|
|
5
|
+
- Document each component
|
|
6
|
+
|
|
7
|
+
- Document demo mode
|
|
8
|
+
|
|
9
|
+
- Find / create a nice icon
|
|
10
|
+
|
|
11
|
+
- Finish base translations (move all UI strings to translatable terms)
|
|
12
|
+
|
|
13
|
+
- Use SCSS
|
|
14
|
+
|
|
15
|
+
- Refactor states definition
|
|
16
|
+
|
|
17
|
+
States are now part of the scenario data. They should be specific
|
|
18
|
+
objects with their own class. They should also provide all the actions
|
|
19
|
+
that should be displayed w/ their handlers when needed. Actions can be
|
|
20
|
+
popup actions or buttons at the bottom of the screen. The tricky part
|
|
21
|
+
here could be how to register this states for the given component.
|
|
22
|
+
Today states have access to the full object of the scenario component
|
|
23
|
+
as they are part of it. \_get_state_spec could probably lookup for
|
|
24
|
+
registered states (eg: when you register a component in the registry
|
|
25
|
+
you should provide states as well). When we'll have states in this
|
|
26
|
+
fashion we should also consider if they should provide their own
|
|
27
|
+
template. This way the component template will hold only the generic
|
|
28
|
+
bits of the scenario.
|
|
29
|
+
|
|
30
|
+
- Back buttons should be smarter
|
|
31
|
+
|
|
32
|
+
In some cases getting back using history is fine but very often this
|
|
33
|
+
could lead to outdated data display. To mitigate this in particular
|
|
34
|
+
scenario's steps, custom handlers for the back action have been
|
|
35
|
+
implemented. For instance, in cluster_picking when you hit back on
|
|
36
|
+
manual selection it forces the state to go to start and reload. For
|
|
37
|
+
starting we should provide on_back property to all states where we
|
|
38
|
+
want to display it (no more specific check on the state to display
|
|
39
|
+
this button). This part is also related to "Refactor states
|
|
40
|
+
definition".
|
|
41
|
+
|
|
42
|
+
- Go through \_.forEach and similar calls to replace them w/ vanilla JS
|
|
43
|
+
(eg: .map())
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
## Pre-requisites
|
|
2
|
+
|
|
3
|
+
- Your Odoo instance is accessible via mobile device
|
|
4
|
+
- You have an API Key configured
|
|
5
|
+
|
|
6
|
+
## Start the app
|
|
7
|
+
|
|
8
|
+
- Go to "Inventory -\> Configuration -\> Shopfloor -\> Shopfloor App"
|
|
9
|
+
- In the login screen fill in your API key
|
|
10
|
+
- Hit "Login"
|
|
11
|
+
|
|
12
|
+
## Select a profile
|
|
13
|
+
|
|
14
|
+
Several profiles can be configured in the backend, you must choose one
|
|
15
|
+
before starting.
|
|
16
|
+
|
|
17
|
+
- Tap on "Configure profile"
|
|
18
|
+
- Select a profile
|
|
19
|
+
|
|
20
|
+
This will load all available menu items for the selected profile.
|
|
21
|
+
|
|
22
|
+
## Change language
|
|
23
|
+
|
|
24
|
+
- Go to "Settings -\> Language"
|
|
25
|
+
- Select a language
|
|
26
|
+
|
|
27
|
+
## Customization
|
|
28
|
+
|
|
29
|
+
Please refer to shopfloor_mobile_custom_example.
|
|
@@ -372,34 +372,35 @@ ul.auto-toc {
|
|
|
372
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
373
373
|
!! changes will be overwritten. !!
|
|
374
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:7b316bcbc47f2c8fb5a086a86975e7afe8170beac92441b3dfbd8f2118d92304
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
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-shopfloor/tree/18.0/shopfloor_mobile"><img alt="OCA/stock-logistics-shopfloor" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--shopfloor-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-shopfloor-18-0/stock-logistics-shopfloor-18-0-shopfloor_mobile"><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-shopfloor&target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
378
|
<p>Frontend for Shopfloor app.</p>
|
|
379
|
-
<p>The work is organized in scenario.
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
<p>Each scenario is linked to a specific menu item which can be configured
|
|
383
|
-
Each scenario drives you through the work to do.</p>
|
|
379
|
+
<p>The work is organized in scenario. A scenario represents a process in
|
|
380
|
+
the warehouse (eg: receive, deliver). The app allows to start each
|
|
381
|
+
process through the main menu.</p>
|
|
382
|
+
<p>Each scenario is linked to a specific menu item which can be configured
|
|
383
|
+
in the backend. Each scenario drives you through the work to do.</p>
|
|
384
384
|
<div class="section" id="tech-details">
|
|
385
385
|
<h2>Tech details</h2>
|
|
386
386
|
<ul>
|
|
387
|
-
<li><p class="first">This frontend is built on top of <a class="reference external" href="vuejs.org">VueJS</a>
|
|
388
|
-
|
|
389
|
-
(based in turn on
|
|
387
|
+
<li><p class="first">This frontend is built on top of <a class="reference external" href="vuejs.org">VueJS</a> and
|
|
388
|
+
<a class="reference external" href="vuetifyjs.com/">VuetifyJS</a> and relies on shopfloor module that
|
|
389
|
+
exposes REST API in Odoo (based in turn on
|
|
390
|
+
<a class="reference external" href="https://github.com/OCA/rest-framework/tree/13.0/base_rest">base_rest</a>).</p>
|
|
390
391
|
</li>
|
|
391
|
-
<li><p class="first">The whole business logic comes from
|
|
392
|
-
|
|
392
|
+
<li><p class="first">The whole business logic comes from shopfloor module, this module
|
|
393
|
+
takes care of providing a nice and reactive UI to work with.</p>
|
|
393
394
|
</li>
|
|
394
395
|
<li><p class="first">No Odoo JS is used, no assets machinery used.</p>
|
|
395
396
|
<p>Static assets are loaded straight, served by a specific controller.
|
|
396
397
|
This app is a Single Page App, hence resources are loaded only once.</p>
|
|
397
|
-
<p>The version of the module appended to the URL of each resources
|
|
398
|
-
|
|
398
|
+
<p>The version of the module appended to the URL of each resources makes
|
|
399
|
+
sure it’s not cached when the version changes.</p>
|
|
399
400
|
</li>
|
|
400
|
-
<li><p class="first">When developing you can use a demo mode which allows to define
|
|
401
|
-
with pure JS demo data, without interacting with
|
|
402
|
-
Nothing to deal with Odoo demo data.</p>
|
|
401
|
+
<li><p class="first">When developing you can use a demo mode which allows to define
|
|
402
|
+
interactive scenario with pure JS demo data, without interacting with
|
|
403
|
+
Odoo. Nothing to deal with Odoo demo data.</p>
|
|
403
404
|
</li>
|
|
404
405
|
</ul>
|
|
405
406
|
<p><strong>Table of contents</strong></p>
|
|
@@ -429,8 +430,8 @@ Nothing to deal with Odoo demo data.</p>
|
|
|
429
430
|
</div>
|
|
430
431
|
<div class="section" id="select-a-profile">
|
|
431
432
|
<h2>Select a profile</h2>
|
|
432
|
-
<p>Several profiles can be configured in the backend,
|
|
433
|
-
|
|
433
|
+
<p>Several profiles can be configured in the backend, you must choose one
|
|
434
|
+
before starting.</p>
|
|
434
435
|
<ul class="simple">
|
|
435
436
|
<li>Tap on “Configure profile”</li>
|
|
436
437
|
<li>Select a profile</li>
|
|
@@ -446,7 +447,7 @@ you must choose one before starting.</p>
|
|
|
446
447
|
</div>
|
|
447
448
|
<div class="section" id="customization">
|
|
448
449
|
<h2>Customization</h2>
|
|
449
|
-
<p>Please refer to
|
|
450
|
+
<p>Please refer to shopfloor_mobile_custom_example.</p>
|
|
450
451
|
<div class="section" id="known-issues-roadmap">
|
|
451
452
|
<h3>Known issues / Roadmap</h3>
|
|
452
453
|
<ul>
|
|
@@ -465,25 +466,32 @@ you must choose one before starting.</p>
|
|
|
465
466
|
<li><p class="first">Use SCSS</p>
|
|
466
467
|
</li>
|
|
467
468
|
<li><p class="first">Refactor states definition</p>
|
|
468
|
-
<p>States are now part of the scenario data. They should be specific
|
|
469
|
-
They should also provide all the actions
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
469
|
+
<p>States are now part of the scenario data. They should be specific
|
|
470
|
+
objects with their own class. They should also provide all the actions
|
|
471
|
+
that should be displayed w/ their handlers when needed. Actions can be
|
|
472
|
+
popup actions or buttons at the bottom of the screen. The tricky part
|
|
473
|
+
here could be how to register this states for the given component.
|
|
474
|
+
Today states have access to the full object of the scenario component
|
|
475
|
+
as they are part of it. _get_state_spec could probably lookup for
|
|
476
|
+
registered states (eg: when you register a component in the registry
|
|
477
|
+
you should provide states as well). When we’ll have states in this
|
|
478
|
+
fashion we should also consider if they should provide their own
|
|
479
|
+
template. This way the component template will hold only the generic
|
|
480
|
+
bits of the scenario.</p>
|
|
477
481
|
</li>
|
|
478
482
|
<li><p class="first">Back buttons should be smarter</p>
|
|
479
|
-
<p>In some cases getting back using history is fine but very often this
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
For
|
|
483
|
-
|
|
484
|
-
|
|
483
|
+
<p>In some cases getting back using history is fine but very often this
|
|
484
|
+
could lead to outdated data display. To mitigate this in particular
|
|
485
|
+
scenario’s steps, custom handlers for the back action have been
|
|
486
|
+
implemented. For instance, in cluster_picking when you hit back on
|
|
487
|
+
manual selection it forces the state to go to start and reload. For
|
|
488
|
+
starting we should provide on_back property to all states where we
|
|
489
|
+
want to display it (no more specific check on the state to display
|
|
490
|
+
this button). This part is also related to “Refactor states
|
|
491
|
+
definition”.</p>
|
|
485
492
|
</li>
|
|
486
|
-
<li><p class="first">Go through
|
|
493
|
+
<li><p class="first">Go through _.forEach and similar calls to replace them w/ vanilla JS
|
|
494
|
+
(eg: .map())</p>
|
|
487
495
|
</li>
|
|
488
496
|
</ul>
|
|
489
497
|
</div>
|
|
@@ -524,9 +532,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
524
532
|
<li>Sébastien Beau <<a class="reference external" href="mailto:sebastien.beau@akretion.com">sebastien.beau@akretion.com</a>></li>
|
|
525
533
|
<li>Jacques-Etienne Baudoux <<a class="reference external" href="mailto:je@bcim.be">je@bcim.be</a>></li>
|
|
526
534
|
</ul>
|
|
527
|
-
</
|
|
528
|
-
<div class="section" id="design">
|
|
529
|
-
<h2>Design</h2>
|
|
535
|
+
<p><strong>Design</strong></p>
|
|
530
536
|
<ul class="simple">
|
|
531
537
|
<li>Joël Grand-Guillaume <<a class="reference external" href="mailto:joel.grandguillaume@camptocamp.com">joel.grandguillaume@camptocamp.com</a>></li>
|
|
532
538
|
<li>Jacques-Etienne Baudoux <<a class="reference external" href="mailto:je@bcim.be">je@bcim.be</a>></li>
|
|
@@ -89,11 +89,13 @@ export var PackagingQtyPickerMixin = {
|
|
|
89
89
|
_product_qty_by_packaging: function (pkg_by_qty, qty) {
|
|
90
90
|
const self = this;
|
|
91
91
|
const res = {};
|
|
92
|
+
/* eslint-disable no-param-reassign */
|
|
92
93
|
// Const min_unit = _.last(pkg_by_qty);
|
|
93
94
|
pkg_by_qty.forEach(function (pkg) {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
let qty_per_pkg = 0;
|
|
96
|
+
[qty_per_pkg, qty] = self._qty_by_pkg(pkg.qty, qty);
|
|
97
|
+
res[pkg.id] = qty_per_pkg;
|
|
98
|
+
if (!qty) return;
|
|
97
99
|
});
|
|
98
100
|
return res;
|
|
99
101
|
},
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2025 Camptocamp SA (http://www.camptocamp.com)
|
|
3
|
+
* @author Simone Orsi <simahawk@gmail.com>
|
|
4
|
+
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import {ScenarioBaseMixin} from "/shopfloor_mobile_base/static/src/scenario/mixins.esm.js";
|
|
8
|
+
import {process_registry} from "/shopfloor_mobile_base/static/src/services/process_registry.esm.js";
|
|
9
|
+
import {demotools} from "/shopfloor_mobile_base/static/src/demo/demo.core.esm.js";
|
|
10
|
+
|
|
11
|
+
const DemoComponents = {
|
|
12
|
+
mixins: [ScenarioBaseMixin],
|
|
13
|
+
template: `
|
|
14
|
+
<Screen :screen_info="screen_info">
|
|
15
|
+
<template v-slot:header>
|
|
16
|
+
<state-display-info :info="state.display_info" v-if="state.display_info"/>
|
|
17
|
+
</template>
|
|
18
|
+
<div v-if="state_is('packaging_qty_picker_display')"">
|
|
19
|
+
<separator-title>Only qty to pick</separator-title>
|
|
20
|
+
<v-card
|
|
21
|
+
v-for="line in packaging_qty_picker_display_get_lines()">
|
|
22
|
+
<packaging-qty-picker-display
|
|
23
|
+
:key="make_state_component_key(['qty-picker-widget', line.id])"
|
|
24
|
+
v-bind="utils.wms.move_line_qty_picker_props(line, {'qtyInit': line.quantity})"
|
|
25
|
+
/>
|
|
26
|
+
</v-card>
|
|
27
|
+
<separator-title>All corresponding packaging</separator-title>
|
|
28
|
+
<v-card
|
|
29
|
+
v-for="line in packaging_qty_picker_display_get_lines()">
|
|
30
|
+
<packaging-qty-picker-display
|
|
31
|
+
:nonZeroOnly="false"
|
|
32
|
+
:key="make_state_component_key(['qty-picker-widget', line.id])"
|
|
33
|
+
v-bind="utils.wms.move_line_qty_picker_props(line, {'qtyInit': line.quantity})"
|
|
34
|
+
/>
|
|
35
|
+
</v-card>
|
|
36
|
+
</div>
|
|
37
|
+
<div v-if="state_is('packaging_qty_picker_edit')">
|
|
38
|
+
<separator-title>Edit mode</separator-title>
|
|
39
|
+
<v-card
|
|
40
|
+
v-for="line in packaging_qty_picker_display_get_lines()">
|
|
41
|
+
<packaging-qty-picker
|
|
42
|
+
:key="make_state_component_key(['qty-picker-widget', line.id])"
|
|
43
|
+
v-bind="utils.wms.move_line_qty_picker_props(line, {'qtyInit': line.quantity})"
|
|
44
|
+
/>
|
|
45
|
+
</v-card>
|
|
46
|
+
</div>
|
|
47
|
+
<div class="button-list button-vertical-list full">
|
|
48
|
+
<v-row align="center" v-if="state_is('packaging_qty_picker_display')">
|
|
49
|
+
<v-col class="text-center" cols="12">
|
|
50
|
+
<btn-action @click="state_to('packaging_qty_picker_edit')">Edit mode</btn-action>
|
|
51
|
+
</v-col>
|
|
52
|
+
</v-row>
|
|
53
|
+
<v-row align="center" v-if="state_is('packaging_qty_picker_edit')">
|
|
54
|
+
<v-col class="text-center" cols="12">
|
|
55
|
+
<btn-action @click="state_to('packaging_qty_picker_display')">Display mode</btn-action>
|
|
56
|
+
</v-col>
|
|
57
|
+
</v-row>
|
|
58
|
+
</div>
|
|
59
|
+
</Screen>
|
|
60
|
+
`,
|
|
61
|
+
data: function () {
|
|
62
|
+
return {
|
|
63
|
+
usage: "demo_components",
|
|
64
|
+
initial_state_key: "packaging_qty_picker_display",
|
|
65
|
+
states: {
|
|
66
|
+
packaging_qty_picker_display: {
|
|
67
|
+
display_info: {
|
|
68
|
+
title: "Packaging Qty Picker Display",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
packaging_qty_picker_edit: {
|
|
72
|
+
display_info: {
|
|
73
|
+
title: "Packaging Qty Picker Edit",
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
methods: {
|
|
80
|
+
packaging_qty_picker_display_get_lines: function () {
|
|
81
|
+
const lines = [];
|
|
82
|
+
const product1 = demotools.makeProduct({uom: demotools.uom_unit});
|
|
83
|
+
product1.packaging = [
|
|
84
|
+
demotools.makePackaging({qty: 5, code: "TU", name: "Pack of 5"}),
|
|
85
|
+
demotools.makePackaging({qty: 10, code: "BX", name: "Box of 10"}),
|
|
86
|
+
demotools.makePackaging({qty: 20, code: "BBX", name: "Big Box of 20"}),
|
|
87
|
+
];
|
|
88
|
+
const line1 = demotools.makeMoveLine({
|
|
89
|
+
// This should be represented as: 1001 units (50 BBX, 1 TU, 1 unit)
|
|
90
|
+
quantity: 1006,
|
|
91
|
+
product: product1,
|
|
92
|
+
});
|
|
93
|
+
lines.push(line1);
|
|
94
|
+
return lines;
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
process_registry.add("demo_components", DemoComponents);
|
|
99
|
+
|
|
100
|
+
const menuitem_id = demotools.addAppMenu(
|
|
101
|
+
{
|
|
102
|
+
name: "Demo components",
|
|
103
|
+
scenario: "demo_components",
|
|
104
|
+
sequence: 999,
|
|
105
|
+
},
|
|
106
|
+
"demo_cp_1"
|
|
107
|
+
);
|
|
108
|
+
const CASE = {
|
|
109
|
+
demo_components: {
|
|
110
|
+
next_state: "demo_components",
|
|
111
|
+
data: {
|
|
112
|
+
demo_components: {},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
demotools.add_case("demo_components", menuitem_id, CASE);
|
|
117
|
+
|
|
118
|
+
export default DemoComponents;
|
|
@@ -175,6 +175,11 @@
|
|
|
175
175
|
t-attf-src="/shopfloor_mobile/static/wms/src/demo/demo.location_content_transfer.esm.js?v=#{mod_version}"
|
|
176
176
|
type="module"
|
|
177
177
|
/>
|
|
178
|
+
<script
|
|
179
|
+
id="script_demo_components"
|
|
180
|
+
t-attf-src="/shopfloor_mobile/static/wms/src/demo/demo.components.esm.js?v=#{mod_version}"
|
|
181
|
+
type="module"
|
|
182
|
+
/>
|
|
178
183
|
</xpath>
|
|
179
184
|
</template>
|
|
180
185
|
</odoo>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-shopfloor_mobile
|
|
3
|
-
Version: 18.0.1.0.
|
|
3
|
+
Version: 18.0.1.0.2
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo-addon-shopfloor==18.0.*
|
|
6
6
|
Requires-Dist: odoo-addon-shopfloor_mobile_base==18.0.*
|
|
@@ -29,7 +29,7 @@ Shopfloor mobile
|
|
|
29
29
|
!! This file is generated by oca-gen-addon-readme !!
|
|
30
30
|
!! changes will be overwritten. !!
|
|
31
31
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
32
|
-
!! source digest: sha256:
|
|
32
|
+
!! source digest: sha256:7b316bcbc47f2c8fb5a086a86975e7afe8170beac92441b3dfbd8f2118d92304
|
|
33
33
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
34
34
|
|
|
35
35
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -52,35 +52,35 @@ Shopfloor mobile
|
|
|
52
52
|
|
|
53
53
|
Frontend for Shopfloor app.
|
|
54
54
|
|
|
55
|
-
The work is organized in scenario.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Each scenario is linked to a specific menu item which can be configured in the backend.
|
|
60
|
-
Each scenario drives you through the work to do.
|
|
55
|
+
The work is organized in scenario. A scenario represents a process in
|
|
56
|
+
the warehouse (eg: receive, deliver). The app allows to start each
|
|
57
|
+
process through the main menu.
|
|
61
58
|
|
|
59
|
+
Each scenario is linked to a specific menu item which can be configured
|
|
60
|
+
in the backend. Each scenario drives you through the work to do.
|
|
62
61
|
|
|
63
62
|
Tech details
|
|
64
|
-
|
|
63
|
+
------------
|
|
65
64
|
|
|
66
|
-
|
|
67
|
-
and relies on
|
|
68
|
-
(based in turn on
|
|
65
|
+
- This frontend is built on top of `VueJS <vuejs.org>`__ and
|
|
66
|
+
`VuetifyJS <vuetifyjs.com/>`__ and relies on shopfloor module that
|
|
67
|
+
exposes REST API in Odoo (based in turn on
|
|
68
|
+
`base_rest <https://github.com/OCA/rest-framework/tree/13.0/base_rest>`__).
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
- The whole business logic comes from shopfloor module, this module
|
|
71
|
+
takes care of providing a nice and reactive UI to work with.
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
- No Odoo JS is used, no assets machinery used.
|
|
74
74
|
|
|
75
75
|
Static assets are loaded straight, served by a specific controller.
|
|
76
76
|
This app is a Single Page App, hence resources are loaded only once.
|
|
77
77
|
|
|
78
|
-
The version of the module appended to the URL of each resources
|
|
79
|
-
|
|
78
|
+
The version of the module appended to the URL of each resources makes
|
|
79
|
+
sure it's not cached when the version changes.
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
with pure JS demo data, without interacting with
|
|
83
|
-
Nothing to deal with Odoo demo data.
|
|
81
|
+
- When developing you can use a demo mode which allows to define
|
|
82
|
+
interactive scenario with pure JS demo data, without interacting with
|
|
83
|
+
Odoo. Nothing to deal with Odoo demo data.
|
|
84
84
|
|
|
85
85
|
**Table of contents**
|
|
86
86
|
|
|
@@ -91,78 +91,92 @@ Usage
|
|
|
91
91
|
=====
|
|
92
92
|
|
|
93
93
|
Pre-requisites
|
|
94
|
-
|
|
94
|
+
--------------
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
- Your Odoo instance is accessible via mobile device
|
|
97
|
+
- You have an API Key configured
|
|
98
98
|
|
|
99
99
|
Start the app
|
|
100
|
-
|
|
100
|
+
-------------
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
- Go to "Inventory -> Configuration -> Shopfloor -> Shopfloor App"
|
|
103
|
+
- In the login screen fill in your API key
|
|
104
|
+
- Hit "Login"
|
|
105
105
|
|
|
106
106
|
Select a profile
|
|
107
|
-
|
|
107
|
+
----------------
|
|
108
108
|
|
|
109
|
-
Several profiles can be configured in the backend,
|
|
110
|
-
|
|
109
|
+
Several profiles can be configured in the backend, you must choose one
|
|
110
|
+
before starting.
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
- Tap on "Configure profile"
|
|
113
|
+
- Select a profile
|
|
114
114
|
|
|
115
115
|
This will load all available menu items for the selected profile.
|
|
116
116
|
|
|
117
117
|
Change language
|
|
118
|
-
|
|
118
|
+
---------------
|
|
119
119
|
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
- Go to "Settings -> Language"
|
|
121
|
+
- Select a language
|
|
122
122
|
|
|
123
123
|
Customization
|
|
124
|
-
|
|
124
|
+
-------------
|
|
125
125
|
|
|
126
|
-
Please refer to
|
|
126
|
+
Please refer to shopfloor_mobile_custom_example.
|
|
127
127
|
|
|
128
128
|
Known issues / Roadmap
|
|
129
129
|
======================
|
|
130
130
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
This
|
|
158
|
-
|
|
159
|
-
|
|
131
|
+
- Split module by scenario
|
|
132
|
+
|
|
133
|
+
- Improve documentation and demo data
|
|
134
|
+
|
|
135
|
+
- Document each component
|
|
136
|
+
|
|
137
|
+
- Document demo mode
|
|
138
|
+
|
|
139
|
+
- Find / create a nice icon
|
|
140
|
+
|
|
141
|
+
- Finish base translations (move all UI strings to translatable terms)
|
|
142
|
+
|
|
143
|
+
- Use SCSS
|
|
144
|
+
|
|
145
|
+
- Refactor states definition
|
|
146
|
+
|
|
147
|
+
States are now part of the scenario data. They should be specific
|
|
148
|
+
objects with their own class. They should also provide all the actions
|
|
149
|
+
that should be displayed w/ their handlers when needed. Actions can be
|
|
150
|
+
popup actions or buttons at the bottom of the screen. The tricky part
|
|
151
|
+
here could be how to register this states for the given component.
|
|
152
|
+
Today states have access to the full object of the scenario component
|
|
153
|
+
as they are part of it. \_get_state_spec could probably lookup for
|
|
154
|
+
registered states (eg: when you register a component in the registry
|
|
155
|
+
you should provide states as well). When we'll have states in this
|
|
156
|
+
fashion we should also consider if they should provide their own
|
|
157
|
+
template. This way the component template will hold only the generic
|
|
158
|
+
bits of the scenario.
|
|
159
|
+
|
|
160
|
+
- Back buttons should be smarter
|
|
161
|
+
|
|
162
|
+
In some cases getting back using history is fine but very often this
|
|
163
|
+
could lead to outdated data display. To mitigate this in particular
|
|
164
|
+
scenario's steps, custom handlers for the back action have been
|
|
165
|
+
implemented. For instance, in cluster_picking when you hit back on
|
|
166
|
+
manual selection it forces the state to go to start and reload. For
|
|
167
|
+
starting we should provide on_back property to all states where we
|
|
168
|
+
want to display it (no more specific check on the state to display
|
|
169
|
+
this button). This part is also related to "Refactor states
|
|
170
|
+
definition".
|
|
171
|
+
|
|
172
|
+
- Go through \_.forEach and similar calls to replace them w/ vanilla JS
|
|
173
|
+
(eg: .map())
|
|
160
174
|
|
|
161
175
|
Changelog
|
|
162
176
|
=========
|
|
163
177
|
|
|
164
178
|
13.0.1.0.0
|
|
165
|
-
|
|
179
|
+
----------
|
|
166
180
|
|
|
167
181
|
First official version.
|
|
168
182
|
|
|
@@ -180,39 +194,38 @@ Credits
|
|
|
180
194
|
=======
|
|
181
195
|
|
|
182
196
|
Authors
|
|
183
|
-
|
|
197
|
+
-------
|
|
184
198
|
|
|
185
199
|
* Camptocamp
|
|
186
200
|
* BCIM
|
|
187
201
|
* Akretion
|
|
188
202
|
|
|
189
203
|
Contributors
|
|
190
|
-
|
|
204
|
+
------------
|
|
191
205
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
206
|
+
- Simone Orsi <simahawk@gmail.com>
|
|
207
|
+
- Thierry Ducrest <thierry.ducrest@camptocamp.com>
|
|
208
|
+
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
|
209
|
+
- Raphaël Reverdy <raphael.reverdy@akretion.com>
|
|
210
|
+
- Sébastien Beau <sebastien.beau@akretion.com>
|
|
211
|
+
- Jacques-Etienne Baudoux <je@bcim.be>
|
|
198
212
|
|
|
199
|
-
Design
|
|
200
|
-
~~~~~~
|
|
213
|
+
**Design**
|
|
201
214
|
|
|
202
|
-
|
|
203
|
-
|
|
215
|
+
- Joël Grand-Guillaume <joel.grandguillaume@camptocamp.com>
|
|
216
|
+
- Jacques-Etienne Baudoux <je@bcim.be>
|
|
204
217
|
|
|
205
218
|
Other credits
|
|
206
|
-
|
|
219
|
+
-------------
|
|
207
220
|
|
|
208
221
|
**Financial support**
|
|
209
222
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
223
|
+
- Cosanum
|
|
224
|
+
- Camptocamp R&D
|
|
225
|
+
- Akretion R&D
|
|
213
226
|
|
|
214
227
|
Maintainers
|
|
215
|
-
|
|
228
|
+
-----------
|
|
216
229
|
|
|
217
230
|
This module is maintained by the OCA.
|
|
218
231
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
odoo/addons/shopfloor_mobile/README.rst,sha256=
|
|
1
|
+
odoo/addons/shopfloor_mobile/README.rst,sha256=K_-Y8R6pJwFsKzNk-Hr3BHuW9nJpEu0MI32hSODiNUs,7544
|
|
2
2
|
odoo/addons/shopfloor_mobile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
odoo/addons/shopfloor_mobile/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/shopfloor_mobile/__manifest__.py,sha256=t_XiIDOI2_e8N8D4lf_z9TyxQOesiwn1bmUBYN-Q1cM,705
|
|
4
4
|
odoo/addons/shopfloor_mobile/i18n/de.po,sha256=6eRN27NdcMT5a9_rC7t-L1IyssIf4d0sV8XcBlxYETU,411
|
|
5
5
|
odoo/addons/shopfloor_mobile/i18n/es_AR.po,sha256=8mGWCcMew3na_BE6yzC9aGqTSHNwLq_fu1r-JnZnYGE,1149
|
|
6
6
|
odoo/addons/shopfloor_mobile/i18n/it.po,sha256=Fuhk7nf_wDaq10_RJlCCe4xE6u8qKIml2r_4nUJ1O1w,412
|
|
7
7
|
odoo/addons/shopfloor_mobile/i18n/pt_BR.po,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
odoo/addons/shopfloor_mobile/i18n/shopfloor_mobile.pot,sha256=2nkV-O77dcHWhLBfGldb2hwKdpsp_Iq_PU5QMeyP-mo,341
|
|
9
|
-
odoo/addons/shopfloor_mobile/readme/CONTRIBUTORS.
|
|
10
|
-
odoo/addons/shopfloor_mobile/readme/CREDITS.
|
|
11
|
-
odoo/addons/shopfloor_mobile/readme/DESCRIPTION.
|
|
12
|
-
odoo/addons/shopfloor_mobile/readme/HISTORY.
|
|
13
|
-
odoo/addons/shopfloor_mobile/readme/ROADMAP.
|
|
14
|
-
odoo/addons/shopfloor_mobile/readme/USAGE.
|
|
9
|
+
odoo/addons/shopfloor_mobile/readme/CONTRIBUTORS.md,sha256=9fV8XRI7FHlu1rZooxvlWcoD188t7zC5Frd8eUHz3tk,421
|
|
10
|
+
odoo/addons/shopfloor_mobile/readme/CREDITS.md,sha256=mijiEMeb8qlUh8sbIa_3gn03LhbjHBFrlNCF_9CZELM,65
|
|
11
|
+
odoo/addons/shopfloor_mobile/readme/DESCRIPTION.md,sha256=tsBMHhIrbnsPP5KBIRgtnmjxPvdHhVbCmjglGgU6tOA,1225
|
|
12
|
+
odoo/addons/shopfloor_mobile/readme/HISTORY.md,sha256=uDTaJkR5ECI5b0x32Vuj4ONzBVvfsfMjPm20jISB5Ps,39
|
|
13
|
+
odoo/addons/shopfloor_mobile/readme/ROADMAP.md,sha256=GMldnYqUvyrfgwUbIjZ_68wJtHmOyE1Tb_vQZtAplOo,1741
|
|
14
|
+
odoo/addons/shopfloor_mobile/readme/USAGE.md,sha256=0rRYeb0UEsTSg2EiEB0WHlOGdEMX8sCJT5blDcF0fFU,618
|
|
15
15
|
odoo/addons/shopfloor_mobile/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
16
|
-
odoo/addons/shopfloor_mobile/static/description/index.html,sha256=
|
|
16
|
+
odoo/addons/shopfloor_mobile/static/description/index.html,sha256=KvsFGT7Ln5IpoMn-kvW-LcVuwDHfFmmTkl7RIL8pjJ0,18351
|
|
17
17
|
odoo/addons/shopfloor_mobile/static/wms/.gitignore,sha256=rQCFL3FQm3Lll35BRUETzj1HYlakdld--GvTGLPeHpE,214
|
|
18
18
|
odoo/addons/shopfloor_mobile/static/wms/src/screen.esm.js,sha256=77TQgYSfpnErCuhV9FjQujMFlrKU7EZ6OdeTJnZutV8,1461
|
|
19
19
|
odoo/addons/shopfloor_mobile/static/wms/src/wms_utils.esm.js,sha256=89d19IbDlfFavsgsinKfEtyaSTbRZduITxwxAHnnLbE,12178
|
|
@@ -21,7 +21,7 @@ odoo/addons/shopfloor_mobile/static/wms/src/components/batch_picking_detail.esm.
|
|
|
21
21
|
odoo/addons/shopfloor_mobile/static/wms/src/components/batch_picking_line_detail.esm.js,sha256=4d32G1yQAlzmjOGr9ta4VC8olCLREN_U-xbkJGf8XSU,4772
|
|
22
22
|
odoo/addons/shopfloor_mobile/static/wms/src/components/manual_select_color.esm.js,sha256=COp95jc7KHzZJj5hVkIh0a4cvYyZMGSP-nwUG2LhrKY,937
|
|
23
23
|
odoo/addons/shopfloor_mobile/static/wms/src/components/misc.esm.js,sha256=sd5r1W16vefj0_Ukx3L6zP_9Ph7fhSTO_lRfr5YGxZk,6250
|
|
24
|
-
odoo/addons/shopfloor_mobile/static/wms/src/components/packaging-qty-picker.esm.js,sha256=
|
|
24
|
+
odoo/addons/shopfloor_mobile/static/wms/src/components/packaging-qty-picker.esm.js,sha256=ACPUtc8VGIxTSF7i4wAw3TRBanwVK6sCeemSLqlmwjk,12148
|
|
25
25
|
odoo/addons/shopfloor_mobile/static/wms/src/components/detail/detail_location.esm.js,sha256=ZBb339MzSWOPvhZFD1rsPcuTKhJzxdbx_7G_m_7Zcv8,5009
|
|
26
26
|
odoo/addons/shopfloor_mobile/static/wms/src/components/detail/detail_lot.esm.js,sha256=pJi7YWfe3S5TII7vu1tlcwprH8X1rVuOdJGB-A2H_QE,3230
|
|
27
27
|
odoo/addons/shopfloor_mobile/static/wms/src/components/detail/detail_operation.esm.js,sha256=EvGXb195Js7koQyUChcfwdgfUcPKYgpGs1qI4IaJNR8,1740
|
|
@@ -37,6 +37,7 @@ odoo/addons/shopfloor_mobile/static/wms/src/css/main.css,sha256=IUQoC2TMPRXOmVsI
|
|
|
37
37
|
odoo/addons/shopfloor_mobile/static/wms/src/css/normalize.css,sha256=bdpVgqwoXxfp59Yz0w32yF7uaIWAHPbSlQYY4DWeUII,6260
|
|
38
38
|
odoo/addons/shopfloor_mobile/static/wms/src/demo/demo.checkout.esm.js,sha256=WuZRSewnear0zqIntxMOlIbhdONBo1wHRM1cb6dLk14,7305
|
|
39
39
|
odoo/addons/shopfloor_mobile/static/wms/src/demo/demo.cluster_picking.esm.js,sha256=SrEdrpMmyp9VgtArLnZZYRbwv350B58vRomvw5eXo_E,5192
|
|
40
|
+
odoo/addons/shopfloor_mobile/static/wms/src/demo/demo.components.esm.js,sha256=E6S26D2uNA3N9LAxhp7k5G6LFdLWLXzbAbcjgjZUEGA,4859
|
|
40
41
|
odoo/addons/shopfloor_mobile/static/wms/src/demo/demo.delivery.esm.js,sha256=ZtxJdoBoU2Kfizy_jBTi3WKTnS9sVzmxWu03obcZNM0,2063
|
|
41
42
|
odoo/addons/shopfloor_mobile/static/wms/src/demo/demo.location_content_transfer.esm.js,sha256=gacktD6B-NhtOPJF58sDreO787IK07cWfNeuTKPMtU4,5419
|
|
42
43
|
odoo/addons/shopfloor_mobile/static/wms/src/demo/demo.scan_anything.esm.js,sha256=09QhOZ477dBhWrXeJd4X6FqpuwcY14Tv8zZlwzK4CKg,3042
|
|
@@ -52,8 +53,8 @@ odoo/addons/shopfloor_mobile/static/wms/src/scenario/delivery.esm.js,sha256=Vko1
|
|
|
52
53
|
odoo/addons/shopfloor_mobile/static/wms/src/scenario/location_content_transfer.esm.js,sha256=l7cPPf4wAZntUcnsapldO_LalHCwvfR4snnsfwwFWzA,18335
|
|
53
54
|
odoo/addons/shopfloor_mobile/static/wms/src/scenario/single_pack_transfer.esm.js,sha256=ipc8fKBtv4_KRZBEBV5pmmefjtHnSOarx5KUnfyjNoE,6114
|
|
54
55
|
odoo/addons/shopfloor_mobile/static/wms/src/scenario/zone_picking.esm.js,sha256=mNcE39AtO9vPfjSrNybjV9hiNoSErMyJ0ev1PgOOxd0,44849
|
|
55
|
-
odoo/addons/shopfloor_mobile/templates/assets.xml,sha256=
|
|
56
|
-
odoo_addon_shopfloor_mobile-18.0.1.0.
|
|
57
|
-
odoo_addon_shopfloor_mobile-18.0.1.0.
|
|
58
|
-
odoo_addon_shopfloor_mobile-18.0.1.0.
|
|
59
|
-
odoo_addon_shopfloor_mobile-18.0.1.0.
|
|
56
|
+
odoo/addons/shopfloor_mobile/templates/assets.xml,sha256=Lvp0SaP1r9p8yvS6Td4oRW3s7kVlRFvRhl3W-WhuVZ8,8209
|
|
57
|
+
odoo_addon_shopfloor_mobile-18.0.1.0.2.dist-info/METADATA,sha256=BZtC3cBSdK0-QxGncgOAX-RjagT7d3sh5NvBlEh4UF0,8230
|
|
58
|
+
odoo_addon_shopfloor_mobile-18.0.1.0.2.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
|
59
|
+
odoo_addon_shopfloor_mobile-18.0.1.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
60
|
+
odoo_addon_shopfloor_mobile-18.0.1.0.2.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
* Simone Orsi <simahawk@gmail.com>
|
|
2
|
-
* Thierry Ducrest <thierry.ducrest@camptocamp.com>
|
|
3
|
-
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
|
|
4
|
-
* Raphaël Reverdy <raphael.reverdy@akretion.com>
|
|
5
|
-
* Sébastien Beau <sebastien.beau@akretion.com>
|
|
6
|
-
* Jacques-Etienne Baudoux <je@bcim.be>
|
|
7
|
-
|
|
8
|
-
Design
|
|
9
|
-
~~~~~~
|
|
10
|
-
|
|
11
|
-
* Joël Grand-Guillaume <joel.grandguillaume@camptocamp.com>
|
|
12
|
-
* Jacques-Etienne Baudoux <je@bcim.be>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
Frontend for Shopfloor app.
|
|
2
|
-
|
|
3
|
-
The work is organized in scenario.
|
|
4
|
-
A scenario represents a process in the warehouse (eg: receive, deliver).
|
|
5
|
-
The app allows to start each process through the main menu.
|
|
6
|
-
|
|
7
|
-
Each scenario is linked to a specific menu item which can be configured in the backend.
|
|
8
|
-
Each scenario drives you through the work to do.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
Tech details
|
|
12
|
-
~~~~~~~~~~~~
|
|
13
|
-
|
|
14
|
-
* This frontend is built on top of `VueJS <vuejs.org>`_ and `VuetifyJS <vuetifyjs.com/>`_
|
|
15
|
-
and relies on `shopfloor` module that exposes REST API in Odoo
|
|
16
|
-
(based in turn on `base_rest <https://github.com/OCA/rest-framework/tree/13.0/base_rest>`_).
|
|
17
|
-
|
|
18
|
-
* The whole business logic comes from `shopfloor` module,
|
|
19
|
-
this module takes care of providing a nice and reactive UI to work with.
|
|
20
|
-
|
|
21
|
-
* No Odoo JS is used, no assets machinery used.
|
|
22
|
-
|
|
23
|
-
Static assets are loaded straight, served by a specific controller.
|
|
24
|
-
This app is a Single Page App, hence resources are loaded only once.
|
|
25
|
-
|
|
26
|
-
The version of the module appended to the URL of each resources
|
|
27
|
-
makes sure it's not cached when the version changes.
|
|
28
|
-
|
|
29
|
-
* When developing you can use a demo mode which allows to define interactive scenario
|
|
30
|
-
with pure JS demo data, without interacting with Odoo.
|
|
31
|
-
Nothing to deal with Odoo demo data.
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
* Split module by scenario
|
|
2
|
-
* Improve documentation and demo data
|
|
3
|
-
* Document each component
|
|
4
|
-
* Document demo mode
|
|
5
|
-
* Find / create a nice icon
|
|
6
|
-
* Finish base translations (move all UI strings to translatable terms)
|
|
7
|
-
* Use SCSS
|
|
8
|
-
* Refactor states definition
|
|
9
|
-
|
|
10
|
-
States are now part of the scenario data. They should be specific objects with their own class.
|
|
11
|
-
They should also provide all the actions that should be displayed w/ their handlers when needed.
|
|
12
|
-
Actions can be popup actions or buttons at the bottom of the screen.
|
|
13
|
-
The tricky part here could be how to register this states for the given component.
|
|
14
|
-
Today states have access to the full object of the scenario component as they are part of it.
|
|
15
|
-
`_get_state_spec` could probably lookup for registered states
|
|
16
|
-
(eg: when you register a component in the registry you should provide states as well).
|
|
17
|
-
When we'll have states in this fashion we should also consider if they should provide their own template.
|
|
18
|
-
This way the component template will hold only the generic bits of the scenario.
|
|
19
|
-
|
|
20
|
-
* Back buttons should be smarter
|
|
21
|
-
|
|
22
|
-
In some cases getting back using history is fine but very often this could lead to outdated data display.
|
|
23
|
-
To mitigate this in particular scenario's steps, custom handlers for the back action have been implemented.
|
|
24
|
-
For instance, in cluster_picking when you hit back on manual selection it forces the state to go to start and reload.
|
|
25
|
-
For starting we should provide `on_back` property to all states where we want to display it
|
|
26
|
-
(no more specific check on the state to display this button).
|
|
27
|
-
This part is also related to "Refactor states definition".
|
|
28
|
-
|
|
29
|
-
* Go through `_.forEach` and similar calls to replace them w/ vanilla JS (eg: `.map()`)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
Pre-requisites
|
|
2
|
-
~~~~~~~~~~~~~~
|
|
3
|
-
|
|
4
|
-
* Your Odoo instance is accessible via mobile device
|
|
5
|
-
* You have an API Key configured
|
|
6
|
-
|
|
7
|
-
Start the app
|
|
8
|
-
~~~~~~~~~~~~~
|
|
9
|
-
|
|
10
|
-
* Go to "Inventory -> Configuration -> Shopfloor -> Shopfloor App"
|
|
11
|
-
* In the login screen fill in your API key
|
|
12
|
-
* Hit "Login"
|
|
13
|
-
|
|
14
|
-
Select a profile
|
|
15
|
-
~~~~~~~~~~~~~~~~
|
|
16
|
-
|
|
17
|
-
Several profiles can be configured in the backend,
|
|
18
|
-
you must choose one before starting.
|
|
19
|
-
|
|
20
|
-
* Tap on "Configure profile"
|
|
21
|
-
* Select a profile
|
|
22
|
-
|
|
23
|
-
This will load all available menu items for the selected profile.
|
|
24
|
-
|
|
25
|
-
Change language
|
|
26
|
-
~~~~~~~~~~~~~~~
|
|
27
|
-
|
|
28
|
-
* Go to "Settings -> Language"
|
|
29
|
-
* Select a language
|
|
30
|
-
|
|
31
|
-
Customization
|
|
32
|
-
~~~~~~~~~~~~~
|
|
33
|
-
|
|
34
|
-
Please refer to `shopfloor_mobile_custom_example`.
|
|
File without changes
|