From e81f186ff8524e92fb44a83dff450e0c67e97058 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 12 Oct 2016 12:36:33 +0200 Subject: [PATCH] [FIX] doc: change references to odoo.py to odoo-bin --- doc/howtos/backend.rst | 12 ++++++------ doc/howtos/web.rst | 2 +- doc/howtos/website.rst | 10 +++++----- doc/reference/cmdline.rst | 14 +++++++------- doc/reference/testing.rst | 2 +- doc/setup/deploy.rst | 18 +++++++++--------- doc/setup/enterprise.rst | 2 +- doc/setup/install.rst | 12 ++++++------ 8 files changed, 36 insertions(+), 36 deletions(-) diff --git a/doc/howtos/backend.rst b/doc/howtos/backend.rst index cf86992af4c..46891f181a5 100644 --- a/doc/howtos/backend.rst +++ b/doc/howtos/backend.rst @@ -20,13 +20,13 @@ Business logic and extension is generally performed on the server side, although supporting client features (e.g. new data representation such as interactive maps) can be added to the client. -In order to start the server, simply invoke the command :ref:`odoo.py +In order to start the server, simply invoke the command :ref:`odoo-bin ` in the shell, adding the full path to the file if necessary: .. code:: bash - odoo.py + odoo-bin The server is stopped by hitting ``Ctrl-C`` twice from the terminal, or by killing the corresponding OS process. @@ -67,7 +67,7 @@ Module structure ---------------- Each module is a directory within a *module directory*. Module directories -are specified by using the :option:`--addons-path ` +are specified by using the :option:`--addons-path ` option. .. tip:: @@ -90,13 +90,13 @@ might contain:: from . import mymodule -Odoo provides a mechanism to help set up a new module, :ref:`odoo.py +Odoo provides a mechanism to help set up a new module, :ref:`odoo-bin ` has a subcommand :ref:`scaffold ` to create an empty module: .. code-block:: console - $ odoo.py scaffold + $ odoo-bin scaffold The command creates a subdirectory for your module, and automatically creates a bunch of standard files for a module. Most of them simply contain commented code @@ -109,7 +109,7 @@ or XML. The usage of most of those files will be explained along this tutorial. .. only:: solutions - #. Invoke the command ``odoo.py scaffold openacademy addons``. + #. Invoke the command ``odoo-bin scaffold openacademy addons``. #. Adapt the manifest file to your module. #. Don't bother about the other files. diff --git a/doc/howtos/web.rst b/doc/howtos/web.rst index 3f373cb4ecd..10fb797145d 100644 --- a/doc/howtos/web.rst +++ b/doc/howtos/web.rst @@ -39,7 +39,7 @@ following command: This will create a ``petstore`` folder wherever you executed the command. You then need to add that folder to Odoo's -:option:`addons path `, create a new database and +:option:`addons path `, create a new database and install the ``oepetstore`` module. If you browse the ``petstore`` folder, you should see the following content: diff --git a/doc/howtos/website.rst b/doc/howtos/website.rst index 7812ea7ec78..51450f40e5a 100644 --- a/doc/howtos/website.rst +++ b/doc/howtos/website.rst @@ -26,7 +26,7 @@ module. To quickly get started simply invoke: .. code-block:: console - $ ./odoo.py scaffold Academy my-modules + $ ./odoo-bin scaffold Academy my-modules This will automatically create a ``my-modules`` *module directory* with an ``academy`` module inside. The directory can be an existing module directory @@ -46,7 +46,7 @@ Although it does absolutely nothing we can install it: .. code-block:: console - $ ./odoo.py --addons-path addons,my-modules + $ ./odoo-bin --addons-path addons,my-modules * go to http://localhost:8069 * create a new database including demonstration data @@ -70,7 +70,7 @@ Shut down your server (:kbd:`^C`) then restart it: .. code-block:: console - $ ./odoo.py --addons-path addons,my-modules + $ ./odoo-bin --addons-path addons,my-modules and open a page to http://localhost:8069/academy/academy/, you should see your "page" appear: @@ -102,11 +102,11 @@ Academy` and clicking :guilabel:`Upgrade`. .. tip:: Alternatively, Odoo can be restarted :option:`and update modules at - the same time`: + the same time`: .. code-block:: console - $ odoo.py --addons-path addons,my-modules -d academy -u academy + $ odoo-bin --addons-path addons,my-modules -d academy -u academy Going to http://localhost:8069/academy/academy/ should now result in: diff --git a/doc/reference/cmdline.rst b/doc/reference/cmdline.rst index cbee882bec4..6bd7502f201 100644 --- a/doc/reference/cmdline.rst +++ b/doc/reference/cmdline.rst @@ -3,7 +3,7 @@ .. _reference/cmdline: =============================== -Command-line interface: odoo.py +Command-line interface: odoo-bin =============================== .. _reference/cmdline/server: @@ -11,7 +11,7 @@ Command-line interface: odoo.py Running the server ================== -.. program:: odoo.py +.. program:: odoo-bin .. option:: -d , --database @@ -239,7 +239,7 @@ customize the amount of logging output .. code-block:: console - $ odoo.py --log-handler :DEBUG --log-handler werkzeug:CRITICAL --log-handler odoo.fields:WARNING + $ odoo-bin --log-handler :DEBUG --log-handler werkzeug:CRITICAL --log-handler odoo.fields:WARNING .. option:: --log-request @@ -296,14 +296,14 @@ customize the amount of logging output Scaffolding =========== -.. program:: odoo.py scaffold +.. program:: odoo-bin scaffold Scaffolding is the automated creation of a skeleton structure to simplify bootstrapping (of new modules, in the case of Odoo). While not necessary it avoids the tedium of setting up basic structures and looking up what all starting requirements are. -Scaffolding is available via the :command:`odoo.py scaffold` subcommand. +Scaffolding is available via the :command:`odoo-bin scaffold` subcommand. .. option:: -t