Commit Graph

99 Commits

Author SHA1 Message Date
Antoine Vandevenne (anv)
f6ab6d6b99 [MOV] developer/cli: move "Command-line interface (CLI)" to the reference dir
task-2991663

closes odoo/documentation#3629

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-02-21 16:06:50 +01:00
Antoine Vandevenne (anv)
5ace4c412c [MOV] developer/api/extract_api: move "Extract API" to the reference dir
task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:49 +01:00
Antoine Vandevenne (anv)
4dc1dd592e [MOV] developer/api/external_api: move "External API" to the reference dir
task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:49 +01:00
Antoine Vandevenne (anv)
ef569fb76d [MOV] developer/api/iap: move "In-App Purchase" to the howtos dir
task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:49 +01:00
Antoine Vandevenne (anv)
d185c1ac69 [MOV] developer/iot: move "Internet of things" the howtos dir
task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:49 +01:00
Antoine Vandevenne (anv)
3a5712f206 [IMP] tutorials/*: hide outdated tutorials
*: backend, web, website

task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:48 +01:00
Antoine Vandevenne (anv)
63c7896740 [MOV] howto/web: move "Customizing the webclient" to the tutorials dir
task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:48 +01:00
Antoine Vandevenne (anv)
a8f61ee312 [MOV] howto/website: move "Building a website" to the tutorials dir
task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:48 +01:00
Antoine Vandevenne (anv)
747d39fa91 [MOV] howtos/backend: move "Building a module" to the tutorials dir
task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:48 +01:00
Antoine Vandevenne (anv)
052a51b068 [MOV] tutorials/getting_started/*: promote advanced chapters to independent tutorials
task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:47 +01:00
Antoine Vandevenne (anv)
433e5607ac [MOV] howto/rdtraining: move "Getting started" to the tutorials dir
This commit also replaces references to the "Building a module"
tutorial by references to the "Getting started" tutorial.

task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:47 +01:00
Antoine Vandevenne (anv)
8485ae16b5 [ADD] developer/tutorials: add a directory for developer tutorials
task-2991663

Part-of: odoo/documentation#3629
2023-02-21 16:06:47 +01:00
Jonathan Castillo (jcs)
643834ced1 [FIX] *: RST cleanup
RST cleanup to comply with the RST guidelines. This is required so we
can use "make test", as there are currently hundreds of errors. For now,
it is unusable because of the oldest code in this repo.

closes odoo/documentation#3567

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2023-02-14 11:24:31 +01:00
Mahmoud Metwally
b763d67216 [FIX] developer/howtos: typos and phrasing
Backport of #3541 in 14.0

closes odoo/documentation#3542

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-02-13 11:35:20 +01:00
Jonathan Castillo (jcs)
957a9f9fb8 [IMP] dev/api: add ref custom anchor to external api keys
closes odoo/documentation#3424

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2023-01-27 09:46:12 +01:00
Mathieu (mano)
c59663f252 [IMP] toctrees: redesign and new card component
The goal of this commit is to propose a first step towards a new
`.. card::` directive for the toctrees. This is a first design
proposition for this new card component in raw html for the fallback
page `howtos.rst`

The long term objective is to redesign the toctrees by implementing card
components, clearer toctree list design and custom html pages.

Related to task-3059229

closes odoo/documentation#3326

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-25 16:01:55 +01:00
Mahmoud Metwally
ad91dd67c2 [FIX] rdtraining: fix writing errors
closes odoo/documentation#3248

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-02 12:52:35 +01:00
Antoine Vandevenne (anv)
09c062f571 [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#3169
2023-01-02 12:03:48 +01:00
Horacio Tellez
67a75a3e11 [FIX] rdtraining: remove outdated line about journal_id in chapter 14
In chapter 14 there was a line pointing to how to deduce a default journal for an `account.move` record.
This is no longer needed as the journal is automatically deduced using the `move_type`. Also, the link
point to an outdated line of code that causes an error.

closes odoo/documentation#3172

Signed-off-by: Horacio Tellez Perez (hote) <hote@odoo.com>
2022-12-12 08:14:41 +01:00
Antoine Vandevenne (anv)
0b9279d52f [IMP] conf.py, *: interpolate the version and releases in the content
This commit replaces hard-coded occurrences of the version and of the
last, current and next releases' version with placeholders interpolated
at build time to avoid manually updating these after each freeze.

task-2917614

closes odoo/documentation#3051

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-12-08 10:00:21 +01:00
Victor Feyens
9cc60baf46 [IMP] developer/howtos: deprecate themes tutorial
This tutorial was already outdated in 13.0 (but
supposedly working).

In 14.0+, a lot of changes happened in website logic,
especially for 'website option definitions', breaking
the existing theme tutorial.

Considering the fact that a new tutorial is being made,
and that fixing the whole existing tutorial would be
a big work, it will be kept, but hidden as 'most things
being said still make sense'.

closes odoo/documentation#2998

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-11-21 17:20:55 +01:00
Victor Feyens
c1914e16f7 [FIX] developer/mobile: use spaces and not tabs for indentation
closes odoo/documentation#2978

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-11-18 17:33:14 +01:00
Victor Feyens
06f328a39e [FIX] *: unbalanced literal markups
Part-of: odoo/documentation#2978
2022-11-18 17:33:14 +01:00
Victor Feyens
efb6c47e92 [FIX] *: remove trailing whitespaces
Part-of: odoo/documentation#2978
2022-11-18 17:33:14 +01:00
Victor Feyens
4af7600805 [FIX] *: enforce 1 newline on files end
Part-of: odoo/documentation#2978
2022-11-18 17:33:13 +01:00
Victor Feyens
8a5aa384d3 [CLN] core: upgrade to python 3.6
& sort imports

closes odoo/documentation#2954

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-11-15 16:21:56 +01:00
Victor Feyens
758463edd4 [FIX] developer/guidelines: do not mention deprecated xml tags
act_window & report xml tags have been deprecated by
6835aeb0de
two years ago, we should avoid mentioning them in the guidelines.

Furthermore, in 17.0 they won't be available anymore.

closes odoo/documentation#2857

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-10-25 17:42:26 +02:00
Claire Bretton (clbr)
338fe297b0 [IMP] developer/howtos/rdtraining: Add missing information about module category.
Adds explanations and directive for module category creation, so it can be used correctly at res.groups creation.

closes odoo/documentation#2721

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-09-15 17:16:16 +02:00
Antoine Vandevenne (anv)
9279fb80a7 [IMP] rdtraining: mention that the second part needs to be completed too
closes odoo/documentation#2536

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-08-01 12:38:54 +02:00
Victor Feyens
1c4abe4e07 [CLN] rdtraining: remove reference to unexisting file
The referenced `bypass.py` file isn't specified anywhere in
the training documentation or code content.

The paragraph is removed to avoid meaningless searches and
confusing trainees.

This commit also adds a missing parenthese in the preceding
code content.

Fixes #2488

closes odoo/documentation#2518

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-25 12:08:07 +02:00
Benoit Socias
b8ee134a28 [IMP] rdtraining: update float utils information
The warning about float utils does not state where to find them, and
they are preceded by an example in the code that infringes the warning's
recommendation.

This commit indicates where to find the float utils and replaces the
example by one that uses them.

task-2925402

closes odoo/documentation#2507

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-20 10:17:22 +02:00
Antoine Vandevenne (anv)
11460f4c93 [IMP] developer/rdtraining: simplify the development environment setup
In an attempt to help new developers install Odoo with a
straightforward procedure, Chapter 2 of the "Getting started" tutorial
included copy-pastes of parts of the "Installing Odoo" page. This proved
to be inefficient because it required maintaining documentation on the
installation procedure in several places and misled the readers by
suggesting installing the Python requirements *after* installing
PostgreSQL.

With this commit, the page on Chapter 2 is refreshed to be clearer to
the readers and redirect them to the "Installing Odoo" page when
necessary.

task-2908434

closes odoo/documentation#2380

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-12 12:34:54 +02:00
Antoine Vandevenne (anv)
4e67b8986c [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#2350

X-original-commit: ad374af15d
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-07-04 10:38:45 +02:00
Antoine Vandevenne (anv)
7f95e9e2e0 [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#2329

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-28 14:16:15 +02:00
Valentin Chevalier
96d822bf87 [IMP] developer/howtos: Add missing information about debug mode
In chapter 3 of the developer core training, one is asked to click on a
button that is only shown in debug mode but there is no indication about
this mode in this chapter.

closes odoo/documentation#2286

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-06-24 17:47:24 +02:00
Julien Castiaux
3d2f067e6c [IMP] rdtraining: tip about -i/-u for odoo-bin
It is never shown to the trainee that he can install/update a module
right from the CLI. Multiple developpers still use the app manager to
install/update their modules multiple months into the job.

closes odoo/documentation#2181

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-06-10 16:56:54 +02:00
Antoine Vandevenne (anv)
0fc521886f [MOV] developer/api/odoo: rename odoo.rst into external_api.rst
The previous file name was not very relevant in regard to the content of
the page, and it conflicted with the `sys.path`.

closes odoo/documentation#2026

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-20 14:03:48 +02:00
Antoine Vandevenne (anv)
91c20a2c03 [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#2026
2022-05-20 14:03:47 +02:00
Altela Eleviansyah Pramardhika
b883c3c99c [FW][FIX] developer/howtos: Fixed typo from field to fields
closes odoo/documentation#2028

Forward-port-of: odoo/documentation#2023
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-05-19 14:23:47 +02:00
Altela Eleviansyah Pramardhika
da0a76e8ca [FW][FIX] developer/howtos: missing parentheses in print statement
Added parentheses in a print function

closes odoo/documentation#1926

Forward-port-of: odoo/documentation#1923
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-05-06 11:08:50 +02:00
Antoine Vandevenne (anv)
f8f5ed93e1 [FIX] developer/rdtraining: fix typos
closes odoo/documentation#1862

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-04-25 12:07:45 +02:00
Dossogne Bertrand
19eddfdd3f [FIX] developer: fix duplicate action availability
The duplicate action is not available for list views

closes odoo/documentation#1855

X-original-commit: ce1961ebaf
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-04-25 10:47:12 +02:00
Dossogne Bertrand
e487e94ee6 [FIX] developer: fix duplicate availability
The duplicate action is not available for list views

closes odoo/documentation#1847

X-original-commit: 9cf425d886
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-04-22 18:11:24 +02:00
Benoit Socias
5a39ba7d24 [IMP] rdtraining: clarify transition sentence to view inheritance
The "View Inheritance" section is introduced by a sentence that can be
understood as "do this task then we'll be ready to go the next section"
instead of "in the next section we will see how to do this task".
This can confuse the reader into thinking that some knowledge was not
acquired in the previous parts.

This commit makes it clear that the task described in the transition
sentence will be achieved in the next part.

task-2822582

closes odoo/documentation#1826

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-04-13 12:52:44 +02:00
Benoit Socias
2ebb7fe802 [IMP] rdtraining: add note about Settings requiring at least one app
At the point when the developer mode is introduced in the training, it is
confusing because the documentation page describes the option inside the
Settings page, but that page only appears if at least one application is
installed. (Otherwise, the Settings app shows the Users instead)

This commit adds a note so that the reader does not start looking for a
screen that cannot be reached at that point.

task-2822582

Part-of: odoo/documentation#1826
2022-04-13 12:52:43 +02:00
Altela Eleviansyah Pramardhika
d78e1ecb59 [FIX] developer/rdtraining: fix typo
Fixed `name = field.Char(required=True)` to
`name = fields.Char(required=True)`.

closes odoo/documentation#1816

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-04-11 09:59:11 +02:00
0b11001111
112b6c1267 [IMP] developer: extend internationalization guide
In order for javascript translations to become active, the corresponding
addon needs to follow a certain naming scheme or register explicitly.
This commit updates the internationalization guide with a respective
hint.

Fixes odoo/documentation#1676

closes odoo/documentation#1710

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2022-03-18 15:09:10 +01:00
bve-odoo
c90d977653 [FIX] dev/misc/cmdline: update url werkzeug
URL was pointing to a dead end.
Update from
http://werkzeug.pocoo.org/docs/contrib/fixers/#werkzeug.contrib.fixers.ProxyFix
to
https://werkzeug.palletsprojects.com/en/0.16.x/middleware/proxy_fix/#module-werkzeug.middleware.proxy_fix
new URL as we are using 0.16.1

closes odoo/documentation#1705

X-original-commit: 7ce175ff55
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-03-17 11:48:56 +01:00
Antoine Vandevenne (anv)
c123d0b978 [IMP] developer/cli: mention the different ways of calling the CLI
All examples on the page suggest calling the CLI with "odoo-bin" while
it is recommended to call it with "odoo" when Odoo was installed from a
distribution package. It also failed to mention the location of
"odoo-bin" relative to the source files.

The chance is also taken to rename the somewhat unclear page title to
something more clear and generic.

closes odoo/documentation#1695

X-original-commit: b81c121ea0
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-03-14 11:08:24 +00:00
Antoine Vandevenne (anv)
85b7200944 [IMP] developer/api/extract_api: rework page to get rid of switchers
task-2787415

closes odoo/documentation#1688

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-03-11 14:14:17 +00:00