Commit Graph

2441 Commits

Author SHA1 Message Date
Antoine Vandevenne (anv)
80a9cfb68f [IMP] stripe: clarify the conditions for the support of a payment method
Even though the documentation was correct, it was confusing the reader
to state that local payment methods are considered enabled if their
related payment icon record does not exist in the database. The intended
meaning was that this statement only holds if the local payment method
is also supported, otherwise it cannot be enabled.

closes odoo/documentation#2543

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-08-17 14:11:03 +02:00
Odoo Translation Bot
eb5f98d4d0 [I18N] Update translation terms from Transifex 2022-08-14 02:40:16 +02:00
Odoo Translation Bot
e8aadf2b88 [I18N] Update translation terms from Transifex 2022-08-07 02:40:20 +02:00
Wesley Kao (weka)
8c665643ce [IMP] inventory and mrp: capitalized "MRP" in toctree
In the toctree, "MRP" wasn't capitalized in "Inventory & MRP."
Affects all branches, can be forward ported.

closes odoo/documentation#2560

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-08-05 11:09:40 +02:00
Odoo Translation Bot
0129170503 [I18N] Update translation terms from Transifex 2022-07-31 02:40:14 +02:00
Odoo Translation Bot
f0234ed947 [I18N] Update translation terms from Transifex 2022-07-24 02:40:18 +02:00
Stanislas Sobieski
815acb64c4 [IMP] install/maintain: update info about upgrade process on Odoo.sh
closes odoo/documentation#2426

Id: 2744270
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Co-authored-by: Stanislas <sts@odoo.com>
Co-authored-by: Donatienne <dopi@odoo.com>
2022-07-18 10:34:20 +02:00
Odoo Translation Bot
fab6d933c7 [I18N] Update translation terms from Transifex 2022-07-17 02:40:16 +02:00
Victor Feyens
6402988ed9 [IMP] conf.py, requirements.txt, *: allow building with Python 3.10
- Bump Sphinx version to 4.3.2 (default for Debian Jammy).
- Remove the retrocompatibility for Sphinx < 3.5 (warnings are raised in
  4.5).
- Fix translator issue crashing builds.
- Unpin jinja2 from the requirements as the base issue is solved in sphinx 4

Task - 2898477

closes odoo/documentation#2349

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-07-14 16:39:58 +02:00
Sam Lieber (sali)
9b75dfd2ac [ADD] maintain: google oauth doc
Added document and media files on the setup of Google Gmail using OAuth with Odoo.

closes odoo/documentation#2274

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-13 17:09:55 +02:00
Antoine Vandevenne (anv)
c1c16ea388 [REF] legal: convert the table from a grid to a list table
Prior to this commit, the /legal.html page relied on RST substitutions
to insert the images directives of legal agreements within the table.
This caused Sphinx to omit the `image-reference` class on all `<a>`
elements surrounding an `<img>` element, which it normally adds when the
`target` option is specified on an `image` directive. As the theme
relies on that class to hide the "external link" icon added with commit
343decf1, the layout of the page was broken.

While replacing the substitutions with the plain `image` directive, the
grid table is converted to a list table to avoid the hassle of expanding
table cells to fit the directives. This will also help in maintaining
the content of the table when we will add new translations for the legal
agreements.

task-2909167

closes odoo/documentation#2438

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-13 11:53:26 +02:00
Antoine Vandevenne (anv)
c6b0c1f60d [FIX] odoo_theme: show a cursor when hovering on an image without modal
The images that have the class `o-no-modal` cannot be clicked to open in
a modal, so the cursor should not be changed to a pointer when hovering
on them.

This commit also simplifies the theme's SCSS by replacing the hard-coded
SVG images used in the "Supported versions" page by unicode circles with
a custom styling.

Part-of: odoo/documentation#2438
Co-authored-by: Elisabeth Dickinson (edi) <edi@odoo.com>
2022-07-13 11:53:25 +02:00
Antoine Vandevenne (anv)
d9a8f7b4ab [FIX] odoo_theme: only open images that have no target in modal
Since clicking on the image redirects the user to the target URL, it's
useless to open the image in a modal. Also, it partially broke the
layout of the /legal.html page due to the modal div being inserted into
table cells.

This commit also introduces the possibility to add the `o-no-modal`
class on images that should not open in a modal.

task-2909167

Part-of: odoo/documentation#2438
2022-07-13 11:53:25 +02:00
Antoine Vandevenne (anv)
5e0f14f683 [FIX] odoo_theme: fix the display of modal images in mobile
task-2908330

closes odoo/documentation#2439

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-12 13:32:02 +02:00
Romain Derie
2222142127 [FIX] website: warn about google api deprecation
Google deprecated both its "Universal Analytics" and "Google Sign-In"
API. See community counterpart commit for a detailed explanation and
links.

closes odoo/documentation#2382

Related: odoo/odoo#95232
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-12 13:31:54 +02:00
Antoine Vandevenne (anv)
2481e3d842 [CLN] conf.py: stop labelling saas-15.1 in version switcher
The branch was recently dropped from the supported versions. We no
longer need to add a label for it in the version switcher.

closes odoo/documentation#2431

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-11 11:52:10 +02:00
Odoo Translation Bot
4b5a6c5682 [I18N] Update translation terms from Transifex 2022-07-10 02:40:15 +02:00
“Lau-Odoo”
7307dac6a6 [IMP] ecommerce: remove one sub-menu to add it as a see also
task - 2904108 I removed the "website/publish" section from the toctree to add a link to the full website documentation inside off the see also.

closes odoo/documentation#2384

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-07 15:01:42 +02:00
LoredanaLrpz
7ba4af1e99 [IMP] pos: add a warning about Six unusability in July
Task ID:3835
Since Six payment terminal won't be usable starting in July 2022, I
added this warning.

closes odoo/documentation#2387

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2022-07-07 14:07:41 +02:00
Demesmaeker
471d0c2094 [FIX] sale_amazon: fix information displayed
Both carrier name and tracking reference are now displayed to the
customer, even when using the carrie `Self Delivery`

task-2900803

closes odoo/documentation#2366

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-07 10:30:14 +02:00
Odoo Translation Bot
8bf569fd1a [I18N] Update translation terms from Transifex 2022-07-03 02:40:13 +02:00
“Lau-Odoo”
c40059e0a7 [IMP] website: broken link removal
task - 2841794

closes odoo/documentation#2351

Signed-off-by: Auvens Ludvig (lau) <lau@odoo.com>
2022-07-01 10:34:42 +02:00
Antoine Vandevenne (anv)
ad374af15d [MOV] developer/misc: move all pages to a more logical location
Before this commit, the "Developer/Misc" directory of the doc, and
more particularly the "Developer/Misc/Other" sub-directory, was used as
a garbage dump where we moved all the pages that didn't fit elsewhere.
Due to that, interesting and important pages, such as the Coding
Guidelines, were buried in that directory never to be read again by Odoo
developers.

This commit moves most pages under "Misc" one or two levels up to be
located directly under "Developer" hence making them more accessible. A
new "Contributing/Development" directory is added to host the Coding
Guidelines page and soon many other pages.

task-2897143

closes odoo/documentation#2337

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-30 16:12:41 +02:00
Antoine Vandevenne (anv)
120ae78553 [IMP] developer/views: apply the new API references style
The documentation of view attributes was lacking visual structure to
help the reader figure out which attribute relates to which parent
element. Since this documentation was relying on RST block quotes to
represent the hierarchy of view attributes, we can apply the same new
styling that was added with commit 934f45cf and designed for autodoc,
and which relies on the exact same HTML structure as block quotes.

task-2755298

closes odoo/documentation#2324

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-27 17:05:05 +02:00
Odoo's Mergebot
934f45cf4d
[MERGE] odoo_theme: styling fixes, tweaks, and general cleanup
**Special terms restyling:**
A general restyling of special terms has been made for better legibility
in text, and to differentiate roles (ie: `:command:`,`:file:`,`:dfn:`)
so writers can use these instead of italic and bold styling.
`:guilabel:` has not been changed because its use is too vast.

task-2790284

**Reference pages have a new look:**
`code` elements have been restyled to remove unnecessary spaces (ex:
`odoo.models .BaseModel`. See
https://www.odoo.com/documentation/15.0/developer/reference/backend/orm.html#odoo.models.BaseModel)
and to include visual aid of parent/children relations (left border).

Basic for task-2755298

**URL styling:**
When an image has an external link, the `external-link` icon appears
under the image. This has been removed. URLs with icons such as external
links or "Edit on Github" links have been modified to remove the
underline under the icons. On mobile, long URLs would push the content
outside the viewport. `overflow-wrap: anywhere` has been added to all
URLs on mobile devices.

**No more horizontal scroll on Windows thanks to css grid:**
Windows and Mac don't work the same (no kidding). Windows would add
±`1rem` of horizontal scroll when Mac doesn't. Adding that `1rem` to the
content's `max-width` calculations would make Mac unhappy (it left a
`1rem` gap). The solution for everyone to be happy was to change the
display type to `grid`. By doing this, the max-width calculations and
the left positioning according to the side-nav were not necessary
anymore. Great Success. Very Nice.

**Scrolling To:**
With the new subnav added with commit 10f62b6a, the scroll position was
wrong. This is fixed by changing the padding/margin top values in the
`o-scroll-padding` mixin.

**Replace "Hide Search Matches" with close icon:**
The title says it all.

**Forgotten scrollbar styling**
The scrollbar stylings for the side-nav should have been moved to
`o_side_nav-inner` during the previous restyling of the header.

**Clean up the mess:**
All these changes made me want to clean up a bit. By doing so I realised
that a lot of the utility mixins that were used in the old *old* doc
were still present here, but aren't being used. Same for some variables.
Some stying was using values instead of their variable counterparts, so
these have been replaced.

closes odoo/documentation#2264

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-27 14:35:22 +02:00
Elisabeth Dickinson
c82d95b17c [REF] odoo_theme: replace values with variables in SCSS files 2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
7fa153594d [REF] odoo_theme: move stray mixins into the _mixins.scss file 2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
fca78f44db [CLN] odoo_theme: remove unnecessary css 2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
383e3d4206 [CLN] odoo_theme: remove old doc's unused variables 2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
b9ca38215d [REF] odoo_theme: move scrollbar styling to .o_side_nav-inner 2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
9a2e8eefef [CLN] odoo_theme: remove old doc's utility mixins
These mixins were used in the old doc and were kept "just in case". The
`valid-radius` mixin already exists in the bootstrap library.
2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
994d273a59 [IMP] odoo_theme: replace "hide search matches" by a close button 2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
794e42f78b [IMP] odoo_theme: improve spacing around code blocks on reference pages 2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
0b536debac [FIX] odoo_theme: fix scrollTo margin/padding with new headers height
The scroll padding needed increasing with the new sub-header.
Unnecessary calc() and parenthesis on the headers-height variable are
removed.
2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
26bc1cd707 [FIX] odoo_theme: remove the horizontal scroll bar 2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
91cb3ca026 [IMP] odoo_theme: improve URL stylings
- Remove external-link icon on images.
- Remove underline from external-link icon on link hover.
- Add overflow-wrap on URLs on mobile.
2022-06-27 14:24:54 +02:00
Elisabeth Dickinson
2e693b3c4a [IMP] odoo_theme: improve general spacings and paddings 2022-06-27 14:24:54 +02:00
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