odoo-addon-stock-change-qty-reason 15.0.1.0.0.9__py3-none-any.whl → 17.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_change_qty_reason/README.rst +30 -25
- odoo/addons/stock_change_qty_reason/__manifest__.py +1 -1
- odoo/addons/stock_change_qty_reason/i18n/ar.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/bs.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/ca.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/cs.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/cs_CZ.po +37 -42
- odoo/addons/stock_change_qty_reason/i18n/de.po +37 -42
- odoo/addons/stock_change_qty_reason/i18n/en_GB.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/es.po +62 -69
- odoo/addons/stock_change_qty_reason/i18n/es_CR.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/es_EC.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/es_MX.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/es_VE.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/et.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/fi.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/fr.po +36 -44
- odoo/addons/stock_change_qty_reason/i18n/hr.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/hu.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/it.po +40 -48
- odoo/addons/stock_change_qty_reason/i18n/ja.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/lt.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/mk.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/mn.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/nb.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/nl.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/nl_BE.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/nl_NL.po +37 -42
- odoo/addons/stock_change_qty_reason/i18n/pl.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/pt.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/pt_BR.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/pt_PT.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/ro.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/ru.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/sl.po +37 -42
- odoo/addons/stock_change_qty_reason/i18n/sr@latin.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/stock_change_qty_reason.pot +11 -8
- odoo/addons/stock_change_qty_reason/i18n/sv.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/th.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/tr.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/tr_TR.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/vi.po +35 -31
- odoo/addons/stock_change_qty_reason/i18n/zh_CN.po +36 -44
- odoo/addons/stock_change_qty_reason/i18n/zh_TW.po +35 -31
- odoo/addons/stock_change_qty_reason/models/stock_quant.py +11 -3
- odoo/addons/stock_change_qty_reason/readme/CONFIGURE.md +15 -0
- odoo/addons/stock_change_qty_reason/readme/CONTRIBUTORS.md +6 -0
- odoo/addons/stock_change_qty_reason/readme/{DESCRIPTION.rst → DESCRIPTION.md} +2 -2
- odoo/addons/stock_change_qty_reason/readme/ROADMAP.md +4 -0
- odoo/addons/stock_change_qty_reason/static/description/index.html +23 -15
- odoo/addons/stock_change_qty_reason/tests/test_stock_change_qty_reason.py +1 -1
- odoo/addons/stock_change_qty_reason/views/base_config_view.xml +6 -15
- odoo/addons/stock_change_qty_reason/views/stock_move_line_view.xml +9 -16
- odoo/addons/stock_change_qty_reason/views/stock_quant_reason_view.xml +5 -8
- odoo/addons/stock_change_qty_reason/views/stock_quant_view.xml +8 -19
- {odoo_addon_stock_change_qty_reason-15.0.1.0.0.9.dist-info → odoo_addon_stock_change_qty_reason-17.0.1.0.0.2.dist-info}/METADATA +36 -34
- odoo_addon_stock_change_qty_reason-17.0.1.0.0.2.dist-info/RECORD +68 -0
- {odoo_addon_stock_change_qty_reason-15.0.1.0.0.9.dist-info → odoo_addon_stock_change_qty_reason-17.0.1.0.0.2.dist-info}/WHEEL +1 -1
- odoo_addon_stock_change_qty_reason-17.0.1.0.0.2.dist-info/top_level.txt +1 -0
- odoo/addons/stock_change_qty_reason/migrations/15.0.1.0.0/post-migration.py +0 -54
- odoo/addons/stock_change_qty_reason/migrations/15.0.1.0.0/pre-migration.py +0 -25
- odoo/addons/stock_change_qty_reason/readme/CONFIGURE.rst +0 -15
- odoo/addons/stock_change_qty_reason/readme/CONTRIBUTORS.rst +0 -4
- odoo/addons/stock_change_qty_reason/readme/ROADMAP.rst +0 -1
- odoo_addon_stock_change_qty_reason-15.0.1.0.0.9.dist-info/RECORD +0 -70
- odoo_addon_stock_change_qty_reason-15.0.1.0.0.9.dist-info/top_level.txt +0 -1
@@ -21,7 +21,7 @@ msgstr ""
|
|
21
21
|
"X-Generator: Weblate 3.8\n"
|
22
22
|
|
23
23
|
#. module: stock_change_qty_reason
|
24
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
24
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__active
|
25
25
|
msgid "Active"
|
26
26
|
msgstr "有效"
|
27
27
|
|
@@ -37,17 +37,17 @@ msgid "Config Settings"
|
|
37
37
|
msgstr "配置设定"
|
38
38
|
|
39
39
|
#. module: stock_change_qty_reason
|
40
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
40
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__create_uid
|
41
41
|
msgid "Created by"
|
42
42
|
msgstr "创建者"
|
43
43
|
|
44
44
|
#. module: stock_change_qty_reason
|
45
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
45
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__create_date
|
46
46
|
msgid "Created on"
|
47
47
|
msgstr "创建时间"
|
48
48
|
|
49
49
|
#. module: stock_change_qty_reason
|
50
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
50
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__display_name
|
51
51
|
msgid "Display Name"
|
52
52
|
msgstr "显示名称"
|
53
53
|
|
@@ -59,10 +59,15 @@ msgid ""
|
|
59
59
|
msgstr "允许使用预定义的原因来管理库存调整和产品更新数量向导。"
|
60
60
|
|
61
61
|
#. module: stock_change_qty_reason
|
62
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
62
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__id
|
63
63
|
msgid "ID"
|
64
64
|
msgstr "ID"
|
65
65
|
|
66
|
+
#. module: stock_change_qty_reason
|
67
|
+
#: model:ir.model,name:stock_change_qty_reason.model_stock_inventory
|
68
|
+
msgid "Inventory"
|
69
|
+
msgstr "库存"
|
70
|
+
|
66
71
|
#. module: stock_change_qty_reason
|
67
72
|
#: model:ir.ui.menu,name:stock_change_qty_reason.menu_inventory_adjustments_config
|
68
73
|
#: model_terms:ir.ui.view,arch_db:stock_change_qty_reason.qty_reason_preset_selection
|
@@ -70,17 +75,22 @@ msgid "Inventory Adjustment"
|
|
70
75
|
msgstr "库存调整"
|
71
76
|
|
72
77
|
#. module: stock_change_qty_reason
|
73
|
-
#: model:ir.model
|
78
|
+
#: model:ir.model,name:stock_change_qty_reason.model_stock_inventory_line
|
79
|
+
msgid "Inventory Line"
|
80
|
+
msgstr "库存行"
|
81
|
+
|
82
|
+
#. module: stock_change_qty_reason
|
83
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason____last_update
|
74
84
|
msgid "Last Modified on"
|
75
85
|
msgstr "最后修改时间"
|
76
86
|
|
77
87
|
#. module: stock_change_qty_reason
|
78
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
88
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__write_uid
|
79
89
|
msgid "Last Updated by"
|
80
90
|
msgstr "最后更新者"
|
81
91
|
|
82
92
|
#. module: stock_change_qty_reason
|
83
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
93
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__write_date
|
84
94
|
msgid "Last Updated on"
|
85
95
|
msgstr "最后更新时间"
|
86
96
|
|
@@ -100,67 +110,49 @@ msgid "Preset Change Qty Reason"
|
|
100
110
|
msgstr "预设变更数量原因"
|
101
111
|
|
102
112
|
#. module: stock_change_qty_reason
|
103
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
104
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
113
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory__preset_reason_id
|
114
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line__preset_reason_id
|
115
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_move__preset_reason_id
|
105
116
|
#: model_terms:ir.ui.view,arch_db:stock_change_qty_reason.view_preset_reason
|
106
117
|
msgid "Preset Reason"
|
107
118
|
msgstr "预设原因"
|
108
119
|
|
109
120
|
#. module: stock_change_qty_reason
|
110
|
-
#: model:ir.model,
|
111
|
-
|
112
|
-
msgstr ""
|
113
|
-
|
114
|
-
#. module: stock_change_qty_reason
|
115
|
-
#: model:ir.model,name:stock_change_qty_reason.model_stock_quant
|
116
|
-
msgid "Quants"
|
117
|
-
msgstr ""
|
118
|
-
|
119
|
-
#. module: stock_change_qty_reason
|
120
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_move_line__reason
|
121
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_quant__reason
|
122
|
-
#: model_terms:ir.ui.view,arch_db:stock_change_qty_reason.preset_reason_view_move_line_tree
|
123
|
-
#: model_terms:ir.ui.view,arch_db:stock_change_qty_reason.reason_stock_inventory_line_tree_reason_id
|
121
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory__reason
|
122
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line__reason
|
124
123
|
msgid "Reason"
|
125
124
|
msgstr "原因"
|
126
125
|
|
127
126
|
#. module: stock_change_qty_reason
|
128
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
127
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__description
|
129
128
|
msgid "Reason Description"
|
130
129
|
msgstr "原因说明"
|
131
130
|
|
132
131
|
#. module: stock_change_qty_reason
|
133
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
132
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__name
|
134
133
|
msgid "Reason Name"
|
135
134
|
msgstr "原因名称"
|
136
135
|
|
137
136
|
#. module: stock_change_qty_reason
|
138
|
-
#: model:ir.model,name:stock_change_qty_reason.
|
139
|
-
msgid "Stock
|
140
|
-
msgstr ""
|
137
|
+
#: model:ir.model,name:stock_change_qty_reason.model_stock_inventory_line_reason
|
138
|
+
msgid "Stock Inventory Line Reason"
|
139
|
+
msgstr "库存盘点行原因"
|
140
|
+
|
141
|
+
#. module: stock_change_qty_reason
|
142
|
+
#: model:ir.model,name:stock_change_qty_reason.model_stock_move
|
143
|
+
msgid "Stock Move"
|
144
|
+
msgstr "库存移动"
|
141
145
|
|
142
146
|
#. module: stock_change_qty_reason
|
143
|
-
#: model:ir.model.fields,help:stock_change_qty_reason.
|
144
|
-
#: model:ir.model.fields,help:stock_change_qty_reason.
|
147
|
+
#: model:ir.model.fields,help:stock_change_qty_reason.field_stock_inventory__reason
|
148
|
+
#: model:ir.model.fields,help:stock_change_qty_reason.field_stock_inventory_line__reason
|
145
149
|
msgid "Type in a reason for the product quantity change"
|
146
150
|
msgstr "输入产品数量更改的原因"
|
147
151
|
|
148
152
|
#. module: stock_change_qty_reason
|
149
|
-
#: model:ir.model.constraint,message:stock_change_qty_reason.
|
153
|
+
#: model:ir.model.constraint,message:stock_change_qty_reason.constraint_stock_inventory_line_reason_name_unique
|
150
154
|
msgid "You cannot have two reason with the same name."
|
151
155
|
msgstr "你不能有两个同名的原因。"
|
152
156
|
|
153
|
-
#~ msgid "Inventory"
|
154
|
-
#~ msgstr "库存"
|
155
|
-
|
156
|
-
#~ msgid "Inventory Line"
|
157
|
-
#~ msgstr "库存行"
|
158
|
-
|
159
|
-
#~ msgid "Stock Inventory Line Reason"
|
160
|
-
#~ msgstr "库存盘点行原因"
|
161
|
-
|
162
|
-
#~ msgid "Stock Move"
|
163
|
-
#~ msgstr "库存移动"
|
164
|
-
|
165
157
|
#~ msgid "Change Product Quantity"
|
166
158
|
#~ msgstr "更改产品数量"
|
@@ -20,7 +20,7 @@ msgstr ""
|
|
20
20
|
"Plural-Forms: nplurals=1; plural=0;\n"
|
21
21
|
|
22
22
|
#. module: stock_change_qty_reason
|
23
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
23
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__active
|
24
24
|
msgid "Active"
|
25
25
|
msgstr ""
|
26
26
|
|
@@ -36,17 +36,17 @@ msgid "Config Settings"
|
|
36
36
|
msgstr ""
|
37
37
|
|
38
38
|
#. module: stock_change_qty_reason
|
39
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
39
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__create_uid
|
40
40
|
msgid "Created by"
|
41
41
|
msgstr ""
|
42
42
|
|
43
43
|
#. module: stock_change_qty_reason
|
44
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
44
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__create_date
|
45
45
|
msgid "Created on"
|
46
46
|
msgstr ""
|
47
47
|
|
48
48
|
#. module: stock_change_qty_reason
|
49
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
49
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__display_name
|
50
50
|
msgid "Display Name"
|
51
51
|
msgstr ""
|
52
52
|
|
@@ -58,10 +58,15 @@ msgid ""
|
|
58
58
|
msgstr ""
|
59
59
|
|
60
60
|
#. module: stock_change_qty_reason
|
61
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
61
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__id
|
62
62
|
msgid "ID"
|
63
63
|
msgstr ""
|
64
64
|
|
65
|
+
#. module: stock_change_qty_reason
|
66
|
+
#: model:ir.model,name:stock_change_qty_reason.model_stock_inventory
|
67
|
+
msgid "Inventory"
|
68
|
+
msgstr ""
|
69
|
+
|
65
70
|
#. module: stock_change_qty_reason
|
66
71
|
#: model:ir.ui.menu,name:stock_change_qty_reason.menu_inventory_adjustments_config
|
67
72
|
#: model_terms:ir.ui.view,arch_db:stock_change_qty_reason.qty_reason_preset_selection
|
@@ -69,17 +74,22 @@ msgid "Inventory Adjustment"
|
|
69
74
|
msgstr ""
|
70
75
|
|
71
76
|
#. module: stock_change_qty_reason
|
72
|
-
#: model:ir.model
|
77
|
+
#: model:ir.model,name:stock_change_qty_reason.model_stock_inventory_line
|
78
|
+
msgid "Inventory Line"
|
79
|
+
msgstr ""
|
80
|
+
|
81
|
+
#. module: stock_change_qty_reason
|
82
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason____last_update
|
73
83
|
msgid "Last Modified on"
|
74
84
|
msgstr ""
|
75
85
|
|
76
86
|
#. module: stock_change_qty_reason
|
77
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
87
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__write_uid
|
78
88
|
msgid "Last Updated by"
|
79
89
|
msgstr ""
|
80
90
|
|
81
91
|
#. module: stock_change_qty_reason
|
82
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
92
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__write_date
|
83
93
|
msgid "Last Updated on"
|
84
94
|
msgstr ""
|
85
95
|
|
@@ -99,54 +109,48 @@ msgid "Preset Change Qty Reason"
|
|
99
109
|
msgstr ""
|
100
110
|
|
101
111
|
#. module: stock_change_qty_reason
|
102
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
103
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
112
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory__preset_reason_id
|
113
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line__preset_reason_id
|
114
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_move__preset_reason_id
|
104
115
|
#: model_terms:ir.ui.view,arch_db:stock_change_qty_reason.view_preset_reason
|
105
116
|
#, fuzzy
|
106
117
|
msgid "Preset Reason"
|
107
118
|
msgstr "原因"
|
108
119
|
|
109
120
|
#. module: stock_change_qty_reason
|
110
|
-
#: model:ir.model,
|
111
|
-
|
112
|
-
msgstr ""
|
113
|
-
|
114
|
-
#. module: stock_change_qty_reason
|
115
|
-
#: model:ir.model,name:stock_change_qty_reason.model_stock_quant
|
116
|
-
msgid "Quants"
|
117
|
-
msgstr ""
|
118
|
-
|
119
|
-
#. module: stock_change_qty_reason
|
120
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_move_line__reason
|
121
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_quant__reason
|
122
|
-
#: model_terms:ir.ui.view,arch_db:stock_change_qty_reason.preset_reason_view_move_line_tree
|
123
|
-
#: model_terms:ir.ui.view,arch_db:stock_change_qty_reason.reason_stock_inventory_line_tree_reason_id
|
121
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory__reason
|
122
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line__reason
|
124
123
|
msgid "Reason"
|
125
124
|
msgstr "原因"
|
126
125
|
|
127
126
|
#. module: stock_change_qty_reason
|
128
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
127
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__description
|
129
128
|
msgid "Reason Description"
|
130
129
|
msgstr ""
|
131
130
|
|
132
131
|
#. module: stock_change_qty_reason
|
133
|
-
#: model:ir.model.fields,field_description:stock_change_qty_reason.
|
132
|
+
#: model:ir.model.fields,field_description:stock_change_qty_reason.field_stock_inventory_line_reason__name
|
134
133
|
#, fuzzy
|
135
134
|
msgid "Reason Name"
|
136
135
|
msgstr "原因"
|
137
136
|
|
138
137
|
#. module: stock_change_qty_reason
|
139
|
-
#: model:ir.model,name:stock_change_qty_reason.
|
140
|
-
msgid "Stock
|
138
|
+
#: model:ir.model,name:stock_change_qty_reason.model_stock_inventory_line_reason
|
139
|
+
msgid "Stock Inventory Line Reason"
|
140
|
+
msgstr ""
|
141
|
+
|
142
|
+
#. module: stock_change_qty_reason
|
143
|
+
#: model:ir.model,name:stock_change_qty_reason.model_stock_move
|
144
|
+
msgid "Stock Move"
|
141
145
|
msgstr ""
|
142
146
|
|
143
147
|
#. module: stock_change_qty_reason
|
144
|
-
#: model:ir.model.fields,help:stock_change_qty_reason.
|
145
|
-
#: model:ir.model.fields,help:stock_change_qty_reason.
|
148
|
+
#: model:ir.model.fields,help:stock_change_qty_reason.field_stock_inventory__reason
|
149
|
+
#: model:ir.model.fields,help:stock_change_qty_reason.field_stock_inventory_line__reason
|
146
150
|
msgid "Type in a reason for the product quantity change"
|
147
151
|
msgstr ""
|
148
152
|
|
149
153
|
#. module: stock_change_qty_reason
|
150
|
-
#: model:ir.model.constraint,message:stock_change_qty_reason.
|
154
|
+
#: model:ir.model.constraint,message:stock_change_qty_reason.constraint_stock_inventory_line_reason_name_unique
|
151
155
|
msgid "You cannot have two reason with the same name."
|
152
156
|
msgstr ""
|
@@ -18,11 +18,19 @@ class StockQuant(models.Model):
|
|
18
18
|
res.extend(["reason", "preset_reason_id"])
|
19
19
|
return res
|
20
20
|
|
21
|
-
def _get_inventory_move_values(
|
22
|
-
|
21
|
+
def _get_inventory_move_values(
|
22
|
+
self,
|
23
|
+
qty,
|
24
|
+
location_id,
|
25
|
+
location_dest_id,
|
26
|
+
package_id=False,
|
27
|
+
package_dest_id=False,
|
28
|
+
):
|
29
|
+
# Called when user manually set a new quantity (via `inventory_quantity`)
|
23
30
|
res = super()._get_inventory_move_values(
|
24
|
-
qty, location_id, location_dest_id,
|
31
|
+
qty, location_id, location_dest_id, package_id, package_dest_id
|
25
32
|
)
|
33
|
+
# Aftect the reason to the move line
|
26
34
|
context = (
|
27
35
|
self.reason if not self.preset_reason_id else self.preset_reason_id.name
|
28
36
|
)
|
@@ -0,0 +1,15 @@
|
|
1
|
+
To enable preset reason feature, you must:
|
2
|
+
|
3
|
+
- Go to: Inventory \> Settings \> Inventory Adjustment
|
4
|
+
- Enable: Preset Change Qty Reason
|
5
|
+
- Enable: Technical Settings \> Manage Stock Change Qty Preset Reasons
|
6
|
+
|
7
|
+
Once is activate you will require te add a Preset reason to validate
|
8
|
+
stock products change quantity.
|
9
|
+
|
10
|
+
To allow an Stock Manager configure preset reasons easily, you should:
|
11
|
+
|
12
|
+
- Select Stock Manager user on: Settings \> Users
|
13
|
+
- Enable: Technical Settings \> Manage Stock Change Qty Preset Reasons
|
14
|
+
- Go to Inventory \> Configuration \> Inventory Adjustment \> Change Qty
|
15
|
+
Reasons
|
@@ -0,0 +1,6 @@
|
|
1
|
+
- Denis Roussel \<<denis.roussel@acsone.eu>\>
|
2
|
+
- Meyomesse Gilles \<<meyomesse.gilles@gmail.com>\>
|
3
|
+
- Andreas Dian S.P \<<andreasdian777@gmail.com>\>
|
4
|
+
- Héctor Villarreal \<<hector.villarreal@forgeflow.com>\>
|
5
|
+
- Urvisha Desai \<<udesai@opensourceintegrators.com>\>
|
6
|
+
- Florian Mounier \<<florian.mounier@akretion.com>\>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
This module extends the product stock management and allows to set a
|
2
|
-
in inventory adjustments globally or per line.
|
1
|
+
This module extends the product stock management and allows to set a
|
2
|
+
reason in inventory adjustments globally or per line.
|
3
3
|
|
4
4
|
It also can manage preset reasons optionally.
|
@@ -0,0 +1,4 @@
|
|
1
|
+
- Add a reason from Update Quantity button in Product Form View has been
|
2
|
+
removed. This button no longer opens an Inventory Adjustment, it opens
|
3
|
+
directly the stock quant view. Therefore, it must be decided how to
|
4
|
+
implement the logic to add a reason when quantity is updated.
|
@@ -1,4 +1,3 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
2
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
2
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
3
|
<head>
|
@@ -9,10 +8,11 @@
|
|
9
8
|
|
10
9
|
/*
|
11
10
|
:Author: David Goodger (goodger@python.org)
|
12
|
-
:Id: $Id: html4css1.css
|
11
|
+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
|
13
12
|
:Copyright: This stylesheet has been placed in the public domain.
|
14
13
|
|
15
14
|
Default cascading style sheet for the HTML output of Docutils.
|
15
|
+
Despite the name, some widely supported CSS2 features are used.
|
16
16
|
|
17
17
|
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
|
18
18
|
customize this style sheet.
|
@@ -275,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
275
275
|
margin-left: 2em ;
|
276
276
|
margin-right: 2em }
|
277
277
|
|
278
|
-
pre.code .ln { color:
|
278
|
+
pre.code .ln { color: gray; } /* line numbers */
|
279
279
|
pre.code, code { background-color: #eeeeee }
|
280
280
|
pre.code .comment, code .comment { color: #5C6576 }
|
281
281
|
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
@@ -301,7 +301,7 @@ span.option {
|
|
301
301
|
span.pre {
|
302
302
|
white-space: pre }
|
303
303
|
|
304
|
-
span.problematic {
|
304
|
+
span.problematic, pre.problematic {
|
305
305
|
color: red }
|
306
306
|
|
307
307
|
span.section-subtitle {
|
@@ -367,11 +367,11 @@ ul.auto-toc {
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
368
368
|
!! changes will be overwritten. !!
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
370
|
-
!! source digest: sha256:
|
370
|
+
!! source digest: sha256:75a9a9cbf10ad67ed01d6cc4ee77fb8f570272f0e1e9e0047b841e4f59da2749
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
|
-
<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/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/
|
373
|
-
<p>This module extends the product stock management and allows to set a
|
374
|
-
in inventory adjustments globally or per line.</p>
|
372
|
+
<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/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_change_qty_reason"><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-17-0/stock-logistics-warehouse-17-0-stock_change_qty_reason"><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=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
373
|
+
<p>This module extends the product stock management and allows to set a
|
374
|
+
reason in inventory adjustments globally or per line.</p>
|
375
375
|
<p>It also can manage preset reasons optionally.</p>
|
376
376
|
<p><strong>Table of contents</strong></p>
|
377
377
|
<div class="contents local topic" id="contents">
|
@@ -395,19 +395,23 @@ in inventory adjustments globally or per line.</p>
|
|
395
395
|
<li>Enable: Preset Change Qty Reason</li>
|
396
396
|
<li>Enable: Technical Settings > Manage Stock Change Qty Preset Reasons</li>
|
397
397
|
</ul>
|
398
|
-
<p>Once is activate you will require te add a Preset reason to validate
|
399
|
-
products change quantity.</p>
|
398
|
+
<p>Once is activate you will require te add a Preset reason to validate
|
399
|
+
stock products change quantity.</p>
|
400
400
|
<p>To allow an Stock Manager configure preset reasons easily, you should:</p>
|
401
401
|
<ul class="simple">
|
402
402
|
<li>Select Stock Manager user on: Settings > Users</li>
|
403
403
|
<li>Enable: Technical Settings > Manage Stock Change Qty Preset Reasons</li>
|
404
|
-
<li>Go to Inventory > Configuration > Inventory Adjustment > Change Qty
|
404
|
+
<li>Go to Inventory > Configuration > Inventory Adjustment > Change Qty
|
405
|
+
Reasons</li>
|
405
406
|
</ul>
|
406
407
|
</div>
|
407
408
|
<div class="section" id="known-issues-roadmap">
|
408
409
|
<h1><a class="toc-backref" href="#toc-entry-2">Known issues / Roadmap</a></h1>
|
409
410
|
<ul class="simple">
|
410
|
-
<li>Add a reason from Update Quantity button in Product Form View has
|
411
|
+
<li>Add a reason from Update Quantity button in Product Form View has
|
412
|
+
been removed. This button no longer opens an Inventory Adjustment, it
|
413
|
+
opens directly the stock quant view. Therefore, it must be decided
|
414
|
+
how to implement the logic to add a reason when quantity is updated.</li>
|
411
415
|
</ul>
|
412
416
|
</div>
|
413
417
|
<div class="section" id="bug-tracker">
|
@@ -415,7 +419,7 @@ products change quantity.</p>
|
|
415
419
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
|
416
420
|
In case of trouble, please check there if your issue has already been reported.
|
417
421
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
418
|
-
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_change_qty_reason%0Aversion:%
|
422
|
+
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_change_qty_reason%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
419
423
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
420
424
|
</div>
|
421
425
|
<div class="section" id="credits">
|
@@ -433,16 +437,20 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
433
437
|
<li>Meyomesse Gilles <<a class="reference external" href="mailto:meyomesse.gilles@gmail.com">meyomesse.gilles@gmail.com</a>></li>
|
434
438
|
<li>Andreas Dian S.P <<a class="reference external" href="mailto:andreasdian777@gmail.com">andreasdian777@gmail.com</a>></li>
|
435
439
|
<li>Héctor Villarreal <<a class="reference external" href="mailto:hector.villarreal@forgeflow.com">hector.villarreal@forgeflow.com</a>></li>
|
440
|
+
<li>Urvisha Desai <<a class="reference external" href="mailto:udesai@opensourceintegrators.com">udesai@opensourceintegrators.com</a>></li>
|
441
|
+
<li>Florian Mounier <<a class="reference external" href="mailto:florian.mounier@akretion.com">florian.mounier@akretion.com</a>></li>
|
436
442
|
</ul>
|
437
443
|
</div>
|
438
444
|
<div class="section" id="maintainers">
|
439
445
|
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
|
440
446
|
<p>This module is maintained by the OCA.</p>
|
441
|
-
<a class="reference external image-reference" href="https://odoo-community.org"
|
447
|
+
<a class="reference external image-reference" href="https://odoo-community.org">
|
448
|
+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
|
449
|
+
</a>
|
442
450
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
443
451
|
mission is to support the collaborative development of Odoo features and
|
444
452
|
promote its widespread use.</p>
|
445
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/
|
453
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/17.0/stock_change_qty_reason">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
|
446
454
|
<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>
|
447
455
|
</div>
|
448
456
|
</div>
|
@@ -9,7 +9,7 @@ from odoo.tests.common import TransactionCase
|
|
9
9
|
class TestStockQuantityChangeReason(TransactionCase):
|
10
10
|
@classmethod
|
11
11
|
def setUpClass(cls):
|
12
|
-
super(
|
12
|
+
super().setUpClass()
|
13
13
|
|
14
14
|
# MODELS
|
15
15
|
cls.stock_move_line = cls.env["stock.move.line"]
|
@@ -7,21 +7,12 @@
|
|
7
7
|
<field name="model">res.config.settings</field>
|
8
8
|
<field name="inherit_id" ref="stock.res_config_settings_view_form" />
|
9
9
|
<field name="arch" type="xml">
|
10
|
-
<xpath expr="//
|
11
|
-
<
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
</div>
|
17
|
-
<div class="o_setting_right_pane">
|
18
|
-
<label for="group_qty_reason_preset" />
|
19
|
-
<div class="text-muted">
|
20
|
-
Manage predefined change quantity reasons
|
21
|
-
</div>
|
22
|
-
</div>
|
23
|
-
</div>
|
24
|
-
</div>
|
10
|
+
<xpath expr="//block[@id='production_lot_info']" position='after'>
|
11
|
+
<block title="Inventory Adjustment" name="inventory_adjustment">
|
12
|
+
<setting title="Manage predefined change quantity reasons">
|
13
|
+
<field name="group_qty_reason_preset" />
|
14
|
+
</setting>
|
15
|
+
</block>
|
25
16
|
</xpath>
|
26
17
|
</field>
|
27
18
|
</record>
|
@@ -8,22 +8,15 @@
|
|
8
8
|
<field name="inherit_id" ref="stock.view_move_line_tree" />
|
9
9
|
<field name="arch" type="xml">
|
10
10
|
<field name="company_id" position="after">
|
11
|
-
<field
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
<field
|
21
|
-
name="groups_id"
|
22
|
-
eval="[(4, ref('stock_change_qty_reason.group_qty_reason_preset'))]"
|
23
|
-
/>
|
24
|
-
<field name="arch" type="xml">
|
25
|
-
<field name="reason" position="replace">
|
26
|
-
<field name="preset_reason_id" string="Reason" />
|
11
|
+
<field
|
12
|
+
name="reason"
|
13
|
+
groups="!stock_change_qty_reason.group_qty_reason_preset"
|
14
|
+
/>
|
15
|
+
<field
|
16
|
+
name="preset_reason_id"
|
17
|
+
string="Reason"
|
18
|
+
groups="stock_change_qty_reason.group_qty_reason_preset"
|
19
|
+
/>
|
27
20
|
</field>
|
28
21
|
</field>
|
29
22
|
</record>
|
@@ -7,21 +7,18 @@
|
|
7
7
|
<field name="model">stock.quant.reason</field>
|
8
8
|
<field name="arch" type="xml">
|
9
9
|
<form string="Preset Reason">
|
10
|
-
<header>
|
11
|
-
</header>
|
12
10
|
<sheet>
|
13
|
-
<div class="oe_button_box" name="
|
11
|
+
<div class="oe_button_box" name="button_box">
|
14
12
|
<button
|
15
13
|
name="toggle_active"
|
16
14
|
type="object"
|
17
15
|
class="oe_stat_button"
|
18
16
|
icon="fa-archive"
|
19
17
|
>
|
20
|
-
<
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
/>
|
18
|
+
<span class="o_form_label">
|
19
|
+
Active
|
20
|
+
</span>
|
21
|
+
<field name="active" />
|
25
22
|
</button>
|
26
23
|
</div>
|
27
24
|
<group>
|
@@ -2,6 +2,7 @@
|
|
2
2
|
<!-- Copyright 2019-2023 ForgeFlow S.L.
|
3
3
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
4
4
|
<odoo>
|
5
|
+
|
5
6
|
<record id="reason_view_stock_quant_tree_inventory_editable" model="ir.ui.view">
|
6
7
|
<field name="name">stock.quant.tree</field>
|
7
8
|
<field name="model">stock.quant</field>
|
@@ -10,27 +11,15 @@
|
|
10
11
|
<button name="action_inventory_history" position="before">
|
11
12
|
<field
|
12
13
|
name="reason"
|
13
|
-
|
14
|
+
invisible="not inventory_quantity_set"
|
15
|
+
groups="!stock_change_qty_reason.group_qty_reason_preset"
|
16
|
+
/>
|
17
|
+
<field
|
18
|
+
name="preset_reason_id"
|
19
|
+
string="Reason"
|
20
|
+
groups="stock_change_qty_reason.group_qty_reason_preset"
|
14
21
|
/>
|
15
22
|
</button>
|
16
23
|
</field>
|
17
24
|
</record>
|
18
|
-
<record id="reason_stock_inventory_line_tree_reason_id" model="ir.ui.view">
|
19
|
-
<field name="name">stock.quant.tree.reason.code</field>
|
20
|
-
<field name="model">stock.quant</field>
|
21
|
-
<field
|
22
|
-
name="inherit_id"
|
23
|
-
ref="reason_view_stock_quant_tree_inventory_editable"
|
24
|
-
/>
|
25
|
-
<field name="priority">99</field>
|
26
|
-
<field
|
27
|
-
name="groups_id"
|
28
|
-
eval="[(4, ref('stock_change_qty_reason.group_qty_reason_preset'))]"
|
29
|
-
/>
|
30
|
-
<field name="arch" type="xml">
|
31
|
-
<field name="reason" position="replace">
|
32
|
-
<field name="preset_reason_id" string="Reason" />
|
33
|
-
</field>
|
34
|
-
</field>
|
35
|
-
</record>
|
36
25
|
</odoo>
|