Odoo 10 odoo.py:找不到命令,odoo.py:没有这样的文件或目录

时间:2016-12-10 07:16:13

标签: odoo-10

来自文档:

Creating a basic module
In Odoo, tasks are performed by creating modules.

Modules customize the behavior of an Odoo installation, either by adding new behaviors or by altering existing ones (including behaviors added by other modules).

Odoo's scaffolding can setup a basic module. To quickly get started simply invoke:

$ ./odoo.py scaffold Academy my-modules

结果:

$ ./odoo.py scaffold Academy my-modules
-bash: ./odoo.py: No such file or directory

$ python ./odoo.py scaffold Academy my-modules
python: can't open file './odoo.py': [Errno 2] No such file or directory

$ sudo python ./odoo.py scaffold Academy my-modules
python: can't open file './odoo.py': [Errno 2] No such file or directory

$ odoo.py scaffold Academy my-modules
odoo.py: command not found

$ python odoo.py scaffold Academy my-modules
python: can't open file 'odoo.py': [Errno 2] No such file or directory

$ sudo python odoo.py scaffold Academy my-modules
python: can't open file 'odoo.py': [Errno 2] No such file or directory

我根据https://www.getopenerp.com/install-odoo-10-on-ubuntu-16-04/

中的步骤在ubuntu 16.04虚拟盒上安装了odoo 10

我在我的安装文件夹中做了find | grep odoo.py,它又回来了。

1 个答案:

答案 0 :(得分:3)

odoo 10的正确命令是

$ sudo ./odoo-bin scaffold Academy my-modules

,正确的文档位于https://www.odoo.com/documentation/10.0/howtos/website.html