Commit Graph

96 Commits

Author SHA1 Message Date
Christophe Simonis 78ea8eb058 [FIX] core: correcly handle pidfile deletion.
As atexit function are inherited by subprocess, the pidfile was always
deleted when the first worker (http or cron) died. Now, only the
process that created the pidfile will delete it.
2015-11-26 10:40:59 +01:00
Daniel Reis e20cf77ce0 [FIX] cli: Backport client command discovery optimization
Lazy load modules to avoid import of unmet dependencies such as ldap.
2015-07-12 16:40:55 +02:00
Daniel Reis 8880edd4fb [FIX] cli: start command path option does not work
Using the `start` CLI command with the `--path` or `-p` option arrors with:

    odoo.py: error: no such option: --path

This is because the `--path` option is passed on the server start routine,
and it's invalid there.
A workaround is to remove those command options from the arguments passed
to the main() server start.

Closes #5896
2015-06-30 13:57:14 +02:00
David Monjoie 71e4d7145b [FIX] Scaffolding: moved two files to better reflect the architecture we currently use for our themes 2015-03-02 16:38:35 +01:00
Aaron Bohy 9ebfa11b8c [FIX] Packaging, Scaffolding: template files extension
Add .template as extension of the template files because RPM packaging
produces an error when trying to compile the python template files,
which contains Jinja instructions.

Include *.template files in MANIFEST.in to package them.
2015-03-02 16:38:34 +01:00
Xavier Morel 68f14c6870 [FIX] handling of big fields in CSV
fixes #2742
2015-02-27 14:11:21 +01:00
Laurent Mignon (aka lmi) aef2150179 [IMP] let scaffold render files ending by .rst and .html
closes #4773
2015-01-19 14:25:36 +01:00
Stéphane Bidoul 34fe1d211d [IMP] add support for directory templates in scaffold
closes #4767
2015-01-19 10:35:41 +01:00
Xavier Morel eab52acccd [ADD] initial theme guide + scaffolding
incomplete, incorrect, committed for testing
2014-09-02 12:43:17 +02:00
Raphael Collet 2b3b1c3230 [IMP] doc/howtos/backend: use scaffolding and adapt text and code accordingly 2014-08-24 13:06:51 +02:00
Raphael Collet 2ad092b5e5 [ADD] doc: new documentation, with training tutorials, and new scaffolding 2014-08-22 17:51:20 +02:00
Raphael Collet b8a0e65ed5 [FIX] cli/server: fixes #1307, add missing Environment management blocks 2014-07-30 15:32:12 +02:00
Raphael Collet cbe2dbb672 [MERGE] new v8 api by rco
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.

- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Fabien Meghazi 6981af0221 Merge pull request #462 from odoo-dev/master-odoo-deploy-force-fme
Added --force to odoo deploy
2014-06-11 10:04:03 +02:00
Fabien Meghazi c1e6e70870 Added --force to odoo deploy
Will force --init mode even if module is already installed
2014-06-11 09:55:17 +02:00
Fabien Meghazi 1d0424a3cb Merge pull request #457 from odoo-dev/master-odoo-cmd-fixes-fme
[IMP] `odoo.py start`: Always create missing db
2014-06-10 16:52:32 +02:00
Fabien Meghazi b278d7ff5d Merge pull request #356 from xmo-odoo/scaffold-kwargs
[IMP] add kwargs to scaffolded controller
2014-06-10 15:44:30 +02:00
Fabien Meghazi 97a5c043b5 Always create missing db when using `odoo start` 2014-06-10 15:00:20 +02:00
Sandy Carter 666ea5f98a [FIX] pep8 errors generated by odoo.py scaffold
Signed-off-by: Sandy Carter <sandy.carter@savoirfairelinux.com>
2014-06-06 09:03:10 +02:00
Xavier Morel 08b1107413 [IMP] add kwargs to scaffolded controller so ?debug does not blow up by default 2014-06-05 12:32:12 +02:00
Fabien Meghazi 27af219b5e Change scaffolding's controller template 2014-06-04 01:27:59 +02:00
Fabien Meghazi a52a426de3 Do not check SSL certificate by default
(requested by al)
2014-06-04 00:58:32 +02:00
Fabien Meghazi 8a4511277c Fix error on url scheme for odoo deploy 2014-06-04 00:58:23 +02:00
Fabien Meghazi c5129fcfe5 Add __init__.py when createing module. Also add templates.xml in
manifest
2014-06-04 00:58:05 +02:00
Antony Lesuisse a96fab05b3 scaffold fix, add a sample page and snippet 2014-06-03 01:00:23 +02:00
Fabien Meghazi d9def2c4a7 Simplify odoo start. Make it work everywhere 2014-05-30 21:54:54 +02:00
Fabien Meghazi 227709dd21 Basic support for scaffold --theme 2014-05-30 21:20:39 +02:00
Fabien Meghazi 83c402a93e Added odoo start command 2014-05-30 17:06:16 +02:00
Fabien Meghazi 10fb6525e9 Basic support for xml data files 2014-05-30 11:35:28 +02:00
Fabien Meghazi 7f984dd6ef Added ir.model.access in manifest 2014-05-30 10:45:57 +02:00
Fabien Meghazi 36485190ac Update manifest for dependencies 2014-05-29 20:02:30 +02:00
Fabien Meghazi 0e01164842 Moved get_module_root in openerp.modules.module 2014-05-29 18:23:48 +02:00
Fabien Meghazi 5f717cfdd2 Added basic scaffolding for webclient module 2014-05-29 18:01:43 +02:00
Fabien Meghazi 14f7d31a5f Refactor scaffolding engine so it can be used from outside 2014-05-29 16:25:30 +02:00
Fabien Meghazi 4b8814fa9e Prevent scaffold --init to be executed in another module 2014-05-28 19:32:55 +02:00
Fabien Meghazi a9eba4dc40 Detect if controller name correspond to a model name 2014-05-28 19:16:50 +02:00
Fabien Meghazi 6b678f376e Use ast module against __init__.py's for import discovery 2014-05-28 18:49:16 +02:00
Fabien Meghazi ce764477e6 [WIP] models and controllers for scaffolding 2014-05-28 17:10:56 +02:00
Fabien Meghazi ba85b80f32 Basic scaffolding 2014-05-28 11:31:00 +02:00
Fabien Meghazi 397784cef0 reuse cls.__doc__ for deploy command 2014-05-28 09:25:31 +02:00
Fabien Meghazi 3458eb3ef7 Add docstring to help command 2014-05-27 17:07:40 +02:00
Fabien Meghazi dec8172866 [ADD] odoo deploy 2014-05-27 14:22:28 +02:00
Fabien Meghazi df35de22b8 Disable logging during commands discovery 2014-05-21 15:53:16 +02:00
Christophe Simonis 156225f9ea [IMP] do not fail if cannot delete the pidfile. It may have a race-condition when in multi-workers.
bzr revid: chs@openerp.com-20140423150117-nyt16snzwvey2vz4
2014-04-23 17:01:17 +02:00
Christophe Simonis a2b3b47b38 [FIX] cli mode: initialisation of the addons path do not setup the logger (as we only parse the addons path, we ends with the default logging config)
bzr revid: chs@openerp.com-20140422123533-b6lcm76ydf8vpw9u
2014-04-22 14:35:33 +02:00
Raphael Collet 5640f3076a [MERGE] test_cursor: implement a cursor mockup that never commits to database, and use it for http tests
bzr revid: rco@openerp.com-20140409145830-rop8esgic2y435kf
2014-04-09 16:58:30 +02:00
Raphael Collet e5e00e4c0a [IMP] registry: now cursor() simply returns a cursor, which may itself be used as a context manager
bzr revid: rco@openerp.com-20140409095604-joh9dt0qkma12ykm
2014-04-09 11:56:04 +02:00
Raphael Collet 6bc60505f4 [IMP] registry: add method get_cursor() to simply retrieve a new cursor, and refactor code to use it
bzr revid: rco@openerp.com-20140408125122-ki0zmin3m21k2itd
2014-04-08 14:51:22 +02:00
Christophe Simonis 0161666e8b [MERGE] forward port of branch saas-3 up to revid 5112 chs@openerp.com-20140407144238-3s38zadkh7yxpdy7
bzr revid: chs@openerp.com-20140407160548-ttuc877kknuycoqw
2014-04-07 18:05:48 +02:00
Christophe Simonis 4335ff0712 [FIX] force suppression of pidfile at exit of openerp.
[IMP] only write/delete pidfile in non-evented mode
[FIX] check if evented mode before checking in worker mode when starting server service

bzr revid: chs@openerp.com-20140404154658-6x5rxyq12guej43q
2014-04-04 17:46:58 +02:00