Commit Graph

217 Commits

Author SHA1 Message Date
Leloup Loïc (lole)
ad48a7d3e7 [IMP] cli: add unit to memory options
The documentation is unclear about the unit used for the --limit-memory-soft
and --limit-memory-hard options of odoo-bin.  The unit used is bytes, but
it isn't mentioned and the default unit is shown in mebibytes, causing
confusion.

closes odoo/documentation#5788

X-original-commit: 9fadc3355d
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-09-11 08:52:00 +00:00
Xavier (XPL)
66a0cec9aa [FIX] install: fix reference and redirect
closes odoo/documentation#5546

X-original-commit: f1db43b3ac
Signed-off-by: Xavier Platteau (xpl) <xpl@odoo.com>
2023-08-18 23:30:23 +02:00
Xavier (XPL)
42a8f492e7 [REF] install: move intro to main install page and split by install type
This PR moves the introduction about the different installation methods and editions found on the
install/install.rst page directly under the main install/ page. It creates three pages, one per
installation method documented on the install/install.rst page (Docker being documented on
docker.com and maintained by us), and moves the related content there. In addition, it fixes various
typos/grammar issues and improves the content according to the documentation guidelines. Various
references and links across the documentation had to be fixed accordingly.

task-3459070

closes odoo/documentation#5524

X-original-commit: c4c945e41c
Signed-off-by: Xavier Platteau (xpl) <xpl@odoo.com>
2023-08-17 22:32:42 +02:00
Antoine Vandevenne (anv)
5c4a66c051 [FIX] tutorials/getting_started: fix typos in example model name
Commit f36c612d13 changed the model name
in Chapter 4 without updating the other occurences.

closes odoo/documentation#5503

X-original-commit: b6f923d111
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-08-17 18:19:47 +02:00
chyde-clearwater
166cf797b7 [IMP] tutorials/getting_started: disambiguate example model name
I removed the dot notation in the  "_name" variable for the example
model. AKA, "test.model" is now named "test_model".

Dot notation implies a data structure relationship between a <model> and
it's parent (or class etc) <test> (like test.model() or Test.model).
There is no relationship like this between a <test> and <model> - it's
just one thing: a <test model>.

The seeming "benefit" of the ORM translating dots to underscores doesn't
justify this naming convention.  Yes, I know it's a string, but still,
this seems confusing for newbies and adds unnecessary complexity (why
name the same thing differently in different places?)

closes odoo/documentation#5136

X-original-commit: f36c612d13
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-07-18 12:07:16 +02:00
Benoit Socias
c79188d2ca [IMP] developer/views: add optional attribute for fields of list views
The attributes of fields of list views do not mention the `optional`
attribute while it is used by chapter 12 of the R&D Training.

This commit describes this `optional` attribute.

task-3380953

closes odoo/documentation#4902

X-original-commit: 5a446f5c59
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2023-06-27 14:08:40 +02:00
Benoit Socias
b6bc8a4ba8 [FIX] howto/rdtraining: ch.13 adapt reference to salesperson field
In chapter 13 the `property_ids` field is defined as the inverse of a
`user_id` field. But in chapter 8 when the salesperson field is added,
no such name is given to it.

This commit adapts the description to reference the general concept of
the field used to link to the salesperson instead of an actual field
identifier.

task-3381757

closes odoo/documentation#4903

X-original-commit: 3a131c829a
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-06-27 13:09:04 +02:00
Christophe Monniez
c1eeeb86a0 [FIX] deploy: reference the config parameter
The deploy documentation is assuming that `/etc/odoo.conf` is the
default config file, which is not the case.

With this commit, the configuration file references the cli
documentation.

closes odoo/documentation#4803

X-original-commit: 8aed7988ba
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2023-06-20 14:17:08 +02:00
Jonathan Castillo (jcs)
e9c0238d6e [MOV] accounting: restructuration of the accounting documentation
This commit improves the structure of the accounting documentation by
- reducing the levels necessary to reach the information
- grouping some docs
- moving content to their parent category page (content in all levels)
- renaming some sections to reflect the structure of the app better

task-3330093

closes odoo/documentation#4469

X-original-commit: 6f16d7e092
Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2023-05-19 20:22:58 +02:00
CVDE-odoo
5c8e46cfa8 [ADD] developer/howto: guide for theming
A complete guide on how to create a custom website theme for Odoo

closes odoo/documentation#4398

X-original-commit: 29203e94bd
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2023-05-12 08:15:46 +02:00
Antoine Vandevenne (anv)
0e76437341 [IMP] tutorials/getting_started: rework the environment setup guide
This commit replaces a big chunk of the instructions relative to the
environment setup with a reference to the equivalent steps listed in the
contribution guide. It also moves the content of the "Create your first
PR" section from chapter 16 to chapter 2, as readers were struggling
with the Git configuration required to push their work to GitHub as they
progressed through the tutorial.

closes odoo/documentation#4401

X-original-commit: 276f981703
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-05-11 10:36:05 +02:00
Mahmoud Metwally
f7444ef8af [FW][FIX] howtos/company: fix typos
closes odoo/documentation#4173

Forward-port-of: odoo/documentation#4147
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-04-17 17:50:24 +02:00
Mahmoud Metwally
35582d787a [FW][FIX] developer/web_services: fix typo
closes odoo/documentation#4156

Forward-port-of: odoo/documentation#4146
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-04-14 11:11:26 +02:00
Benoit Socias
fdd80103ba [IMP] tutorials: add warning about mutable global variables
The whole concept of multi-tenancy is not really approached within the
tutorial.

This commit adds a warning about never using mutable global variables
within odoo to seed the idea in the reader's mind.

task-3059110

closes odoo/documentation#3987

X-original-commit: 1ce7166f49
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
2023-04-03 13:12:24 +02:00
Antoine Vandevenne (anv)
31b7ebbb5f [ADD] extensions/cards: add an extension to implement cards
The extension adds two new directive:
- `cards` is the row container for one or more `card` directives.
- `card` is the implementation of a Bootstrap card that accepts a
  `target` argument for the href of the card, a `large` option to render
  the card on two columns, a `tag` option to display a single arbitrary
  tag on the card, and arbitrary content that is shown in the card
  body.

task-3141419

closes odoo/documentation#3684

X-original-commit: 72e636da5f
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-02-28 11:05:57 +01:00
Antoine Vandevenne (anv)
1b0e778220 [MOV] developer/cli: move "Command-line interface (CLI)" to the reference dir
task-2991663

closes odoo/documentation#3649

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-02-22 16:28:57 +01:00
Antoine Vandevenne (anv)
4136a71347 [MOV] developer/api/extract_api: move "Extract API" to the reference dir
task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:57 +01:00
Antoine Vandevenne (anv)
e24059f6af [MOV] developer/api/external_api: move "External API" to the reference dir
task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:56 +01:00
Antoine Vandevenne (anv)
354bb2b9d6 [MOV] developer/api/iap: move "In-App Purchase" to the howtos dir
task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:56 +01:00
Antoine Vandevenne (anv)
7e45350d56 [MOV] developer/iot: move "Internet of things" the howtos dir
task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:56 +01:00
Antoine Vandevenne (anv)
409dfed48a [IMP] tutorials/*: hide outdated tutorials
*: backend, web, website

task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:55 +01:00
Antoine Vandevenne (anv)
826c81b862 [MOV] howto/web: move "Customizing the webclient" to the tutorials dir
task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:55 +01:00
Antoine Vandevenne (anv)
023755d5fd [MOV] howto/website: move "Building a website" to the tutorials dir
task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:55 +01:00
Antoine Vandevenne (anv)
1e8450b66f [MOV] howtos/backend: move "Building a module" to the tutorials dir
task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:55 +01:00
Antoine Vandevenne (anv)
daf82ef1db [MOV] tutorials/getting_started/*: promote advanced chapters to independent tutorials
task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:54 +01:00
Antoine Vandevenne (anv)
1e5ab03f6a [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#3649
2023-02-22 16:28:54 +01:00
Antoine Vandevenne (anv)
b08d63a4c6 [ADD] developer/tutorials: add a directory for developer tutorials
task-2991663

Part-of: odoo/documentation#3649
2023-02-22 16:28:54 +01:00
Jonathan Castillo (jcs)
cddb38c443 [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#3574

Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2023-02-15 09:35:49 +01:00
Mahmoud Metwally
6a2bdd8abb [FW][FIX] developer/howtos: typos and phrasing
closes odoo/documentation#3554

Forward-port-of: odoo/documentation#3541
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-02-13 14:34:31 +01:00
Mahmoud Metwally
65aca15110 [FW][FIX] developer/javascript_reference: typos and phrasing
closes odoo/documentation#3473

Forward-port-of: odoo/documentation#3470
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2023-02-02 16:49:39 +01:00
Jonathan Castillo (jcs)
3f8bf2ef9c [IMP] accounting: update how to get api keys for silverfin integration
task 2918697

closes odoo/documentation#3425

X-original-commit: 9a0bf7bb0e
Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2023-01-27 14:34:40 +01:00
Mathieu (mano)
207b741d23 [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#3405

X-original-commit: 53035435f9
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-26 17:10:47 +01:00
Mahmoud Metwally
f6bb78491b Update qweb.rst
closes odoo/documentation#3286

X-original-commit: 8cde1f7b74
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-04 13:49:42 +01:00
Mahmoud Metwally
55f59daf2b [FIX] rdtraining: fix writing errors
closes odoo/documentation#3258

X-original-commit: ad91dd67c2
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2023-01-03 13:11:28 +01:00
Antoine Vandevenne (anv)
b7b36e9ef4 [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#3254
2023-01-03 10:19:42 +01:00
Horacio Tellez
6b3a572c65 [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#3180

X-original-commit: 67a75a3e11
Signed-off-by: Horacio Tellez Perez (hote) <hote@odoo.com>
2022-12-12 09:24:58 +01:00
Antoine Vandevenne (anv)
0a272f64ce [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#3149

X-original-commit: 359ab4d028
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-12-08 13:55:59 +01:00
Ivan Kropotkin
3f98f4bebd [FW][FIX] developer/reference: code example
closes odoo/documentation#3025

Forward-port-of: odoo/documentation#2943
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-11-24 18:01:07 +01:00
Victor Feyens
b6c338a1a5 [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#3003

X-original-commit: 9cc60baf46
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-11-21 18:30:48 +01:00
Victor Feyens
252161b161 [FIX] developer/mobile: use spaces and not tabs for indentation
closes odoo/documentation#2981

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-11-18 17:42:19 +01:00
Victor Feyens
749d99b7c5 [FIX] *: unbalanced literal markups
Part-of: odoo/documentation#2981
2022-11-18 17:42:18 +01:00
Victor Feyens
b8ef59ef84 [FIX] *: remove trailing whitespaces
Part-of: odoo/documentation#2981
2022-11-18 17:42:18 +01:00
Victor Feyens
d2c190f11e [FIX] *: enforce 1 newline on files end
Part-of: odoo/documentation#2981
2022-11-18 17:42:18 +01:00
Victor Feyens
c3d8cb2fdb [CLN] core: upgrade to python 3.6
& sort imports

closes odoo/documentation#2960

X-original-commit: 5128208495
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-11-17 09:41:55 +01:00
Victor Feyens
add6751897 [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#2859

X-original-commit: 758463edd4
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-10-25 18:53:47 +02:00
Jonathan Castillo (jcs)
c37f31b59a [IMP] *: Remove "SaaS" to keep only the "Odoo Online" appellation
task-3034812

closes odoo/documentation#2834

X-original-commit: eae71e6eda
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Castillo Jonathan (jcs) <jcs@odoo.com>
2022-10-21 15:27:35 +02:00
Elias
43ced953ed [FIX] developer/howtos/rdtraining: Update warning message
Update warning output for missing access rules.
Also reflect up-to-date contents of res.country.state.csv.

closes odoo/documentation#2823

X-original-commit: e21dbd01c9
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2022-10-18 12:58:48 +02:00
Xavier-Do
21a914e777 [ADD] developer/reference: add a reference page on performance
closes odoo/documentation#2791

X-original-commit: 4d8e3f9785
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Co-authored-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-10-06 13:21:03 +02:00
Aleksander
168b5956c0 [FW][IMP] howtos/rdtraining: give the meaning of "ACL"
closes odoo/documentation#2776

Forward-port-of: odoo/documentation#2774
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-09-30 13:21:45 +02:00
Claire Bretton (clbr)
ef06d3828d [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#2727

X-original-commit: 338fe297b0
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
2022-09-16 16:38:50 +02:00