Odoo documentation sources
Go to file
2015-11-26 10:48:53 +01:00
_extensions [FIX] 1.2 compatibility 2015-11-20 11:37:57 +01:00
_static [ADD] sales: Create all the doc pages 2015-11-10 14:59:04 +01:00
.tx [I18N] update .tx/config file 2015-11-24 11:17:32 +01:00
accounting [FIX] accounting: online_sync 2015-11-25 17:18:45 +01:00
crm [FIX] Rewrite the intro according to the standard code width 2015-11-20 12:32:17 +01:00
inventory [FIX] inventory: Remove obsolete reference 2015-11-20 11:51:00 +01:00
locale [I18N] fetch new terms from Transifex 2015-11-25 17:21:49 +01:00
point_of_sale [ADD] point_of_sale: Getting daily sales statistics 2015-11-26 10:48:53 +01:00
project [FIX] Rewrite the intro according to the standard code width 2015-11-20 12:32:17 +01:00
purchase [ADD] purchase: How to setup drop-shipping? 2015-11-20 10:11:34 +01:00
sales [ADD] Sales: Introduction to Odoo Sales 2015-11-20 12:33:51 +01:00
.gitignore [FIX] git and sphinx ignore, remove committed pyc files 2015-11-20 11:36:44 +01:00
accounting.rst [ADD] Accouting: Add section Accounting->Others 2015-10-27 17:07:01 +01:00
applications.rst [ADD] project: created all the doc pages 2015-11-19 14:36:04 +01:00
conf.py [FIX] project-specific static files 2015-11-23 10:39:11 +01:00
crm.rst [ADD] crm: How to analyze the sales performance of your team and get customize reports 2015-10-29 15:16:28 +01:00
expenses.rst [IMP] all: better banners 2015-09-21 17:23:03 +02:00
index.rst [ADD] nav link to root document from any subdocument 2015-07-20 13:43:28 +02:00
inventory.rst [IMP] inventory: make the structure consistent with the 'Odoo 9 Documentation' spreadsheet 2015-11-04 10:39:37 +01:00
Makefile [ADD] Modify build scripts to enable translations 2015-11-03 13:50:27 +01:00
point_of_sale.rst [ADD] point_of_sale: Add all the documentation pages 2015-11-13 15:17:18 +01:00
project.rst [ADD] project: created all the doc pages 2015-11-19 14:36:04 +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
recruitment.rst [IMP] all: better banners 2015-09-21 17:23:03 +02:00
sales.rst [ADD] sales: Create all the doc pages 2015-11-10 14:59:04 +01: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.