From 0ddeb2209578cf855ec74aa9c0fee069e73e8cd0 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 7 Feb 2019 16:26:51 +0000 Subject: [DOC] actions : add ir.cron documentation --- doc/reference/actions.rst | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) (limited to 'doc/reference') diff --git a/doc/reference/actions.rst b/doc/reference/actions.rst index 904cb89db13..4396d3adff1 100644 --- a/doc/reference/actions.rst +++ b/doc/reference/actions.rst @@ -160,7 +160,7 @@ via two fields: { "type": "ir.actions.act_url", - "url": "http://odoo.com", + "url": "https://odoo.com", "target": "self", } @@ -420,3 +420,41 @@ how the POS interface works. .. [#notquitem2m] technically not an M2M: adds a sequence field and may be composed of just a view type, without a view id. + +.. _reference/actions/cron: + +Automated Actions (``ir.cron``) +====================================== + +Actions triggered automatically on a predefined frequency. + +``name`` + Name of the automated action (Mainly used in log display) + +``interval_number`` + Number of *interval_type* uom between two executions of the action + +``interval_type`` + Unit of measure of frequency interval (``minutes``, ``hours``, ``days``, ``weeks``, ``months``, + +``numbercall`` + Number of times this action has to be run. + If the action is expected to run indefinitely, set to ``-1``. + +``doall`` + Boolean precising whether the missed actions have to be executed in case of + server restarts. + +``model_id`` + Model on which this action will be called + +``code`` + Code content of the action. + Can be a simple call to the model's method : + + .. code-block:: python + + model.() + +``nextcall`` + Next planned execution date of this action (date/time format) -- cgit v1.2.3 From 87003e214eca7aafa3bf322cf2623afcbfd98716 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 7 Feb 2019 16:32:01 +0000 Subject: [DOC] batch of UI, Https, linter corrections --- doc/reference/cmdline.rst | 36 ++++---- doc/reference/data.rst | 6 +- doc/reference/javascript_api.rst | 2 + doc/reference/javascript_cheatsheet.rst | 6 +- doc/reference/javascript_reference.rst | 24 +++-- doc/reference/mixins.rst | 155 ++++++++++++++++---------------- doc/reference/module.rst | 2 +- doc/reference/qweb.rst | 26 +++--- doc/reference/reports.rst | 16 ++-- doc/reference/testing.rst | 15 +--- doc/reference/translations.rst | 11 ++- 11 files changed, 150 insertions(+), 149 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/cmdline.rst b/doc/reference/cmdline.rst index d10a3e8c0ec..9e71ce600d6 100644 --- a/doc/reference/cmdline.rst +++ b/doc/reference/cmdline.rst @@ -85,8 +85,8 @@ Running the server .. option:: --max-cron-threads - number of workers dedicated to cron jobs. Defaults to 2. The workers are - threads in multi-threading mode and processes in multi-processing mode. + number of workers dedicated to :ref:`cron ` jobs. Defaults to 2. + The workers are threads in multi-threading mode and processes in multi-processing mode. For multi-processing mode, this is in addition to the HTTP worker processes. @@ -175,10 +175,10 @@ database listen by using the --database parameter and specifying a comma-separated list of databases - When combining the two parameters, db-filter superseed the comma-separated + When combining the two parameters, db-filter supersedes the comma-separated database list for restricting database list, while the comma-separated list is used for performing requested operations like upgrade of modules. - + .. code-block:: bash odoo-bin --db-filter ^11.*$ @@ -190,7 +190,7 @@ database odoo-bin --database 11firstdatabase,11seconddatabase Restrict access to only two databases, 11firstdatabase and 11seconddatabase - + .. code-block:: bash odoo-bin --database 11firstdatabase,11seconddatabase -u base @@ -199,16 +199,16 @@ database and update base module on one database: 11firstdatabase If database 11seconddatabase doesn't exist, the database is created and base modules is installed - + .. code-block:: bash odoo-bin --db-filter ^11.*$ --database 11firstdatabase,11seconddatabase -u base - + Restrict access to databases whose name starts with 11, and update base module on one database: 11firstdatabase If database 11seconddatabase doesn't exist, the database is created and base modules is installed - + .. option:: --db-template -The main template calls the translatable template with ``doc.partner_id.lang`` as a -``t-lang`` parameter, so it will be rendered in the language of the partner. This way, -each Sale Order will be printed in the language of the corresponding customer. If you wish -to translate only the body of the document, but keep the header and footer in a default +The main template calls the translatable template with ``doc.partner_id.lang`` as a +``t-lang`` parameter, so it will be rendered in the language of the partner. This way, +each Sale Order will be printed in the language of the corresponding customer. If you wish +to translate only the body of the document, but keep the header and footer in a default language, you could call the report's external layout this way:: @@ -180,7 +180,7 @@ language, you could call the report's external layout this way:: .. tip:: Please take note that this works only when calling external templates, you will not be - able to translate part of a document by setting a ``t-lang`` attribute on an xml node other + able to translate part of a document by setting a ``t-lang`` attribute on an xml node other than ``t-call``. If you wish to translate part of a template, you can create an external template with this partial template and call it from the main one with the ``t-lang`` attribute. @@ -345,4 +345,4 @@ For example, you can access a Sale Order report in html mode by going to Or you can access the pdf version at \http:///report/pdf/sale.report_saleorder/38 -.. _wkhtmltopdf: http://wkhtmltopdf.org +.. _wkhtmltopdf: https://wkhtmltopdf.org diff --git a/doc/reference/testing.rst b/doc/reference/testing.rst index c1d9410bc4a..12ab6609829 100644 --- a/doc/reference/testing.rst +++ b/doc/reference/testing.rst @@ -43,12 +43,6 @@ and ``__init__.py`` contains:: test modules which are not imported from ``tests/__init__.py`` will not be run -.. versionchanged:: 8.0 - - previously, the test runner would only run modules added to two lists - ``fast_suite`` and ``checks`` in ``tests/__init__.py``. In 8.0 it will - run all imported modules - The test runner will simply run any test case, as described in the official `unittest documentation`_, but Odoo provides a number of utilities and helpers related to testing Odoo content (modules, mainly): @@ -108,10 +102,7 @@ Tests are automatically run when installing or updating modules if :option:`--test-enable ` was enabled when starting the Odoo server. -As of Odoo 8, running tests outside of the install/update cycle is not -supported. - -.. _unittest documentation: https://docs.python.org/2/library/unittest.html +.. _unittest documentation: https://docs.python.org/3/library/unittest.html Test selection -------------- @@ -514,7 +505,7 @@ test runner will then create a phantom_js browser, point it to the proper url and simulate the click and inputs, according to the scenario. -.. _qunit: http://qunitjs.com/ +.. _qunit: https://qunitjs.com/ .. _qunit_config.js: https://github.com/odoo/odoo/blob/51ee0c3cb59810449a60dae0b086b49b1ed6f946/addons/web/static/tests/helpers/qunit_config.js#L49 .. _web.js_tests_assets: https://github.com/odoo/odoo/blob/51ee0c3cb59810449a60dae0b086b49b1ed6f946/addons/web/views/webclient_templates.xml#L427 .. _web.qunit_suite: https://github.com/odoo/odoo/blob/51ee0c3cb59810449a60dae0b086b49b1ed6f946/addons/web/views/webclient_templates.xml#L509 @@ -523,4 +514,4 @@ and simulate the click and inputs, according to the scenario. .. _test_utils.js: https://github.com/odoo/odoo/blob/51ee0c3cb59810449a60dae0b086b49b1ed6f946/addons/web/static/tests/helpers/test_utils.js .. _mock server: https://github.com/odoo/odoo/blob/51ee0c3cb59810449a60dae0b086b49b1ed6f946/addons/web/static/tests/helpers/mock_server.js .. _qunit assertions: https://github.com/odoo/odoo/blob/51ee0c3cb59810449a60dae0b086b49b1ed6f946/addons/web/static/tests/helpers/qunit_asserts.js -.. _createView: https://github.com/odoo/odoo/blob/51ee0c3cb59810449a60dae0b086b49b1ed6f946/addons/web/static/tests/helpers/test_utils_create.js#L267 \ No newline at end of file +.. _createView: https://github.com/odoo/odoo/blob/51ee0c3cb59810449a60dae0b086b49b1ed6f946/addons/web/static/tests/helpers/test_utils_create.js#L267 diff --git a/doc/reference/translations.rst b/doc/reference/translations.rst index 81ec506df63..b30bb58d3d9 100644 --- a/doc/reference/translations.rst +++ b/doc/reference/translations.rst @@ -7,6 +7,11 @@ Translating Modules =================== +This section explains how to provide translation abilities to your module. + +.. note:: If you want to contribute to the translation of Odoo itself, please refer to the + `Odoo Wiki page `_. + Exporting translatable term =========================== @@ -184,6 +189,6 @@ Read vs Run Time }; -.. _PO File: http://en.wikipedia.org/wiki/Gettext#Translating -.. _msginit: http://www.gnu.org/software/gettext/manual/gettext.html#Creating -.. _POEdit: http://poedit.net/ +.. _PO File: https://en.wikipedia.org/wiki/Gettext#Translating +.. _msginit: https://www.gnu.org/software/gettext/manual/gettext.html#Creating +.. _POEdit: https://poedit.net/ -- cgit v1.2.3 From da01e44bb7d8515e5caa50aec38afdd7a61fa38a Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Tue, 16 Apr 2019 08:36:41 +0000 Subject: [DOC] fix module.rst --- doc/reference/module.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/reference') diff --git a/doc/reference/module.rst b/doc/reference/module.rst index 7a262690ede..437d2c411ee 100644 --- a/doc/reference/module.rst +++ b/doc/reference/module.rst @@ -106,7 +106,7 @@ Available manifest fields are: located in ``static/src/css`` inside the module. ``images`` (``list(str)``) Specify image files to be used by the module. -``installable`` (``bool`` default: ``False``) +``installable`` (``bool`` default: ``True``) Whether a user should be able to install the module from the Web UI or not. ``maintainer`` (``str``) Person or entity in charge of the maintenance of this module, by default -- cgit v1.2.3 From dc350c503a154b54fb8a94c112de7a40d6533303 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Wed, 17 Apr 2019 14:13:30 +0000 Subject: [DOC] sphinx warning removal --- doc/reference/javascript_api.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc/reference') diff --git a/doc/reference/javascript_api.rst b/doc/reference/javascript_api.rst index 1b2d1231ca8..b35cd431d5b 100644 --- a/doc/reference/javascript_api.rst +++ b/doc/reference/javascript_api.rst @@ -1,3 +1,4 @@ +:orphan: :banner: banners/javascript.jpg .. highlight:: javascript @@ -11,4 +12,4 @@ Javascript API ============== .. automodule:: * - :members: \ No newline at end of file + :members: -- cgit v1.2.3 From b94b08e5794a13a637ca1564ada417cee28d4697 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Wed, 17 Apr 2019 14:48:26 +0000 Subject: [DOC] ir.actions.act_window.view --- doc/reference/actions.rst | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/actions.rst b/doc/reference/actions.rst index 4396d3adff1..b205d9116db 100644 --- a/doc/reference/actions.rst +++ b/doc/reference/actions.rst @@ -21,16 +21,16 @@ e.g. button methods. All actions share two mandatory attributes: A client can get actions in 4 forms: -``False`` - if any action dialog is currently open, close it -A string - if a :ref:`client action ` matches, interpret as - a client action's tag, otherwise treat as a number -A number - read the corresponding action record from the database, may be a database - identifier or an :term:`external id` -A dictionary - treat as a client action descriptor and execute +* ``False`` + if any action dialog is currently open, close it +* A string + if a :ref:`client action ` matches, interpret as + a client action's tag, otherwise treat as a number +* A number + read the corresponding action record from the database, may be a database + identifier or an :term:`external id` +* A dictionary + treat as a client action descriptor and execute .. _reference/actions/window: @@ -102,12 +102,27 @@ dialog:: In-database window actions have a few different fields which should be ignored by clients, mostly to use in composing the ``views`` list: -``view_mode`` - comma-separated list of view types as a string. All of these types will be +``view_mode`` (default= ``tree,form`` ) + comma-separated list of view types as a string (/!\\ No spaces /!\\). All of these types will be present in the generated ``views`` list (with at least a ``False`` view_id) ``view_ids`` M2M\ [#notquitem2m]_ to view objects, defines the initial content of ``views`` + + .. note:: Act_window views can also be defined cleanly through ``ir.actions.act_window.view``. + + If you plan to allow multiple views for your model, prefer using + ir.actions.act_window.view instead of the action ``view_ids`` + + .. code-block:: xml + + + + tree + + + + ``view_id`` specific view added to the ``views`` list in case its type is part of the ``view_mode`` list and not already filled by one of the views in -- cgit v1.2.3 From 240e2d51eaa7b8e07c3c6a63e9bbac937a9b9ae2 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 18 Apr 2019 10:08:49 +0000 Subject: [REM] unused odoo/doc/reference/test-report.txt --- doc/reference/test-report.txt | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 doc/reference/test-report.txt (limited to 'doc/reference') diff --git a/doc/reference/test-report.txt b/doc/reference/test-report.txt deleted file mode 100644 index 795bc044074..00000000000 --- a/doc/reference/test-report.txt +++ /dev/null @@ -1,25 +0,0 @@ -test_empty_find (odoo.addons.web.tests.test_dataset.TestDataSetController) ... ok -test_ids_shortcut (odoo.addons.web.tests.test_dataset.TestDataSetController) ... ok -test_regular_find (odoo.addons.web.tests.test_dataset.TestDataSetController) ... ok -web.testing.stack: direct, value, success ... ok -web.testing.stack: direct, deferred, success ... ok -web.testing.stack: direct, value, error ... ok -web.testing.stack: direct, deferred, failure ... ok -web.testing.stack: successful setup ... ok -web.testing.stack: successful teardown ... ok -web.testing.stack: successful setup and teardown ... ok - -[snip ~150 lines] - -test_convert_complex_context (odoo.addons.web.tests.test_view.DomainsAndContextsTest) ... ok -test_convert_complex_domain (odoo.addons.web.tests.test_view.DomainsAndContextsTest) ... ok -test_convert_literal_context (odoo.addons.web.tests.test_view.DomainsAndContextsTest) ... ok -test_convert_literal_domain (odoo.addons.web.tests.test_view.DomainsAndContextsTest) ... ok -test_retrieve_nonliteral_context (odoo.addons.web.tests.test_view.DomainsAndContextsTest) ... ok -test_retrieve_nonliteral_domain (odoo.addons.web.tests.test_view.DomainsAndContextsTest) ... ok - ----------------------------------------------------------------------- -Ran 181 tests in 15.706s - -OK - -- cgit v1.2.3 From 96e208c19122b355437968297de2669eda2bed4a Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 18 Apr 2019 14:00:15 +0000 Subject: [DOC] Ir Actions Server documentation Since commit 8fa9f7d6d4bc75bb78547358c3cb1c398b1a52ca refactoring the actions server, the documentation was outdated. This commit removes and fixes the documentation on ir.actions.server. Also adds the display of the docstring of the IrActionsServer class from odoo.addons.base.models.ir_actions. Solves #31044 --- doc/reference/actions.rst | 224 ++++++++++++++++------------------------------ 1 file changed, 79 insertions(+), 145 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/actions.rst b/doc/reference/actions.rst index b205d9116db..dd00ce0ab5e 100644 --- a/doc/reference/actions.rst +++ b/doc/reference/actions.rst @@ -18,6 +18,10 @@ e.g. button methods. All actions share two mandatory attributes: ``name`` short user-readable description of the action, may be displayed in the client's interface +``binding_model_id`` + if set, the action is available in the action bar for the given model + + .. note:: For Server Actions, use ``model_id``. A client can get actions in 4 forms: @@ -186,6 +190,8 @@ will replace the current content section by the Odoo home page. Server Actions (``ir.actions.server``) ====================================== +.. autoclass:: odoo.addons.base.models.ir_actions.IrActionsServer + Allow triggering complex server code from any valid action location. Only two fields are relevant to clients: @@ -199,151 +205,90 @@ specific or generic actions based on their ``state``. Some fields (and corresponding behaviors) are shared between states: ``model_id`` - Odoo model linked to the action, made available in - :ref:`evaluation contexts ` -``condition`` (optional) - evaluated as Python code using the server action's - :ref:`evaluation context `. If - ``False``, prevents the action from running. Default: ``True`` + Odoo model linked to the action. -Valid action types (``state`` field) are extensible, the default types are: +``state`` -``code`` --------- +* ``code``: Executes python code given through the ``code`` argument. -The default and most flexible server action type, executes arbitrary Python -code with the action's :ref:`evaluation context -`. Only uses one specific type-specific -field: +* ``object_create``: Creates a new record of model ``crud_model_id`` following ``fields_lines`` specifications. -``code`` - a piece of Python code to execute when the action is called +* ``object_write``: Updates the current record(s) following ``fields_lines`` specifications -.. code-block:: xml +* ``multi``: Executes serveral actions given through the ``child_ids`` argument. - - Res Partner Server Action - - - raise Warning(object.name) - - +State fields +------------ + +Depending on its state, the behavior is defined through different fields. +The concerned state is given after each field. + +``code`` (code) + Specify a piece of Python code to execute when the action is called + + .. code-block:: xml + + + Res Partner Server Action + + + raise Warning(record.name) + + + + .. note:: -.. note:: - - The code segment can define a variable called ``action``, which will be - returned to the client as the next action to execute: - - .. code-block:: xml - - - Res Partner Server Action - - - if object.some_condition(): - action = { - "type": "ir.actions.act_window", - "view_mode": "form", - "res_model": object._name, - "res_id": object.id, - } - - - - will ask the client to open a form for the record if it fulfills some - condition - -This tends to be the only action type created from :ref:`data files -`, other types aside from -:ref:`reference/actions/server/multi` are simpler than Python code to define -from the UI, but not from :ref:`data files `. - -.. _reference/actions/server/object_create: - -``object_create`` ------------------ - -Creates a new record, from scratch (via :meth:`~odoo.models.Model.create`) -or by copying an existing record (via :meth:`~odoo.models.Model.copy`) - -``use_create`` - the creation policy, one of: - - ``new`` - creates a record in the model specified by ``model_id`` - ``new_other`` - creates a record in the model specified by ``crud_model_id`` - ``copy_current`` - copies the record on which the action was invoked - ``copy_other`` - copies an other record, obtained via ``ref_object`` -``fields_lines`` + The code segment can define a variable called ``action``, which will be + returned to the client as the next action to execute: + + .. code-block:: xml + + + Res Partner Server Action + + + if record.some_condition(): + action = { + "type": "ir.actions.act_window", + "view_mode": "form", + "res_model": record._name, + "res_id": record.id, + } + + + + will ask the client to open a form for the record if it fulfills some + condition + + .. This tends to be the only action type created from :ref:`data files + `, other types aside from + :ref:`reference/actions/server/multi` are simpler than Python code to define + from the UI, but not from :ref:`data files `. + +``crud_model_id`` (create)(required) + model in which to create a new record +``link_field_id`` (create) + many2one to ``ir.model.fields``, specifies the current record's m2o field + on which the newly created record should be set (models should match) + +``fields_lines`` (create/write) fields to override when creating or copying the record. :class:`~odoo.fields.One2many` with the fields: ``col1`` - ``ir.model.fields`` to set in the model implied by ``use_create`` + ``ir.model.fields`` to set in the concerned model + (``crud_model_id`` for creates, ``model_id`` for updates) ``value`` value for the field, interpreted via ``type`` - ``type`` + ``type`` (value|reference|equation) If ``value``, the ``value`` field is interpreted as a literal value (possibly converted), if ``equation`` the ``value`` field is interpreted as a Python expression and evaluated -``crud_model_id`` - model in which to create a new record, if ``use_create`` is set to - ``new_other`` -``ref_object`` - :class:`~odoo.fields.Reference` to an arbitrary record to copy, used if - ``use_create`` is set to ``copy_other`` -``link_new_record`` - boolean flag linking the newly created record to the current one via a - many2one field specified through ``link_field_id``, defaults to ``False`` -``link_field_id`` - many2one to ``ir.model.fields``, specifies the current record's m2o field - on which the newly created record should be set (models should match) -``object_write`` ----------------- - -Similar to :ref:`reference/actions/server/object_create` but alters an -existing records instead of creating one - -``use_write`` - write policy, one of: - - ``current`` - write to the current record - ``other`` - write to an other record selected via ``crud_model_id`` and - ``ref_object`` - ``expression`` - write to an other record whose model is selected via ``crud_model_id`` - and whose id is selected by evaluating ``write_expression`` -``write_expression`` - Python expression returning a record or an object id, used when - ``use_write`` is set to ``expression`` in order to decide which record - should be modified -``fields_lines`` - see :ref:`reference/actions/server/object_create` -``crud_model_id`` - see :ref:`reference/actions/server/object_create` -``ref_object`` - see :ref:`reference/actions/server/object_create` - -.. _reference/actions/server/multi: - -``multi`` ---------- - -Executes multiple actions one after the other. Actions to execute are defined -via the ``child_ids`` m2m. If sub-actions themselves return actions, the last -one will be returned to the client as the multi's own next action - -``client_action`` ------------------ - -Indirection for directly returning an other action defined using -``action_id``. Simply returns that action to the client for execution. +``child_ids`` (multi) + Specify the multiple sub-actions (``ir.actions.server``) to enact in state multi. + If sub-actions themselves return actions, the last + one will be returned to the client as the multi's own next action .. _reference/actions/server/context: @@ -353,23 +298,12 @@ Evaluation context A number of keys are available in the evaluation context of or surrounding server actions: -``model`` - the model object linked to the action via ``model_id`` -``object``, ``obj`` - only available if ``active_model`` and ``active_id`` are provided (via - context) otherwise ``None``. The actual record selected by ``active_id`` -``pool`` - the current database registry -``datetime``, ``dateutil``, ``time`` - corresponding Python modules -``cr`` - the current cursor -``user`` - the current user record -``context`` - execution context -``Warning`` - constructor for the ``Warning`` exception +* ``model`` model object linked to the action via ``model_id`` +* ``record``/``records`` record/recorset on which the action is triggered, can be void. +* ``env`` Odoo Environment +* ``datetime``, ``dateutil``, ``time``, ``timezone`` corresponding Python modules +* ``log: log(message, level='info')`` logging function to record debug information in ir.logging table +* ``Warning`` constructor for the ``Warning`` exception .. _reference/actions/report: -- cgit v1.2.3 From 65093459e950c4a0b313b955a17b22765fa1e082 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Thu, 18 Apr 2019 15:56:46 +0000 Subject: [DOC] ir actions report minor fixes --- doc/reference/actions.rst | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/actions.rst b/doc/reference/actions.rst index dd00ce0ab5e..c545075b87b 100644 --- a/doc/reference/actions.rst +++ b/doc/reference/actions.rst @@ -161,6 +161,9 @@ The server-side composition of the ``views`` sequence is the following: * ``groups_id``? * ``filter``? +.. [#notquitem2m] technically not an M2M: adds a sequence field and may be + composed of just a view type, without a view id. + .. _reference/actions/url: URL Actions (``ir.actions.act_url``) @@ -317,13 +320,15 @@ Triggers the printing of a report in a list of some sort ``model`` (mandatory) the model your report will be about -``report_type`` (mandatory) +``report_type`` (default=qweb-pdf) either ``qweb-pdf`` for PDF reports or ``qweb-html`` for HTML -``report_name`` +``report_name`` (mandatory) the name of your report (which will be the name of the PDF output) ``groups_id`` :class:`~odoo.fields.Many2many` field to the groups allowed to view/use the current report +``multi`` + if set to ``True``, the action will not be displayed on a form view. ``paperformat_id`` :class:`~odoo.fields.Many2one` field to the paper format you wish to use for this report (if not specified, the company format will be used) @@ -367,9 +372,6 @@ Triggers an action implemented entirely in the client. tells the client to start the Point of Sale interface, the server has no idea how the POS interface works. -.. [#notquitem2m] technically not an M2M: adds a sequence field and may be - composed of just a view type, without a view id. - .. _reference/actions/cron: Automated Actions (``ir.cron``) -- cgit v1.2.3 From ef5251c0d720a6199b34c239344bb353c9f3d15e Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Fri, 19 Apr 2019 09:24:09 +0000 Subject: [DOC] cmdline scaffold example --- doc/reference/cmdline.rst | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'doc/reference') diff --git a/doc/reference/cmdline.rst b/doc/reference/cmdline.rst index 9e71ce600d6..8e04683bfee 100644 --- a/doc/reference/cmdline.rst +++ b/doc/reference/cmdline.rst @@ -181,31 +181,31 @@ database .. code-block:: bash - odoo-bin --db-filter ^11.*$ + $ odoo-bin --db-filter ^11.*$ Restrict access to databases whose name starts with 11 .. code-block:: bash - odoo-bin --database 11firstdatabase,11seconddatabase + $ odoo-bin --database 11firstdatabase,11seconddatabase Restrict access to only two databases, 11firstdatabase and 11seconddatabase .. code-block:: bash - odoo-bin --database 11firstdatabase,11seconddatabase -u base + $ odoo-bin --database 11firstdatabase,11seconddatabase -u base Restrict access to only two databases, 11firstdatabase and 11seconddatabase, - and update base module on one database: 11firstdatabase + and update base module on one database: 11firstdatabase. If database 11seconddatabase doesn't exist, the database is created and base modules is installed .. code-block:: bash - odoo-bin --db-filter ^11.*$ --database 11firstdatabase,11seconddatabase -u base + $ odoo-bin --db-filter ^11.*$ --database 11firstdatabase,11seconddatabase -u base Restrict access to databases whose name starts with 11, - and update base module on one database: 11firstdatabase + and update base module on one database: 11firstdatabase. If database 11seconddatabase doesn't exist, the database is created and base modules is installed @@ -321,7 +321,7 @@ customize the amount of logging output logs to the ``ir.logging`` model (``ir_logging`` table) of the specified database. The database can be the name of a database in the "current" - PostgreSQL, or `a PostgreSQL URI`_ for e.g. log aggregation + PostgreSQL, or `a PostgreSQL URI`_ for e.g. log aggregation. .. option:: --log-handler @@ -428,21 +428,27 @@ starting requirements are. Scaffolding is available via the :command:`odoo-bin scaffold` subcommand. -.. option:: -t