# Copyright (C) 2020, XCG Consulting # This file is distributed under the same license as the Odoo Scripts # package. # Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr>, 2020. msgid "" msgstr "" "Project-Id-Version: Odoo Scripts 3.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-03-04 16:53+0100\n" "PO-Revision-Date: 2022-03-04 17:07+0100\n" "Last-Translator: Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr>\n" "Language: fr\n" "Language-Team: XCG Consulting\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.9.1\n" "X-Generator: Poedit 2.4.2\n" #: ../../README.rst:3 msgid "Odoo Scripts" msgstr "Scripts Odoo" #: ../../README.rst:5 msgid "" "Most commands can be run directly or with the image build from ``Dockerfile`` " "(xcgd/odoo_scripts) by indicating the command to run, but the best way to use " "this module is to install it. Installing will also install dependencies." msgstr "" #: ../../README.rst:8 msgid "Scripts" msgstr "Scripts" #: ../../README.rst:10 msgid "" "Those scripts are available when installing the package, and can also be run " "directly." msgstr "" #: ../../README.rst:12 msgid "" "The recommend way to install this module is to run ``python3 -m pip install hg" "+https://orus.io/xcg/odoo_scripts#egg=odoo_scripts``, or to clone it then run " "``python3 -m pip install .``." msgstr "" #: ../../README.rst:14 msgid "" "Some scripts are in other sections, because they need some specialized " "library, in that case you need to indicate the name of section as in ``python3 " "-m pip install \"hg+https://orus.io/xcg/" "odoo_scripts#egg=odoo_scripts[docker]\"``. The prerequisites for this module " "or one of its section can be installed by using pip3 or the package manager; " "the requirements are defined in ``setup.py``." msgstr "" #: ../../README.rst:17 msgid "" "As there is no way of indicating sections (worse, it is handling them " "incorrectly), do not use ``python3 setup.py install``." msgstr "" #: ../../README.rst:20 msgid "docker_black" msgstr "docker_black" #: ../../README.rst:22 msgid "" "Run dockerized black on provided directory. black must be present in the " "project image." msgstr "" #: ../../README.rst:24 ../../README.rst:31 ../../README.rst:38 #: ../../README.rst:45 ../../README.rst:104 msgid "This is part of the docker section." msgstr "" #: ../../README.rst:27 msgid "docker_isort" msgstr "docker_isort" #: ../../README.rst:29 msgid "" "Run dockerized isort on current directory. This uses a configuration file that " "is adapted to OCA guidelines for imports." msgstr "" #: ../../README.rst:34 msgid "docker_pylint" msgstr "docker_pylint" #: ../../README.rst:36 msgid "" "Run dockerized pylint on provided module name. Pylint must be present in the " "project image." msgstr "" #: ../../README.rst:41 msgid "docker_prettier" msgstr "docker_prettier" #: ../../README.rst:43 msgid "" "Run dockerized prettier on provided directory. prettier must be present in the " "project image." msgstr "" #: ../../README.rst:48 msgid "conf2reST.py" msgstr "conf2reST.py" #: ../../README.rst:50 msgid "" "This script is used to produce a reST file from setup.cfg, the Dockerfile and " "the ``.hgconf``/``nest.yaml`` file." msgstr "" #: ../../README.rst:52 msgid "" "When the package is installed, the executable for this script is " "``conf2reST``. This is part of the conf2reST section." msgstr "" #: ../../README.rst:56 msgid "update_duplicate_sources.py" msgstr "update_duplicate_sources.py" #: ../../README.rst:58 msgid "" "This script will update a project that only contain the sources of the one it " "is launched from." msgstr "" #: ../../README.rst:60 ../../README.rst:239 ../../README.rst:290 msgid "" "It expect the configuration file (`setup.cfg`_) to have the following keys:" msgstr "" #: ../../README.rst:62 ../../README.rst:242 msgid "" "``modules``: list of directories and files to include (also used by another " "script)" msgstr "" #: ../../README.rst:63 msgid "" "``dependencies``: list of directories and files to include (also used by " "another script)" msgstr "" #: ../../README.rst:64 msgid "" "``other_sources``: list of directories and files to include (only used by this " "script, used for README, ReleaseNotes, script directories, etc.)" msgstr "" #: ../../README.rst:65 msgid "" "``duplicate_repo``: target repository, if none are specified, uses the same " "URL and append `_sources` to it." msgstr "" #: ../../README.rst:67 msgid "No change are made to the name of the directories/files included." msgstr "" #: ../../README.rst:69 msgid "" "When the package is installed, the executable for this script is " "``update_duplicate_sources``. This is part of the source_control section." msgstr "" #: ../../README.rst:73 msgid "docker_dev_start.py" msgstr "docker_dev_start.py" #: ../../README.rst:75 msgid "" "This script starts an odoo from a docker but with the local addons modules " "mounted, and eventually a local copy of the odoo sources mounted too." msgstr "" #: ../../README.rst:77 msgid "Using it avoids having to create a virtual environment for every project." msgstr "" #: ../../README.rst:79 ../../README.rst:99 msgid "Prerequisites:" msgstr "Prérequis :" #: ../../README.rst:81 ../../README.rst:101 msgid "Your user needs to be in the docker group." msgstr "" #: ../../README.rst:82 msgid "" "It expects the `configuration file <setup.cfg>`_ to have the following keys:" msgstr "" #: ../../README.rst:84 msgid "``modules``" msgstr "" #: ../../README.rst:85 msgid "list of directories and files to include" msgstr "" #: ../../README.rst:87 msgid "…" msgstr "" #: ../../README.rst:89 msgid "" "When the package is installed, the executable for this script is " "``docker_dev_start``. This is part of the docker section." msgstr "" #: ../../README.rst:93 msgid "docker_pg.py" msgstr "docker_pg.py" #: ../../README.rst:95 msgid "" "This script start a postgresql server the same way `docker_dev_start.py`_ does." msgstr "" #: ../../README.rst:97 msgid "" "By default it provides an interactive psql shell, but can also be used to run " "SQL commands, use an interactive shell or a shell command." msgstr "" #: ../../README.rst:102 msgid "It uses the `configuration file <setup.cfg>`_’s keys: postgresql_version." msgstr "" #: ../../README.rst:107 msgid "docker_build.py" msgstr "docker_build.py" #: ../../README.rst:109 msgid "This script builds a docker image of the project." msgstr "" #: ../../README.rst:111 msgid "It uses the super project’s `setup.cfg`_ and ``Dockerfile``." msgstr "" #: ../../README.rst:113 msgid "" "When the package is installed, the executable for this script is " "``docker_build``. This is part of the docker section." msgstr "" #: ../../README.rst:117 msgid "do_tests.py" msgstr "do_tests.py" #: ../../README.rst:119 msgid "" "This scripts launches the tests, but with more options than `do_tests`_. It " "uses docker by default, similar to `docker_dev_start.py`_." msgstr "" #: ../../README.rst:121 msgid "" "When the package is installed, the executable for this script is ``do_tests``." msgstr "" #: ../../README.rst:125 msgid "import_base_import and import_jsonrpc" msgstr "import_base_import et import_jsonrpc" #: ../../README.rst:127 msgid "Import CSV files into an odoo." msgstr "Importe des fichiers CSV dans Odoo." #: ../../README.rst:129 msgid "import_base_import uses odoo base_import module to import the CSV file." msgstr "" #: ../../README.rst:131 msgid "" "import_jsonrpc uses jsonrpc calls to import the files. The format is the same " "as the one used with the import module, with a couple more restrictions:" msgstr "" #: ../../README.rst:134 ../../README.rst:149 msgid "" "selection fields must use the technical value, not the displayed value or one " "of its translation." msgstr "" #: ../../README.rst:135 msgid "" "many2one and many2many fields must use the xmlid of the field they are " "referencing, with the column name in the form field_name/id or field_name:id." msgstr "" #: ../../README.rst:136 msgid "one2many fields in the same file are not supported for now." msgstr "" #: ../../README.rst:137 ../../README.rst:152 msgid "date and datetime must be in ISO format." msgstr "" #: ../../README.rst:138 msgid "" "context does not include base.import usual import key, so they need to be " "added as argument or in the configuration file." msgstr "" #: ../../README.rst:140 msgid "" "import_jsonrpc tries to find an ``import.yaml`` file alongside any imported " "file. It will use the delimiter indicated in the file if it finds one and will " "add the context key to the context used in the jsonrpc calls." msgstr "" #: ../../README.rst:143 msgid "import_sql" msgstr "import_sql" #: ../../README.rst:145 msgid "" "Import CSV files into an Odoo database. The import is done directly as SQL " "insert and update commands." msgstr "" #: ../../README.rst:147 msgid "" "The format is the similar to the one used with the import module, with many " "more restrictions:" msgstr "" #: ../../README.rst:150 msgid "many2one and many2many fields can not be used." msgstr "" #: ../../README.rst:151 msgid "one2many fields in the same file are not supported." msgstr "" #: ../../README.rst:154 msgid "" "When inserting, the create_uid/write_uid are not set. create_date and " "write_date is updated as needed, and so is the date_update in ``ir.model." "data``. This is part of the import_sql section." msgstr "" #: ../../README.rst:159 msgid "odoo_conf_inject_env_var" msgstr "" #: ../../README.rst:161 msgid "" "This script takes an odoo configuration file and a path and will use " "environment variables values to set some values in the produced odoo " "configuration file." msgstr "" #: ../../README.rst:164 msgid "setup.cfg" msgstr "setup.cfg" #: ../../README.rst:166 msgid "" "The scripts expects configuration in the odoo_scripts section of ``setup." "cfg``. This is the file in the super project, not the one in `Odoo Scripts`_." msgstr "" #: ../../README.rst:168 msgid "Configuration keys:" msgstr "" #: ../../README.rst:170 msgid "modules" msgstr "modules" #: ../../README.rst:171 msgid "" "list of modules to install (relative to project directory), those modules are " "the ones copied in the Dockerfile" msgstr "" #: ../../README.rst:172 msgid "odoo_type" msgstr "odoo_type" #: ../../README.rst:173 msgid "type of odoo (odoo7, odoo8, odoo10, odoo11, odoo13)" msgstr "" #: ../../README.rst:174 msgid "pg.extensions" msgstr "pg.extensions" #: ../../README.rst:175 msgid "" "postgresql extensions to install (unaccent is added automatically depending on " "odoo configuration)" msgstr "" #: ../../README.rst:176 msgid "load-language" msgstr "load-language" #: ../../README.rst:177 msgid "languages to install into a newly created database" msgstr "" #: ../../README.rst:179 msgid "postgresql_version" msgstr "postgresql_version" #: ../../README.rst:179 msgid "version of postgresql to use. defaults to 9.6." msgstr "" #: ../../README.rst:181 msgid "" "It is possible to reuse another directory containing `setup.cfg`_. These type " "of keys can be used:" msgstr "" #: ../../README.rst:200 msgid "Completion files for zsh" msgstr "" #: ../../README.rst:202 msgid "Your ``.zshrc`` should contain a line like this::" msgstr "" #: ../../README.rst:206 msgid "Create completion directory::" msgstr "" #: ../../README.rst:210 msgid "Clone::" msgstr "" #: ../../README.rst:217 msgid "" "Generate completion file for python scripts (from the super project for the " "scripts that need to be run from there, and with the required requirements " "too)::" msgstr "" #: ../../README.rst:223 msgid "" "Note that even help2comp.py indicates it is not complient with python3, it " "seems to work fine enough." msgstr "" #: ../../README.rst:226 msgid "Shell Scripts" msgstr "" #: ../../README.rst:228 msgid "" "Those scripts are not installed when installing this python module. They are " "meant to be used on a system that has Odoo installed, inside an image for " "example." msgstr "" #: ../../README.rst:231 msgid "start" msgstr "start" #: ../../README.rst:233 msgid "This script can be used to start odoo." msgstr "" #: ../../README.rst:235 msgid "" "It need to be run on a machine with all the odoo requirements installed, " "either system-wide or in a virtual environment (which need to be activated)." msgstr "" #: ../../README.rst:237 msgid "" "Its arguments are forwarded to the Odoo executable (``odoo-bin`` / ``openerp-" "server``)." msgstr "" #: ../../README.rst:241 msgid "" "``odoo_type``. The environment variable ODOO_TYPE can be also be used instead " "to override the configuration file." msgstr "" #: ../../README.rst:243 msgid "``load-language``." msgstr "" #: ../../README.rst:245 msgid "These environment variables can be set:" msgstr "" #: ../../README.rst:247 msgid "ODOO_ADDONS_PATH" msgstr "ODOO_ADDONS_PATH" #: ../../README.rst:248 msgid "" "can be used to set the path for the addons, it can be empty if there is no " "path to include." msgstr "" #: ../../README.rst:250 msgid "PRE_ODOO_BIN" msgstr "PRE_ODOO_BIN" #: ../../README.rst:250 msgid "" "Will be used in the command line calling odoo. Useful to run coverage tests " "for example." msgstr "" #: ../../README.rst:253 msgid "do_tests" msgstr "do_tests" #: ../../README.rst:255 msgid "" "This script create a database, install modules and run the tests on those " "modules and print the result." msgstr "" #: ../../README.rst:257 ../../README.rst:283 msgid "" "It need to be run on a machine with all the odoo requirements installed, " "either system-wide or in a virtual environment (which need to be activated). A " "postgresql server is also needed." msgstr "" #: ../../README.rst:260 msgid "It takes three optional arguments (those are positional arguments):" msgstr "" #: ../../README.rst:262 msgid "the host of the postgresql server," msgstr "" #: ../../README.rst:263 msgid "" "the user for this base (which need database creation rights). If a user is " "provided, you will need to have a .pgpass with the password if it is not the " "one in ``conf/dev/odoo.conf``." msgstr "" #: ../../README.rst:264 msgid "the name of the database to use" msgstr "" #: ../../README.rst:266 msgid "Those environment variables are used:" msgstr "" #: ../../README.rst:269 msgid "ODOO_NO_DROP" msgstr "ODOO_NO_DROP" #: ../../README.rst:269 msgid "set to reuse an existing database." msgstr "" #: ../../README.rst:271 msgid "The script call `run_tests`_." msgstr "" #: ../../README.rst:273 msgid "" "It expects the configuration file (`setup.cfg`_) to have the following keys:" msgstr "" #: ../../README.rst:275 msgid "" "``module_list``: list (separated by white space) of odoo modules to install on " "the database (default to empty list)" msgstr "" #: ../../README.rst:276 msgid "" "``unaccent``: boolean to indicate if unaccent is to be installed on the " "database (default to True)" msgstr "" #: ../../README.rst:279 msgid "run_tests" msgstr "run_tests" #: ../../README.rst:281 msgid "This script run the tests on a database." msgstr "" #: ../../README.rst:286 msgid "The name of the database is the same as do_tests or can be provided." msgstr "" #: ../../README.rst:288 msgid "The script call `start`_." msgstr "" #: ../../README.rst:292 msgid "" "``module_list_tests``: list (separated by white space) of odoo modules to run " "tests for on the database (default to empty list)" msgstr "" #: ../../README.rst:293 msgid "" "``odoo_type``: type of odoo (bzr, odoo7, odoo8 or odoo10) [default to odoo8]" msgstr "" #: ../../README.rst:296 msgid "create_archive" msgstr "" #: ../../README.rst:298 msgid "zsh script to create a tar.xz file containing all sources." msgstr "" #~ msgid "Alternatives: genzshcomp" #~ msgstr "Alternatives : genzshcomp"