1

来自文档:

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在我的安装文件夹中做了,它回来是空的。

4

1 回答 1

3

odoo 10 的正确命令是

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

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

于 2016-12-10T07:18:42.640 回答