File tree 1 file changed +8
-2
lines changed
content/developer/reference
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -695,10 +695,16 @@ interaction with the :ref:`orm <reference/orm>` and its functionalities.
695
695
By default, the shell is running in transaction mode. This means that any change made to the
696
696
database is rolled back when exiting the shell. To commit changes, use `env.cr.commit() `.
697
697
698
+
699
+ .. option :: --shell-file <init_script.py >
700
+
701
+ Specify a Python script to be run after the start of the shell. Overrides the environment
702
+ variable `PYTHONSTARTUP `.
703
+
698
704
.. option :: --shell-interface (ipython|ptpython|bpython|python)
699
705
700
- Specify a preferred REPL to use in shell mode. This shell is started with the `env ` variable
701
- already initialized to be able to access the ORM and other Odoo modules.
706
+ Specify a preferred ` REPL ` to use in shell mode. This shell is started with the `env ` variable
707
+ already initialized to be able to access the ` ORM ` and other Odoo modules.
702
708
703
709
.. seealso ::
704
710
:ref: `reference/orm/environment `
You can’t perform that action at this time.
0 commit comments