Newer
Older
# 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-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 ""
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 ""
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
"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 ""
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 ""
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
#: ../../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"
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 ""
msgid "It takes three optional arguments (those are positional arguments):"
msgstr ""
msgid "the host of the postgresql server,"
msgstr ""
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 ""
msgid "the name of the database to use"
msgstr ""
msgid "Those environment variables are used:"
msgstr ""
msgid "ODOO_NO_DROP"
msgid "set to reuse an existing database."
msgstr ""
msgid "The script call `run_tests`_."
msgstr ""
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 ""
msgid "run_tests"
msgid "This script run the tests on a database."
msgstr ""
msgid "The name of the database is the same as do_tests or can be provided."
msgstr ""
msgid "The script call `start`_."
msgstr ""
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 ""
msgid "zsh script to create a tar.xz file containing all sources."
msgstr ""
#~ msgid "Alternatives: genzshcomp"
#~ msgstr "Alternatives : genzshcomp"