[MOV] content/*: move resource files into their related page's directory

Since odoo/documentation#903, the guideline for the location of new
resource (images, downloadable files, RST includes...) files is to place
those inside the directory of the RST page that references them.

For example, if `doc1.rst` has a reference to `image.png` and to
`download.zip`, the file structure should look like this:

├── parent_doc/
│     └── doc1/
│     │     └── image.png
│     │     └── download.zip
│     └── doc1.rst
│     └── doc2.rst
├── parent_doc.rst

Before this commit, most of the resource files were still located inside
'media' directories holding all the resource files referenced by RST
pages located at the same level as these directories. In the example
above, a single 'media' directory would hold all the resource files
referenced by both `doc1.rst` and `doc2.rst`. Doing so prevented us from
figuring out easily which resource file was referenced by which RST page
and, thus, lead to unused resource files piling up in the repository. It
also made it more complicated to define codeowners regex rules because a
team could not simply be assigned to `/some_page.*` but needed to be
assigned to both `/some_page\.rst` and to the location of 'media'.

In order to help new content writers figure out the guideline when
taking examples from other RST pages, this commit retroactively applies
the guideline to existing resource files and 'media' directories. The
left-over resource files that are not referenced by any RST page are
removed.

task-2497965

Part-of: odoo/documentation#2068
This commit is contained in:
Antoine Vandevenne (anv)
2022-05-20 09:54:32 +00:00
parent 3901e3b241
commit 8722ea902e
2056 changed files with 1777 additions and 1776 deletions
@@ -13,7 +13,7 @@ Set up the after sales services
Go to :menuselection:`Helpdesk --> Configuration --> Helpdesk Teams` and enable the after sales
options: *Refunds, Returns, Coupons, Repairs and Onsite Interventions*.
.. image:: ./media/aftersales1.png
.. image:: after_sales/aftersales1.png
:align: center
Generate credit notes from tickets
@@ -23,7 +23,7 @@ You can use a credit note to refund a customer or adjust the amount due. For tha
your ticket page, click on *Refund* and select the corresponding *Invoice*. Clicking on *Reverse*
generates a credit note, and you can *Post* it while still being in the *Helpdesk* app.
.. image:: ./media/aftersales2.png
.. image:: after_sales/aftersales2.png
:align: center
Allow product returns from tickets
@@ -32,7 +32,7 @@ Allow product returns from tickets
The process of a product return from your customer back to your warehouse is taken into action when,
at the ticket page, you choose the option *Return*.
.. image:: ./media/aftersales3.png
.. image:: after_sales/aftersales3.png
:align: center
Grant coupons from tickets
@@ -41,7 +41,7 @@ Grant coupons from tickets
First, be sure to have your *Coupon Program* planned in the *Sales* or *Website* application. Then,
in *Helpdesk*, open your ticket, click on *Coupon*, and choose the respective one.
.. image:: ./media/aftersales4.png
.. image:: after_sales/aftersales4.png
:align: center
Repairs from tickets
@@ -50,7 +50,7 @@ Repairs from tickets
Clicking on *Repair* option, on your ticket page, a new repair order form is shown. Fill in the
information as needed and choose the next step.
.. image:: ./media/aftersales5.png
.. image:: after_sales/aftersales5.png
:align: center
Plan onsite interventions from tickets
@@ -59,7 +59,7 @@ Plan onsite interventions from tickets
At the ticket's page click on *Plan Intervention*, and set up your onsite intervention exactly the
same way as if you were on the *Field Service* application.
.. image:: ./media/aftersales6.png
.. image:: after_sales/aftersales6.png
:align: center
:height: 300

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

@@ -11,21 +11,21 @@ Configure the feature
To configure the feature go to :menuselection:`Helpdesk --> Settings --> Helpdesk Teams --> Edit`
and enable *Ticket closing*.
.. image:: media/closetickets1.png
.. image:: close_tickets/closetickets1.png
:align: center
:alt: Ticket closing in Odoo Helpdesk
In order to designate to which stage the ticket migrates to once it is closed, go to
:menuselection:`Helpdesk --> Overview --> Tickets`.
.. image:: media/closetickets2.png
.. image:: close_tickets/closetickets2.png
:align: center
:alt: Ticket closing in Odoo Helpdesk
You can either create a new Kanban stage or work with an existing one. For both scenarios, go to
:menuselection:`Helpdesk --> Settings --> Edit Stage` and enable *Closing Stage*.
.. image:: media/closetickets3.png
.. image:: close_tickets/closetickets3.png
:align: center
:alt: Ticket closing in Odoo Helpdesk
@@ -37,7 +37,7 @@ The Costumer Portal
Now, once the user logs into his Portal, the option *Close this ticket* is available.
.. image:: media/closetickets4.png
.. image:: close_tickets/closetickets4.png
:align: center
:alt: Ticket closing in Odoo Helpdesk
@@ -48,7 +48,7 @@ To do an analysis of the tickets that have been closed by costumers go to
:menuselection:`Helpdesk --> Reporting --> Tickets --> Filters --> Add Custom filter -->
Closed by partner --> Applied`.
.. image:: media/closetickets5.png
.. image:: close_tickets/closetickets5.png
:align: center
:height: 300
:alt: Reports on Ticket closing in Odoo Helpdesk

Before

Width:  |  Height:  |  Size: 5.0 KiB

After

Width:  |  Height:  |  Size: 5.0 KiB

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB