odoo-addon-list-write-date 20.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.
@@ -0,0 +1,91 @@
1
+ .. image:: https://odoo-community.org/readme-banner-image
2
+ :target: https://odoo-community.org/get-involved?utm_source=readme
3
+ :alt: Odoo Community Association
4
+
5
+ ===============
6
+ List Write Date
7
+ ===============
8
+
9
+ ..
10
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
11
+ !! This file is generated by oca-gen-addon-readme !!
12
+ !! changes will be overwritten. !!
13
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
+ !! source digest: sha256:174759ab3fc5dea43475d3de3c745fcc12ebe00709a914d4a3d88393b638f6cb
15
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
+
17
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
18
+ :target: https://odoo-community.org/page/development-status
19
+ :alt: Beta
20
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
21
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
22
+ :alt: License: AGPL-3
23
+ .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github
24
+ :target: https://github.com/OCA/server-ux/tree/20.0/list_write_date
25
+ :alt: OCA/server-ux
26
+ .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27
+ :target: https://translation.odoo-community.org/projects/server-ux-20-0/server-ux-20-0-list_write_date
28
+ :alt: Translate me on Weblate
29
+ .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=20.0
31
+ :alt: Try me on Runboat
32
+
33
+ |badge1| |badge2| |badge3| |badge4| |badge5|
34
+
35
+ ``write_date`` field allow to search last updated records.
36
+
37
+ This module add ``write_date`` field in all list views (hidden by
38
+ default).
39
+
40
+ Then each list views can becomes a ``last activity view``.
41
+
42
+ To keep this module lightweight, the One2many list does not include this
43
+ feature.
44
+
45
+ **Table of contents**
46
+
47
+ .. contents::
48
+ :local:
49
+
50
+ Bug Tracker
51
+ ===========
52
+
53
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.
54
+ In case of trouble, please check there if your issue has already been reported.
55
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
56
+ `feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20list_write_date%0Aversion:%2020.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
57
+
58
+ Do not contact contributors directly about support or help with technical issues.
59
+
60
+ Credits
61
+ =======
62
+
63
+ Authors
64
+ -------
65
+
66
+ * Akretion
67
+
68
+ Maintainers
69
+ -----------
70
+
71
+ This module is maintained by the OCA.
72
+
73
+ .. image:: https://odoo-community.org/logo.png
74
+ :alt: Odoo Community Association
75
+ :target: https://odoo-community.org
76
+
77
+ OCA, or the Odoo Community Association, is a nonprofit organization whose
78
+ mission is to support the collaborative development of Odoo features and
79
+ promote its widespread use.
80
+
81
+ .. |maintainer-bealdav| image:: https://github.com/bealdav.png?size=40px
82
+ :target: https://github.com/bealdav
83
+ :alt: bealdav
84
+
85
+ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
86
+
87
+ |maintainer-bealdav|
88
+
89
+ This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/20.0/list_write_date>`_ project on GitHub.
90
+
91
+ You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -0,0 +1 @@
1
+ from . import models
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "List Write Date",
3
+ "version": "20.0.1.0.0",
4
+ "category": "Tools",
5
+ "summary": "Add write_date column to all list views, hidden by default",
6
+ "author": "Akretion, Odoo Community Association (OCA)",
7
+ "license": "AGPL-3",
8
+ "website": "https://github.com/OCA/server-ux",
9
+ "maintainers": ["bealdav"],
10
+ "depends": ["base"],
11
+ }
@@ -0,0 +1,125 @@
1
+ # Translation of Odoo Server.
2
+ # This file contains the translation of the following modules:
3
+ # * list_write_date
4
+ #
5
+ msgid ""
6
+ msgstr ""
7
+ "Project-Id-Version: Odoo Server 20.0\n"
8
+ "Report-Msgid-Bugs-To: \n"
9
+ "Last-Translator: \n"
10
+ "Language-Team: \n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: \n"
14
+ "Plural-Forms: \n"
15
+
16
+ #. module: list_write_date
17
+ #: model:ir.module.module,description:base.module_list_write_date
18
+ msgid ""
19
+ ".. image:: https://odoo-community.org/readme-banner-image\n"
20
+ " :target: https://odoo-community.org/get-involved?utm_source=readme\n"
21
+ " :alt: Odoo Community Association\n"
22
+ "\n"
23
+ "===============\n"
24
+ "List Write Date\n"
25
+ "===============\n"
26
+ "\n"
27
+ ".. \n"
28
+ " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
29
+ " !! This file is generated by oca-gen-addon-readme !!\n"
30
+ " !! changes will be overwritten. !!\n"
31
+ " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
32
+ " !! source digest: sha256:45af1e73ec83f879cba800cf1c98934287334bbc187c7f815ce6e0764c86ca76\n"
33
+ " !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n"
34
+ "\n"
35
+ ".. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n"
36
+ " :target: https://odoo-community.org/page/development-status\n"
37
+ " :alt: Beta\n"
38
+ ".. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png\n"
39
+ " :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n"
40
+ " :alt: License: AGPL-3\n"
41
+ ".. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github\n"
42
+ " :target: https://github.com/OCA/server-ux/tree/20.0/list_write_date\n"
43
+ " :alt: OCA/server-ux\n"
44
+ ".. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n"
45
+ " :target: https://translation.odoo-community.org/projects/server-ux-20-0/server-ux-20-0-list_write_date\n"
46
+ " :alt: Translate me on Weblate\n"
47
+ ".. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n"
48
+ " :target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=20.0\n"
49
+ " :alt: Try me on Runboat\n"
50
+ "\n"
51
+ "|badge1| |badge2| |badge3| |badge4| |badge5|\n"
52
+ "\n"
53
+ "``write_date`` field allow to search last updated records.\n"
54
+ "\n"
55
+ "This module add ``write_date`` field in all list views (hidden by\n"
56
+ "default).\n"
57
+ "\n"
58
+ "Then each list views can becomes a ``last activity view``.\n"
59
+ "\n"
60
+ "To keep this module lightweight, the One2many list does not include this\n"
61
+ "feature.\n"
62
+ "\n"
63
+ "**Table of contents**\n"
64
+ "\n"
65
+ ".. contents::\n"
66
+ " :local:\n"
67
+ "\n"
68
+ "Bug Tracker\n"
69
+ "===========\n"
70
+ "\n"
71
+ "Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.\n"
72
+ "In case of trouble, please check there if your issue has already been reported.\n"
73
+ "If you spotted it first, help us to smash it by providing a detailed and welcomed\n"
74
+ "`feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20list_write_date%0Aversion:%2020.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n"
75
+ "\n"
76
+ "Do not contact contributors directly about support or help with technical issues.\n"
77
+ "\n"
78
+ "Credits\n"
79
+ "=======\n"
80
+ "\n"
81
+ "Authors\n"
82
+ "-------\n"
83
+ "\n"
84
+ "* Akretion\n"
85
+ "\n"
86
+ "Maintainers\n"
87
+ "-----------\n"
88
+ "\n"
89
+ "This module is maintained by the OCA.\n"
90
+ "\n"
91
+ ".. image:: https://odoo-community.org/logo.png\n"
92
+ " :alt: Odoo Community Association\n"
93
+ " :target: https://odoo-community.org\n"
94
+ "\n"
95
+ "OCA, or the Odoo Community Association, is a nonprofit organization whose\n"
96
+ "mission is to support the collaborative development of Odoo features and\n"
97
+ "promote its widespread use.\n"
98
+ "\n"
99
+ ".. |maintainer-bealdav| image:: https://github.com/bealdav.png?size=40px\n"
100
+ " :target: https://github.com/bealdav\n"
101
+ " :alt: bealdav\n"
102
+ "\n"
103
+ "Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:\n"
104
+ "\n"
105
+ "|maintainer-bealdav| \n"
106
+ "\n"
107
+ "This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/20.0/list_write_date>`_ project on GitHub.\n"
108
+ "\n"
109
+ "You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n"
110
+ msgstr ""
111
+
112
+ #. module: list_write_date
113
+ #: model:ir.module.module,summary:base.module_list_write_date
114
+ msgid "Add write_date column to all list views, hidden by default"
115
+ msgstr ""
116
+
117
+ #. module: list_write_date
118
+ #: model:ir.model,name:list_write_date.model_base
119
+ msgid "Base"
120
+ msgstr ""
121
+
122
+ #. module: list_write_date
123
+ #: model:ir.module.module,shortdesc:base.module_list_write_date
124
+ msgid "List Write Date"
125
+ msgstr ""
@@ -0,0 +1 @@
1
+ from . import base
@@ -0,0 +1,21 @@
1
+ from lxml import etree
2
+
3
+ from odoo import api, models
4
+
5
+
6
+ class Base(models.AbstractModel):
7
+ _inherit = "base"
8
+
9
+ @api.model
10
+ def get_view(self, view_id=None, view_type="form", **options):
11
+ result = super().get_view(view_id=view_id, view_type=view_type, **options)
12
+ if view_type == "list" and "write_date" in self._fields:
13
+ arch = etree.fromstring(result["arch"])
14
+ if arch.tag == "list" and not arch.xpath("field[@name='write_date']"):
15
+ node = etree.SubElement(arch, "field")
16
+ node.set("name", "write_date")
17
+ node.set("optional", "hide")
18
+ # the field definition is sent to the client by the core:
19
+ # _get_view_fields() adds write_date to the list views models
20
+ result["arch"] = etree.tostring(arch, encoding="unicode")
21
+ return result
@@ -0,0 +1,7 @@
1
+ `write_date` field allow to search last updated records.
2
+
3
+ This module add `write_date` field in all list views (hidden by default).
4
+
5
+ Then each list views can becomes a `last activity view`.
6
+
7
+ To keep this module lightweight, the One2many list does not include this feature.
@@ -0,0 +1,429 @@
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>List Write Date</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="list-write-date">
370
+ <h1>List Write Date</h1>
371
+ <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372
+ !! This file is generated by oca-gen-addon-readme !!
373
+ !! changes will be overwritten. !!
374
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375
+ !! source digest: sha256:174759ab3fc5dea43475d3de3c745fcc12ebe00709a914d4a3d88393b638f6cb
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/server-ux/tree/20.0/list_write_date"><img alt="OCA/server-ux" src="https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-ux-20-0/server-ux-20-0-list_write_date"><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/server-ux&amp;target_branch=20.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378
+ <p><tt class="docutils literal">write_date</tt> field allow to search last updated records.</p>
379
+ <p>This module add <tt class="docutils literal">write_date</tt> field in all list views (hidden by
380
+ default).</p>
381
+ <p>Then each list views can becomes a <tt class="docutils literal">last activity view</tt>.</p>
382
+ <p>To keep this module lightweight, the One2many list does not include this
383
+ feature.</p>
384
+ <p><strong>Table of contents</strong></p>
385
+ <div class="contents local topic" id="contents">
386
+ <ul class="simple">
387
+ <li><a class="reference internal" href="#bug-tracker" id="toc-entry-1">Bug Tracker</a></li>
388
+ <li><a class="reference internal" href="#credits" id="toc-entry-2">Credits</a><ul>
389
+ <li><a class="reference internal" href="#authors" id="toc-entry-3">Authors</a></li>
390
+ <li><a class="reference internal" href="#maintainers" id="toc-entry-4">Maintainers</a></li>
391
+ </ul>
392
+ </li>
393
+ </ul>
394
+ </div>
395
+ <div class="section" id="bug-tracker">
396
+ <h2><a class="toc-backref" href="#toc-entry-1">Bug Tracker</a></h2>
397
+ <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-ux/issues">GitHub Issues</a>.
398
+ In case of trouble, please check there if your issue has already been reported.
399
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
400
+ <a class="reference external" href="https://github.com/OCA/server-ux/issues/new?body=module:%20list_write_date%0Aversion:%2020.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401
+ <p>Do not contact contributors directly about support or help with technical issues.</p>
402
+ </div>
403
+ <div class="section" id="credits">
404
+ <h2><a class="toc-backref" href="#toc-entry-2">Credits</a></h2>
405
+ <div class="section" id="authors">
406
+ <h3><a class="toc-backref" href="#toc-entry-3">Authors</a></h3>
407
+ <ul class="simple">
408
+ <li>Akretion</li>
409
+ </ul>
410
+ </div>
411
+ <div class="section" id="maintainers">
412
+ <h3><a class="toc-backref" href="#toc-entry-4">Maintainers</a></h3>
413
+ <p>This module is maintained by the OCA.</p>
414
+ <a class="reference external image-reference" href="https://odoo-community.org">
415
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
416
+ </a>
417
+ <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
418
+ mission is to support the collaborative development of Odoo features and
419
+ promote its widespread use.</p>
420
+ <p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
421
+ <p><a class="reference external image-reference" href="https://github.com/bealdav"><img alt="bealdav" src="https://github.com/bealdav.png?size=40px" /></a></p>
422
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/server-ux/tree/20.0/list_write_date">OCA/server-ux</a> project on GitHub.</p>
423
+ <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>
424
+ </div>
425
+ </div>
426
+ </div>
427
+ </div>
428
+ </body>
429
+ </html>
@@ -0,0 +1 @@
1
+ from . import test_module
@@ -0,0 +1,13 @@
1
+ from odoo.tests import TransactionCase
2
+
3
+
4
+ class TestModule(TransactionCase):
5
+ def test_write_date_in_base_list_view(self):
6
+ view = self.env.ref("base.view_users_tree")
7
+ arch = self.env["res.users"].get_view(view_id=view.id, view_type="list")["arch"]
8
+ self.assertIn('name="write_date"', arch)
9
+ self.assertIn('optional="hide"', arch)
10
+
11
+ def test_write_date_field_sent_to_client(self):
12
+ res = self.env["res.users"].get_views([(False, "list")])
13
+ self.assertIn("write_date", res["models"]["res.users"]["fields"])
@@ -0,0 +1,106 @@
1
+ Metadata-Version: 2.1
2
+ Name: odoo-addon-list_write_date
3
+ Version: 20.0.1.0.0.2
4
+ Requires-Dist: odoo==20.0.*
5
+ Summary: Add write_date column to all list views, hidden by default
6
+ Home-page: https://github.com/OCA/server-ux
7
+ License: AGPL-3
8
+ Author: Akretion, Odoo Community Association (OCA)
9
+ Author-email: support@odoo-community.org
10
+ Classifier: Programming Language :: Python
11
+ Classifier: Framework :: Odoo
12
+ Classifier: Framework :: Odoo :: 20.0
13
+ Classifier: License :: OSI Approved :: GNU Affero General Public License v3
14
+ Description-Content-Type: text/x-rst
15
+
16
+ .. image:: https://odoo-community.org/readme-banner-image
17
+ :target: https://odoo-community.org/get-involved?utm_source=readme
18
+ :alt: Odoo Community Association
19
+
20
+ ===============
21
+ List Write Date
22
+ ===============
23
+
24
+ ..
25
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26
+ !! This file is generated by oca-gen-addon-readme !!
27
+ !! changes will be overwritten. !!
28
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
+ !! source digest: sha256:174759ab3fc5dea43475d3de3c745fcc12ebe00709a914d4a3d88393b638f6cb
30
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
31
+
32
+ .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
33
+ :target: https://odoo-community.org/page/development-status
34
+ :alt: Beta
35
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
36
+ :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
37
+ :alt: License: AGPL-3
38
+ .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github
39
+ :target: https://github.com/OCA/server-ux/tree/20.0/list_write_date
40
+ :alt: OCA/server-ux
41
+ .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
42
+ :target: https://translation.odoo-community.org/projects/server-ux-20-0/server-ux-20-0-list_write_date
43
+ :alt: Translate me on Weblate
44
+ .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
45
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/server-ux&target_branch=20.0
46
+ :alt: Try me on Runboat
47
+
48
+ |badge1| |badge2| |badge3| |badge4| |badge5|
49
+
50
+ ``write_date`` field allow to search last updated records.
51
+
52
+ This module add ``write_date`` field in all list views (hidden by
53
+ default).
54
+
55
+ Then each list views can becomes a ``last activity view``.
56
+
57
+ To keep this module lightweight, the One2many list does not include this
58
+ feature.
59
+
60
+ **Table of contents**
61
+
62
+ .. contents::
63
+ :local:
64
+
65
+ Bug Tracker
66
+ ===========
67
+
68
+ Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-ux/issues>`_.
69
+ In case of trouble, please check there if your issue has already been reported.
70
+ If you spotted it first, help us to smash it by providing a detailed and welcomed
71
+ `feedback <https://github.com/OCA/server-ux/issues/new?body=module:%20list_write_date%0Aversion:%2020.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
72
+
73
+ Do not contact contributors directly about support or help with technical issues.
74
+
75
+ Credits
76
+ =======
77
+
78
+ Authors
79
+ -------
80
+
81
+ * Akretion
82
+
83
+ Maintainers
84
+ -----------
85
+
86
+ This module is maintained by the OCA.
87
+
88
+ .. image:: https://odoo-community.org/logo.png
89
+ :alt: Odoo Community Association
90
+ :target: https://odoo-community.org
91
+
92
+ OCA, or the Odoo Community Association, is a nonprofit organization whose
93
+ mission is to support the collaborative development of Odoo features and
94
+ promote its widespread use.
95
+
96
+ .. |maintainer-bealdav| image:: https://github.com/bealdav.png?size=40px
97
+ :target: https://github.com/bealdav
98
+ :alt: bealdav
99
+
100
+ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
101
+
102
+ |maintainer-bealdav|
103
+
104
+ This module is part of the `OCA/server-ux <https://github.com/OCA/server-ux/tree/20.0/list_write_date>`_ project on GitHub.
105
+
106
+ You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
@@ -0,0 +1,15 @@
1
+ odoo/addons/list_write_date/README.rst,sha256=pW57OVVXMPR0Ok185u7B1CDQ78jH5rvQPgzmems3iN4,3327
2
+ odoo/addons/list_write_date/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
+ odoo/addons/list_write_date/__manifest__.py,sha256=N5yFjrSMaexKp900aeZx69IsI0aivANww4sNKtpJ2kI,359
4
+ odoo/addons/list_write_date/i18n/list_write_date.pot,sha256=8rtAbp7PD-g1BY2YzCJzV7TDcYdVr-mAlZLXSgxyB5U,4560
5
+ odoo/addons/list_write_date/models/__init__.py,sha256=9pIQnc7H3xgVNpi7n3I18hg04S4IkX5mnAfl9cv7RBE,19
6
+ odoo/addons/list_write_date/models/base.py,sha256=z-pSgt0VS4LBkkli7FoYqgAFzQxcVufBUaOzVPHfKkA,872
7
+ odoo/addons/list_write_date/readme/DESCRIPTION.md,sha256=ru7dq8-QVpA-IyfjiaxopDjt7oiGtuTY4Xhi4z2Cbdo,273
8
+ odoo/addons/list_write_date/static/description/icon.png,sha256=CgnOEZCwoe6f1vlLwkqFVfc2q_uwBMU0UnXN8j6X5ag,10254
9
+ odoo/addons/list_write_date/static/description/index.html,sha256=kvUwQelQpgdxW_U6w8xUjI0UpATMQ43SJuQ7ENlDvkA,12555
10
+ odoo/addons/list_write_date/tests/__init__.py,sha256=vfUqzPeIroQ-zFgLEZ7RwslndWCR9eW87w3c0MD7mX4,26
11
+ odoo/addons/list_write_date/tests/test_module.py,sha256=iDcnAIqRaoA2-UdYHzu-_jFyO2ItGcX7UMwaTSodogY,554
12
+ odoo_addon_list_write_date-20.0.1.0.0.2.dist-info/METADATA,sha256=sVZm0COf9kO_bs_8pQVTyAhqlwsUIP59SuKOpDNAhpU,3877
13
+ odoo_addon_list_write_date-20.0.1.0.0.2.dist-info/WHEEL,sha256=tY4UUamIAIc2HVe-YyLXOTWtnsqD30eHohh9GKjdJ3Y,83
14
+ odoo_addon_list_write_date-20.0.1.0.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
15
+ odoo_addon_list_write_date-20.0.1.0.0.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: Whool 1.3.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+