Skip to content

Commit e07f2f1

Browse files
committed
[IMP] hr_timesheet_portal: add USAGE.md
Add USAGE.md and screenshots to improve documentation. Signed-off-by: Manuel Fombuena <mfombuena@innovara.tech>
1 parent 88d7d9e commit e07f2f1

File tree

6 files changed

+56
-10
lines changed

6 files changed

+56
-10
lines changed

hr_timesheet_portal/README.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,28 @@ To configure this module, you need to:
5050
users be able to edit timesheets, add the group as an implied group
5151
of the Portal group
5252

53+
Usage
54+
=====
55+
56+
Users in the Website group Editable timesheets will see a plus button
57+
when they hover over Timesheets.
58+
59+
|Portal general view|
60+
61+
Clicking the plus button allows them to add a new timesheet line:
62+
63+
|Add timesheet line|
64+
65+
They can also edit their timesheet lines by hovering over a line and
66+
clicking the pencil button next to the date, or delete a line by
67+
clicking the cross next to the duration:
68+
69+
|Edit timesheet line|
70+
71+
.. |Portal general view| image:: https://raw.githubusercontent.com/OCA/timesheet/17.0/hr_timesheet_portal/static/img/01_portal_general_view.png
72+
.. |Add timesheet line| image:: https://raw.githubusercontent.com/OCA/timesheet/17.0/hr_timesheet_portal/static/img/02_add_timesheet_line.png
73+
.. |Edit timesheet line| image:: https://raw.githubusercontent.com/OCA/timesheet/17.0/hr_timesheet_portal/static/img/03_edit_timesheet_line.png
74+
5375
Bug Tracker
5476
===========
5577

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Users in the Website group Editable timesheets will see a plus button when they hover over Timesheets.
2+
3+
![Portal general view](../static/img/01_portal_general_view.png)
4+
5+
Clicking the plus button allows them to add a new timesheet line:
6+
7+
![Add timesheet line](../static/img/02_add_timesheet_line.png)
8+
9+
They can also edit their timesheet lines by hovering over a line and clicking the pencil button next to the date, or delete a line by clicking the cross next to the duration:
10+
11+
![Edit timesheet line](../static/img/03_edit_timesheet_line.png)

hr_timesheet_portal/static/description/index.html

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,12 @@ <h1 class="title">Timesheet portal (editable)</h1>
382382
<div class="contents local topic" id="contents">
383383
<ul class="simple">
384384
<li><a class="reference internal" href="#configuration" id="toc-entry-1">Configuration</a></li>
385-
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
386-
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
387-
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
388-
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
389-
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
385+
<li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
386+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
387+
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
388+
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
389+
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
390+
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
390391
</ul>
391392
</li>
392393
</ul>
@@ -400,24 +401,36 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
400401
of the Portal group</li>
401402
</ol>
402403
</div>
404+
<div class="section" id="usage">
405+
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
406+
<p>Users in the Website group Editable timesheets will see a plus button
407+
when they hover over Timesheets.</p>
408+
<p><img alt="Portal general view" src="https://raw.githubusercontent.com/OCA/timesheet/17.0/hr_timesheet_portal/static/img/01_portal_general_view.png" /></p>
409+
<p>Clicking the plus button allows them to add a new timesheet line:</p>
410+
<p><img alt="Add timesheet line" src="https://raw.githubusercontent.com/OCA/timesheet/17.0/hr_timesheet_portal/static/img/02_add_timesheet_line.png" /></p>
411+
<p>They can also edit their timesheet lines by hovering over a line and
412+
clicking the pencil button next to the date, or delete a line by
413+
clicking the cross next to the duration:</p>
414+
<p><img alt="Edit timesheet line" src="https://raw.githubusercontent.com/OCA/timesheet/17.0/hr_timesheet_portal/static/img/03_edit_timesheet_line.png" /></p>
415+
</div>
403416
<div class="section" id="bug-tracker">
404-
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
417+
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
405418
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/timesheet/issues">GitHub Issues</a>.
406419
In case of trouble, please check there if your issue has already been reported.
407420
If you spotted it first, help us to smash it by providing a detailed and welcomed
408421
<a class="reference external" href="https://github.com/OCA/timesheet/issues/new?body=module:%20hr_timesheet_portal%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
409422
<p>Do not contact contributors directly about support or help with technical issues.</p>
410423
</div>
411424
<div class="section" id="credits">
412-
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
425+
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
413426
<div class="section" id="authors">
414-
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
427+
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
415428
<ul class="simple">
416429
<li>Hunki Enterprises BV</li>
417430
</ul>
418431
</div>
419432
<div class="section" id="contributors">
420-
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
433+
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
421434
<ul class="simple">
422435
<li><a class="reference external" href="https://hunki-enterprises.com">Hunki Enterprises BV</a><ul>
423436
<li>Holger Brunn &lt;<a class="reference external" href="mailto:mail&#64;hunki-enterprises.com">mail&#64;hunki-enterprises.com</a>&gt;</li>
@@ -434,7 +447,7 @@ <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
434447
</ul>
435448
</div>
436449
<div class="section" id="maintainers">
437-
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
450+
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
438451
<p>This module is maintained by the OCA.</p>
439452
<a class="reference external image-reference" href="https://odoo-community.org">
440453
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
93.9 KB
Loading
33.5 KB
Loading
31.5 KB
Loading

0 commit comments

Comments
 (0)