Commit Graph

3036 Commits

Author SHA1 Message Date
luvi
bca9ac151f [ADD] web: add useSpellCheck hook documentation
This commit brings the documentation for the useSpellCheck hook,
introduced in commit (1). The documentation contains some example
and details on how to use the hook properly.

(1): 130719e584

Part-of: odoo/documentation#3261
2023-01-09 12:22:44 +01:00
Olivier Dony
5045aecce2
[CHG] legal: partnership contract v10 (update SH commission)
Version not bumped for ES translation, since it needs other updates
first
2023-01-09 11:57:17 +01:00
Olivier Dony
9966e8771a
[FIX] legal: show license for Odoo 16 2023-01-09 11:44:47 +01:00
Antoine Vandevenne (anv)
9af7a4ca01 [FIX] odoo_theme: handle non-TOC pages when expanding top menu entries
Trying to "expand" those pages lead to a crash that prevented the menu
to be shown at all.

Incidentally, this commit also handles menus built with `make fast`.

closes odoo/documentation#3275

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-09 09:07:02 +01:00
Antoine Vandevenne (anv)
0ef10a1606 [IMP] odoo_theme: scroll the active menu entry into view
In large and deeply nested TOCs like finance/accounting/fiscal_localizations/localizations/...
the user had to constantly scroll the menu to the menu entry they just
clicked because the expanded menu would not fit entirely on the page.
With this commit, the active menu entry is scrolled into view each time
the page is reloaded.

The previous behavior was also the reason for expanding the top menu
entries on only the homepage. Thanks to the scroll, they now always
expand.

Part-of: odoo/documentation#3275
2023-01-09 09:07:01 +01:00
Sam Lieber (sali)
076534b1f0 [ADD] maintain: setup mailjet api
closes odoo/documentation#3307

X-original-commit: 197a1cc932
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Samuel Lieber (sali) <sali@odoo.com>
2023-01-06 16:34:17 +01:00
Antoine Vandevenne (anv)
49eb51b5d8 [FIX] odoo_theme: re-enable redirect fallback logic
closes odoo/documentation#3303

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-06 12:29:46 +01:00
Valentin Vallaeys (vava)
da9c9aa1ab [IMP] payment_providers: add paragraph about currency field
The lists of supported currencies by payment provider are displayed on
the form view and are editable, because our list may not be up-to-date.
Empty lists stand for "no filtering" on the payment providers to access
payment methods.

task-2926016

closes odoo/documentation#2788

Related: odoo/enterprise#34158
Related: odoo/odoo#101018
Related: odoo/upgrade#4069
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-05 16:51:53 +01:00
Odoo's Mergebot
d4f4e8684e
[MERGE] odoo_theme: SCSS code clean up
In order to reduce the size of our css files:
Some unused or repeated code was found and removed.
Variables have been cleaned up, the way the admonitions (alerts) were created has been modified,

Expanding the use of BS variables in order to reduce repeated code and to stay consistent in the general design.
Sphinx was updated which made some changes in the DOM, breaking some of the CSS:
the literals for example, these have been fixed in this PR.
The font sizes were breaking the typescale, this has been fixed by modifying the typescale
rather than hardcoding font sizes.

closes odoo/documentation#3296

Forward-port-of: odoo/documentation#3293
Forward-port-of: odoo/documentation#3225
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-05 15:37:29 +01:00
Jorge Pinna Puissant
68a35753c6 [IMP] * : kanban, unify dropdown definition in archs
This commit add the documentation for the new 'kanban-menu' template
(the ellipsis dropdown menu).

No that, this commit add also the documentation for the 'kanban-tooltip'
template.

closes odoo/documentation#3284

Task-id: 3096776
Related: odoo/odoo#107589
Related: odoo/enterprise#34962
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-05 15:37:07 +01:00
Elisabeth Dickinson
e74a893812 [IMP][CSS] Replace text-decoration on link with BS override 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
35230f0fc5 [IMP][CSS] Reorder styles according to styles guidelines 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
11aa498ed5 [IMP] fix typo 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
fef7820521 [IMP] icon fixes 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
6d09d506b9 [IMP][CSS] Fix unresponsive font-size on alert text
By removing $font-size-sm on the alerts, the text is bigger. The title
text and its icon have been increased as well.
2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
d52966b147 [IMP][CSS] Remove browser prefixes and unnecessary mixins 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
530774b60b [IMP][CSS] Fix literals in alerts containing tabs 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
ba0c7f42ba [IMP][CSS] Fix data indentation 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
b65f74055f [IMP][CSS] Fix alignment on modal btn-close 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
93e7ee9673 [IMP] Indentation fix 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
8d6d1a7b3c [REM] Removal of changelog
The idea was not developed and it has since been decided not to do it.
2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
21b1bf81b9 [IMP][CSS] Use BS font-weight variables and fix
Instead of redefining font-weights, we override the BS variables and add
one extra font-weight in the newly-introduced extended utilities file.
After this change all the variables needed replacing and some tweaking
was needed to get the same or closely similar result as before this
change.

By doing so the font-weight classes in the typography file were obsolete
and hence removed.
Some other font-weight issues which were already there have been fixed
in this commit too.
2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
f2c8501d8f [IMP][CSS] Fix color variable issue 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
699fdc0ceb [IMP][CSS] Revamp of the .o_spoiler element to use same code as alerts 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
61e5bf08b5 [IMP][CSS]Change order of imported scss files
The aim of this cleanup is to use as many bootstrap classes, functions
and utilities as possible to reduce the amount of extra code.
Instead of redefining variables, BS variables are overridden in the
bootstrap_overridden file.

In order to be able to reuse these overridden variables within our own
custom variable file — and after consultation with SRI — it was
determined that the variables.scss file should come after the bootstrap
files in the order of importation, unlike the order of odoo website's
scss files.

Changes to variables in bootstrap_overridden have been made to adapt to
the new structure.
2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
6dbff460fb [IMP][CSS] Use CSS variables to style different alert types
CSS variables avoid having to repeat code for each alert type.
Also remove the need to add "tip" to the theme-colors (no need for "tip"
styled buttons, badges etc, especially as tips use the primary color) by
styling `.alert-tip` with customized copy of BS alert mechanism.

In order to be able to modify the icons with a CSS variable,
the `content` attribute has been removed from the `o-inline-icon` mixin.
Code where this mixin is called in other places has been adapted.
2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
60ad2bdb7d [IMP][CSS] Place overrides in bootstrap_overridden file 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
35aaad62c9 [IMP][CSS] Clean up the file according to conventions
Includes reordering styles, renaming variables ($o-*),
re-indenting lines, removing commented code
2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
9cd2ec28f7 [IMP][CSS] Set gray background to it's original darker color 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
bed5b9edb7 [IMP][CSS] Improve literals styling (o_code, .sig-*) 2023-01-05 12:53:11 +01:00
Elisabeth Dickinson
5c931f7ec8 [IMP][CSS] Update _sphinx_basic.css after update of Sphinx
Note: Some code is commented instead of being deleted.
This allows us to keep track of what should be commented out in future
versions of Sphinx' basic CSS.
2023-01-05 12:53:10 +01:00
Elisabeth Dickinson
b85a92be63 [IMP][CSS] Remove repetitive or unnused CSS 2023-01-05 12:53:10 +01:00
Elisabeth Dickinson
e4afa7c177 [IMP][CSS] Improve margins on headings and sections 2023-01-05 12:53:10 +01:00
Elisabeth Dickinson
a9d1450111 [IMP][CSS] Replace margin and padding values with variables 2023-01-05 12:53:10 +01:00
Elisabeth Dickinson
001fe6bd1e [IMP][CSS] Revamp modal to use all BS classes and variables 2023-01-05 12:53:10 +01:00
Elisabeth Dickinson
33cccf063f [IMP][CSS] Rescale heading fonts 2023-01-05 12:53:10 +01:00
Elisabeth Dickinson
4eab217696 [IMP][CSS] Cleanup font variables 2023-01-05 12:53:10 +01:00
Elisabeth Dickinson
a85cb3bc92 [IMP][CSS] Cleanup admonitions (alerts) 2023-01-05 12:53:10 +01:00
Elisabeth Dickinson
1e0b95df13 [IMP][CSS] Cleanup color variables 2023-01-05 12:53:10 +01:00
Elisabeth Dickinson
778fbc37a6 [IMP][CSS] update literals styles (.o_code, .sig-*) 2023-01-05 12:53:10 +01:00
Antoine Vandevenne (anv)
2ef1219109 [IMP] odoo_theme: add the class o_code on literals
The SCSS that styles the `literal`, `code`, `file`, and `command` roles
is excessively complex because the traduction from RST to HTML is not
consistent from one role to another: some use `<code>` elements, some
have the `code` class, some wrap the literal with a `span` element.

This commit sets the `o_code` class on all of these roles' parent node
at translation time to allow simplifying the SCSS target.
2023-01-05 12:53:10 +01:00
Mahmoud Metwally
1a95d1cd6f Update qweb.rst
closes odoo/documentation#3289

X-original-commit: 8cde1f7b74
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-04 15:48:18 +01:00
Mahmoud Metwally
14be609d38 [FIX] rdtraining: fix writing errors
closes odoo/documentation#3276

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-04 11:35:54 +01:00
Sam Lieber (sali)
a63621dc7a [FIX] maintain: correct cname definition
closes odoo/documentation#3281

X-original-commit: 96cbb2375b
Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2023-01-03 23:42:51 +01:00
Jason (jaae)
5c8abb54b9 [IMP] project: adding description to app page
closes odoo/documentation#3274

X-original-commit: cfaf4386c2
Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2023-01-03 21:23:00 +01:00
Antoine Vandevenne (anv)
4d51aecd95 [IMP] README: remove version from links and rephrase explanations
task-2897123

closes odoo/documentation#3265

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-03 20:14:55 +01:00
Antoine Vandevenne (anv)
872bee0033 [IMP] contributing/documentation: rewrite the contribution guide
This commit restructures the contributing/documentation page to re-use
content introduced with the contributing/development page and to
display the two ways to contribute (github vs git) in content tabs
rather than sections.

The guide is simplified and updated to delegate long explanations to
other pages or websites, remove useless images and focus on getting
users ready to contribute.

task-2897123

Part-of: odoo/documentation#3265
2023-01-03 20:14:55 +01:00
Antoine Vandevenne (anv)
f778ba89af [ADD] contributing/development: add a guide to contribute to the codebase
In addition, this commit extracts the git guidelines from the coding
guidelines. This helps link the git guidelines and unclutter the coding
guidelines, which should focus on only the programming languages.

task-2897123

Part-of: odoo/documentation#3265
2023-01-03 20:14:55 +01:00
Julien Castiaux
ca445c86c8 [IMP] core: additionnal country db for geoip
closes odoo/documentation#2151

Task: 2848206
Related: odoo/enterprise#27399
Related: odoo/odoo#91337
Signed-off-by: Julien Castiaux <juc@odoo.com>
Co-authored-by: Lau-Odoo <46811180+Lau-Odoo@users.noreply.github.com>
Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-03 13:15:55 +01:00
LoredanaLrpz
26364227a6 [IMP] pos: update tip info, remove and update screenshots
closes odoo/documentation#3253

Taskid: 3005150
X-original-commit: 4b258e1401
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2023-01-03 09:52:46 +01:00