Commit Graph
7 Commits
Author SHA1 Message Date
Olivier Dony 0bd4545348 [LEGAL] Use global LICENSE/COPYRIGHT files, remove boilerplate text
- Preserved explicit 3rd-party copyright notices
- Explicit boilerplate should not be necessary - copyright law applies
  automatically in all countries thanks to Berne Convention + WTO rules,
  and a reference to the applicable license is clear enough.
2015-06-02 03:16:04 +02:00
Thibault Delavallée 6d54b06907 [FIX] shell.py: fixed typo
Courtesy of Daniel Reis
2015-01-08 15:49:22 +01:00
Leonardo Donelli 4a0b13ed92 [REF] remove vim modelines and resulting trailing blank lines
Let 2015 be a year without modelines!
cf #4174
2014-12-31 15:52:13 +01:00
Antony Lesuisse 18be1d9413 [IMP] odoo shell agnostic execution mode
Streamed file or interactive console are both available whether or not a
database is specified.
2014-12-27 00:03:32 +01:00
Samus CTO a5dad00172 [IMP] stream code from stdin through Odoo's shell
Now I have a machine gun. Ho-ho-ho.
2014-12-25 23:28:05 +01:00
Samus CTO ebe42d083b [FIX] shell: now catch SIGINT and raise a regular KeyboardInterrupt 2014-12-23 12:46:46 +01:00
Daniel Reis 9ed13353c0 [IMP] add odoo.py shell subcommand
It starts an interactive Python console. If a database is provided, with the
`-d` argument `env` is bound to an Environement with the uid and context of
SUPERUSER_ID and `self` is bound to a RecordSet of the corresponding res.users.

Courtesy of Daniel Reis, reworked to be a bit more agnostic.

Command class is moved from __init__.py to command.py to improve imports of
__init__.py
2014-12-21 02:42:28 +01:00