Odoo documentation sources
Go to file
Alex Tuyls 4f5165f038
Merge pull request #392 from odoo/update-ssl-doc-alt
Update SSL doc for the saas
2019-09-04 11:08:18 +02:00
_extensions Fix custom translator setup 2017-04-25 16:18:26 +02:00
_static [FIX] mementoes: Fix some terms/computation/links 2017-06-23 14:21:37 +02:00
.tx [I18N] do not translate legal on Transifex 2017-05-09 13:51:06 +02:00
accounting [FIX] accounting: correct title size 2018-07-26 15:13:39 +02:00
crm [FIX] crm: update screenshot with right URL 2019-08-29 09:34:56 +02:00
db_management [FIX] db_management: correct URL 2018-07-27 11:05:02 +02:00
discuss [FIX] discuss: typo easiliy -> easily 2019-05-28 14:29:00 +02:00
ecommerce [ADD] ecommerce: How to get paid with Authorize.Net 2017-06-07 15:31:41 +02:00
expense [ADD] expense: Overall flow documentation 2016-11-03 14:19:29 +01:00
general [IMP] general: avoid screaming 2017-06-16 11:05:57 +02:00
getting_started Update documentation.rst 2017-12-05 09:40:46 -08:00
inventory [FIX] inventory: Explain how to access the product barcode configuration form 2017-10-17 11:21:14 +02:00
legal [ADD] legal: add license section for v11 2017-10-13 14:53:31 +02:00
locale [FIX] discuss: typo easiliy -> easily 2019-05-28 14:29:00 +02:00
manufacturing [FIX] manufacturing: Fix small typo in Setting up a basic BoM 2017-03-16 16:23:33 +01:00
point_of_sale [IMP] pos: Remove reference to previous posbox 2017-03-22 16:47:30 +01:00
project [IMP] Remove unused files, inexistant references, fix the warnings on build 2016-10-14 14:55:14 +02:00
purchase [IMP] purchase: Update How to manage Purchase Tenders to v10 2017-03-03 14:27:58 +01:00
sales [FIX] sales: English 2018-07-26 14:08:46 +02:00
website Update SSL doc for the saas 2019-09-04 10:45:28 +02:00
.gitignore [FIX] git and sphinx ignore, remove committed pyc files 2015-11-20 11:36:44 +01:00
accounting.rst [IMP] all: new design to match the one on odoo.com 2016-04-26 11:23:38 +02:00
applications.rst [MOV] discuss: Split getting_started.rst into several sections 2017-01-12 17:10:39 +01:00
business.rst [FIX] mementoes: Fix some terms/computation/links 2017-06-23 14:21:37 +02:00
conf.py [ADD] conf: display version number in the switcher app 2018-10-29 15:19:33 +01:00
crm.rst [ADD] How to synchronize your calendar with Google Calendar 2017-01-03 13:45:05 +01:00
discuss.rst [ADD] Discuss: new doc for external email servers 2017-03-09 11:15:17 +01:00
ecommerce.rst [ADD] ecommerce: New app section 2016-09-21 15:59:42 +02:00
expense.rst [FIX] expense: remove warning 2017-03-23 15:40:19 +01:00
general.rst [ADD] general: How to allow users to sign in with their Google account 2017-01-03 14:01:13 +01:00
index.rst [ADD] link to business memento 2017-06-16 16:28:03 +02:00
inventory.rst [IMP] inventory: make the structure consistent with the 'Odoo 9 Documentation' spreadsheet 2015-11-04 10:39:37 +01:00
legal.rst [IMP] add online terms of sale to legal TOC 2017-07-13 11:29:53 +02:00
Makefile [IMP] latex: copy PDF files next to HTML output 2016-05-25 23:27:55 +02:00
manufacturing.rst [FIX] manufacturing: code is better when not commented 2016-11-17 14:28:51 +01:00
point_of_sale.rst [ADD] point_of_sale: belgian fiscal data module documentation 2015-12-16 16:12:16 +01:00
practical.rst [IMP] Move legal section into Practical Information 2016-12-22 14:14:12 +01:00
project.rst [IMP] Remove empty pages from TOCs 2015-12-08 10:42:19 +01:00
purchase.rst [ADD] purchase: How to setup a minimum stock rule? 2015-09-24 14:51:06 +02:00
README.rst [IMP] README bits 2015-07-14 11:14:15 +02:00
sales.rst [ADD] sale: How to give portal access rights to my customers? 2016-03-18 16:04:39 +01:00
website.rst [ADD] website: How to track your traffic through Google Analytics 2016-09-21 15:59:46 +02:00

===========================
End-user Odoo documentation
===========================

Building requirements:

* Python 2.7
* recent `Sphinx <http://sphinx-doc.org>`_ (at least Sphinx 1.2)

  you can check if Sphinx is installed by trying to launch

  .. code-block:: console

     $ sphinx-build --version

  See `the sphinx documentation <http://sphinx-doc.org/install.html>`_
  for local installation instructions.
* `git <http://www.git-scm.com>`_
* clone this repository using git, then at the root of the repository,
  in a console,

  .. code-block:: console

     $ make html

  this should compile the documentation to HTML, and put the generated
  HTML in ``_build/html/index.html``.

Contributions
=============

For simple edition (typo, just add paragraphs of text without markup),
the Github web interface can be used directly.

For more complex edition, to add images or advanced directives, edit
locally. **Do not commit if there are warnings or errors when building
the documentation** fix them first. rST is fairly sensitive to
whitespace and newlines (especially the lack of newlines). It's a bit
annoying but it's not hard to learn.

Issues can be reported on the repository's bug tracker as usual.

Custom features
===============

Extensions
----------

Two custom directives are provided for integration with Odoo's demo
system:

* ``demo:fields:: {external_id}`` lists all the fields with a
  tooltip (``help``) of the action whose ``external_id`` is provided.

  - Uses the ``form`` view by default, can be customized by specifying
    ``:view:``.
  - The list of fields displayed can be filtered with ``:only:`` which
    should be a list of space-separated fields to display. Note that
    this will further reduce the number of fields displayed, it will
    not force fields to be listed when they don't have a ``help``.

  .. code-block:: restructuredtext

     .. demo:fields:: account_asset.action_account_asset_asset_list_normal_sale
        :only: name

  will display a table of just the ``name`` field and its ``help`` (or
  nothing if the ``name`` field does not have a ``help``)

* ``demo:action:: {external_id}`` will create a link button to the
  action (specified by external id) on the demo site. The text of the
  button should be provided as the directive's content:

  .. code-block:: restructuredtext

     .. demo:action:: account_asset.action_account_asset_asset_list_normal_sale

        View *Asset Types*

Theme Customisations
--------------------

* The Odoo theme supports *Banner Images* at the top of
  documents. These banners are configured by setting a ``:banner:``
  field at the top of the document (before the page title), the banner
  images will be looked up in the ``_static`` folder at the root of
  the project

  .. code-block:: restructuredtext

     :banner: banners/accounting.png

     ==========
     Accounting
     ==========

     [...]

  .. warning::

     because banners are wide images and each page may have one, it is
     strongly recommended to compress them well. For PNG, use
     `pngquant <https://pngquant.org>`_ (or a UI to it) to reduce the
     number of colors in the image followed by regular PNG
     recompression tools like `pngcrush
     <http://pmt.sourceforge.net/pngcrush/>`_ and `pngout
     <http://www.advsys.net/ken/util/pngout.htm>`_.



Importing existing documents
============================

For documents which already exist in an other format or in Google
docs, it's possible to get a head-start by converting the existing
document using `Pandoc <http://pandoc.org>`_. The main issue is that
anything but trivial original documents will need fixing up (possibly
lots of it) to get *good* rST (or possibly working rST at all).

Example::

  pandoc -f docx -t rst path/to/document.docx -o new_doc.rst --extract-media=.

will convert ``path/to/document.docx`` to ``new_doc.rst`` and export
all images to ``./media`` (and link them from the document). While
there are issues with the exported document, it's much more convenient
than manually re-typing the original.