Commit Graph

2404 Commits

Author SHA1 Message Date
Elisabeth Dickinson
7239986484 [IMP] odoo_theme: improve special terms styling
Including the `:command:`, `:file:` and `:dfn:` roles, and code-styled
text in alerts.

task-2790284
2022-06-27 14:24:54 +02:00
Jonathan Castillo (jcs)
9ff312298d [IMP] contributing: update the rst cheat sheet
task - 2810468

closes odoo/documentation#1825

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Elisabeth Dickinson (edi) <edi@odoo.com>
2022-06-27 12:43:35 +02:00
Valentin Chevalier
0db39e3564 [ADD] payment_acquirers/adyen: add doc configuration of Adyen
Following a technical task regarding the migration of the Adyen hosted
payment page integration to Adyen PayByLink, some new parameters have
been introduced and some have been removed.

This new addition to the documentation will help users configure their
acquirer.

task-2802921

closes odoo/documentation#1737

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-27 09:12:46 +02:00
Odoo Translation Bot
4f846a1f62 [I18N] Update translation terms from Transifex 2022-06-26 02:40:18 +02:00
LoredanaLrpz
610aeb1563 [ADD] pos: adyen payment terminal
Task ID: 2808584
Do not Forward port r+

closes odoo/documentation#2017

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-24 17:47:37 +02:00
LoredanaLrpz
63792faa92 [IMP] pos: change titles
Part-of: odoo/documentation#2017
2022-06-24 17:47:37 +02:00
Tom Aarab (toaa)
103c17f235 [IMP] accounting: added specification about payment flow for payment acquirer
V13 and V14 do not allow customers with no account on Odoo.com portal to pay through payment acquirers with payment flow "Payment from Odoo"

task - 2711962

closes odoo/documentation#2239

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-23 18:12:24 +02:00
Antoine Vandevenne (anv)
2a867b4f60 [IMP] odoo_theme: open images in a modal
task-2358082

closes odoo/documentation#1687

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Elisabeth Dickinson (edi) <edi@odoo.com>
2022-06-23 10:44:43 +02:00
Antoine Vandevenne (anv)
9e84b6f681 [FIX] odoo_theme: correctly test for fallback URLs when using switchers
closes odoo/documentation#2266

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-22 17:21:53 +02:00
Antoine Vandevenne (anv)
80c7b27827 [IMP] redirects: split redirects.txt into multiple, per-version, files
The `redirects.txt` file used to specify redirect rules for renamed or
moved documentation pages is starting to grow too big to be easily
maintainable. The main reason is that the number of redirect rules that
were thought to be required has been largely underestimated when
implementing the 'redirects' extension. At first, we believed that no
guidelines or structure were necessary because only a small amount of
redirect rules would be specified. This proved wrong and the file is now
becoming a mess, making it increasingly difficult to figure out where,
why, when, and if a redirect rule is specified in the file.

As the file is versioned, another issue emerges: conflicts occur every
time a commit is forward-ported to a later version if that commit adds a
redirect rule at the end of the file or at a line that was changed in
the later version. As redirect rules are frequently added, and since
blocks of redirect rules for new versions are added at the end of the
file, this tends to happen a lot.

This commit attempts to hit two birds with one stone by splitting the
`redirects.txt` file into multiple files, one per version. While doing
so, the existing redirect rules are ordered alphabetically and moved
into contextual blocks. Instructions and guidelines on how to create
redirect rules are also listed in the `redirects/MANUAL.md` file. By
sorting the redirect rules and adding them in different files, the
number of conflicts should decrease by a lot.

task-2891912

closes odoo/documentation#2265

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-22 16:31:52 +02:00
“Chiara
2c59116ef5 [REM] accounting: remove the odoo tutorials invoices link
Deleting the Odoo Tutorials Invoices link since the course has been merged, and the link isn't necessary anymore.

closes odoo/documentation#2243

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-06-20 16:45:06 +02:00
Elisabeth Dickinson
a689ea236d [FIX] odoo_theme: fix highlight blocks in field-list items
On pages such as /developer/reference/backend/orm.html#fields, the
highlight blocks inside `dl.field-list` items were pushing the width of
the page to go outside the screen on mobile. This is fixed by changing
the `.field-list`'s `display: grid` into `block` on mobile.

closes odoo/documentation#2215

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-15 11:16:41 +02:00
Odoo's Mergebot
10f62b6a49
[MERGE] odoo_theme: revamp header and menu for better mobile support
Previously the switchers were hidden on mobile. These have been moved
to a sub-nav which also contains the button for the sidenav, leaving
more space for the searchbox so it can remain in the header. Like MDN
web docs, the navigation now slides in from the left instead of the
top.

See PR's commits for more details.

task-2800937

closes odoo/documentation#2206

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-15 10:30:46 +02:00
Antoine Vandevenne (anv)
98e98f65c9 [FIX] odoo_theme: stop testing for valid URLs if in localhost
The mechanism that makes the version and language switchers test for
valid URLs crashed when testing in localhost. The mechanism is now
skipped if the URL starts with a '/'.
2022-06-15 09:56:46 +02:00
Elisabeth Dickinson
3fd32fe92a [FIX] odoo_theme: fix searchbox's highlight-link
task-2800937
2022-06-15 09:56:16 +02:00
Elisabeth Dickinson
4ed8c2238a [IMP] odoo_theme: revamp side menu to add overlay
task-2800937
2022-06-15 09:56:07 +02:00
Elisabeth Dickinson
9c53901db9 [FIX] odoo_theme: fix menu scrolling
task-2800937
2022-06-15 09:55:55 +02:00
Elisabeth Dickinson
7284b11a36 [IMP] odoo_theme: add side menu collapse icon
task-2800937
2022-06-15 09:55:44 +02:00
Elisabeth Dickinson
dee96ad2da [IMP] odoo_theme: change collapsing menu orientation
task-2800937
2022-06-15 09:55:25 +02:00
Elisabeth Dickinson
411e1cb1d3 [IMP] odoo_theme: add subheader and adapt switchers and searchbar
task-2800937
2022-06-15 09:55:05 +02:00
Elisabeth Dickinson
b1fa30f431 [IMP] odoo_theme: stop translating language names in the switcher
Before this commit, the language names were translated to display
"Français" instead of "French". This helped the user find their language
in the switcher but it was taking too much horizontal space, and that
space was not constant from one language to another.

This commit removes the translations of the language names and simply
goes with "FR", "NL", etc. which any user can identify as their
language.

task-2800937
2022-06-15 09:51:45 +02:00
Elisabeth Dickinson
343decf192 [IMP] design: add an icon behind external links
The external links' target attribute is now also updated to open the
link in a new tab. In addition, the "[source]" link of autodoc's models
is moved right next to the name of the model to correctly position the
icon.

task-2790244

closes odoo/documentation#2167

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-14 11:42:13 +02:00
Elisabeth Dickinson
c0040fa532 [IMP] odoo_theme: show the "On this page" section in mobile
When the page gets too small for the "On this page" section (local tree
of content) to fit on the page, the section is now moved above the menu
(global tree of content) rather than being hidden.

task-2800970

closes odoo/documentation#2179

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-13 14:53:08 +02:00
Odoo Translation Bot
fb700d98e8 [I18N] Update translation terms from Transifex 2022-06-12 02:40:20 +02:00
Antoine Vandevenne (anv)
5471d9a2ff [FIX] requirements: pin docutils to 0.16.0
Since sphinx-tabs 3.2.0 has the requirement docutils==0.16.0 and sphinx
3.5.4 has the requirement docutils>=0.12,<0.17, this commit pins
docutils to version 0.16.0.

While we're at it, the dependency to sphinx-tabs is also explicitly
listed, although it was already imported in the extensions. It causes
no trouble to install it from pip alongside the imported extension.

closes odoo/documentation#2169

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-09 13:58:41 +02:00
Denis Vermylen
1afee9e2c7 [FIX] odoo.sh: remove hidden folder from documentation
it will also be renamed to .repositories in the near future

closes odoo/documentation#2159

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-07 10:08:43 +02:00
Odoo Translation Bot
f9327efd33 [I18N] Update translation terms from Transifex 2022-06-05 02:40:16 +02:00
Jason Aerts (jaae)
6dc4288e49 [IMP] maintain: process for odoo.sh to odoo online
task-id 2870122

closes odoo/documentation#2133

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-06-03 12:29:48 +02:00
Tom Aarab (toaa)
e4fc5f07ee [IMP] accounting: add note about bank sync not available for trial db
Added a note to specify that bank synchronization is not available on trial databases

closes odoo/documentation#2122

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2022-06-02 09:54:03 +02:00
Jonathan Castillo (jcs)
4cd0500408 [IMP] maintain: add note in hosting changes (on-premise to online)
task-id 2869953

closes odoo/documentation#2123

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2022-06-01 17:37:04 +02:00
william
6d4f4f7d9b [FIX] conf: dynamic LaTeX releasename
closes odoo/documentation#2110

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-05-30 16:06:48 +02:00
Demesmaeker
80408caf6d [IMP] amazon: migrate to SPAPI
Starting July 2022, Amazon WMS API is deprecated and we need to use the Selling Partners API.

This brings changes in the authentication flow that are explained.

task-2466636

closes odoo/documentation#1654

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-30 09:44:12 +02:00
Odoo Translation Bot
0efff824d2 [I18N] Update translation terms from Transifex 2022-05-29 02:40:16 +02:00
Donatienne Pirlot
ffc23483ca [IMP] accounting: update the follow-up information
Task ID: 2735445

closes odoo/documentation#1834

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-24 13:40:02 +02:00
Odoo Translation Bot
8e7937a308 [I18N] Update translation terms from Transifex 2022-05-22 02:40:17 +02:00
Martin Trigaux
241fd5e76f [FIX] odoo_theme: correctly consider baseurl
urlBase was only containing the domain name, not the /documentation/

closes odoo/documentation#2054

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-20 11:47:20 +02:00
Donatienne Pirlot
8acc4060c7 [IMP] accounting : update the list of fiscal localization packages
task id: 2858536

closes odoo/documentation#2040

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2022-05-19 16:54:56 +02:00
Martin Trigaux
25e863a64c [IMP] odoo_theme: introduce fallback URLs for the page switchers
When a user clicks on the link of an alternate page in the version or
language switcher, we now check if the page referenced by the target URL
exists or not. If not, we generate a series of fallback URLs from the
target URL and check whether the targeted resource exists or not, until
we read the root of the documentation. As soon as we find a valid URL,
we redirect the user to it.

This is inspired by the behaviour of docs.python.org's version and
language switchers.

task-2534669

closes odoo/documentation#1588

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-19 16:54:50 +02:00
Altela Eleviansyah Pramardhika
1b2fbd0264 [FIX] developer/howtos: Fixed typo from field to fields
closes odoo/documentation#2023

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-19 12:40:49 +02:00
Antoine Vandevenne (anv)
6f125de01b [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

closes odoo/documentation#2006

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-19 11:33:49 +02:00
Odoo Translation Bot
419dd37189 [I18N] Update translation terms from Transifex 2022-05-15 02:40:17 +02:00
Jason Aerts (jaae)
f92889baa3 [FIX] maintain: typo in domain names doc
closes odoo/documentation#1995

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2022-05-13 11:24:13 +02:00
Antoine Vandevenne (anv)
8f4be8e3ea [FIX] requirements.txt: pin Jinja2 < 3.1
The latest versions of Jinja2 are no longer compatible with the latest
version of Sphinx 3 (3.5.4).

task-2828982

closes odoo/documentation#1991

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-12 17:52:44 +02:00
Fabrice Henrion
df10f17c3e [IMP] payment acquirers: a note in Authorize.net
closes odoo/documentation#1103

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2022-05-12 12:08:36 +02:00
Demesmaeker
3231d20d92 [IMP] amazon: explain how to use a carrier
In case of an unsupported carrier or a self Delivery, Odoo won't block
the user to use the Amazon connector, but explanation were needed for
these cases.

task-2804907

closes odoo/documentation#1750

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-09 10:44:39 +02:00
Jeremy Kersten
4c526eb02f [IMP] odoo_theme: allow to add plausible script
export PLAUSIBLE_SCRIPT=https://plausible.io/js/script.js
export PLAUSIBLE_DOMAIN=yourdomain.com

closes odoo/documentation#1946

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-09 09:49:41 +02:00
Odoo Translation Bot
cc9d1e84e5 [I18N] Update translation terms from Transifex 2022-05-08 02:40:15 +02:00
Jonathan Castillo (jcs)
d7da800674 [IMP] install/maintain: add seealso links in domain names doc
closes odoo/documentation#1932

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2022-05-06 13:49:49 +02:00
Altela Eleviansyah Pramardhika
77ebdcdfca [FIX] developer/howtos: missing parentheses in print statement
Added parentheses in a print function

closes odoo/documentation#1923

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-05-06 09:44:45 +02:00
Jonathan Castillo (jcs)
abc6d99af7 [IMP] contributing: modify titles and headings guidelines
The previous guidelines for titles and headings included an exception to
capitalize feature names as they are written in the apps. However, this
exception seems to have confused most writers as it isn't always clear
what should be considered as a feature name or what should be considered
as a noun or noun group. This commit removes this exception to make the
writing and reviewing processes easier while retaining good titles and
improving consistency across the documentation. It also changes the
titles of the Accounting section to provide a better example to other
writers.

task-id 2843109

closes odoo/documentation#1910

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-04 17:20:57 +02:00