コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
3652 ビュー

Hello,

Im trying to create a new module using the scaffold command via odoo.sh's editors in src/odoo/addons in the Production stage :


~/src/odoo/addons$ odoo-bin scaffold mymodule


But I got an error like this:

Traceback (most recent call last):

  File "/home/odoo/src/odoo/odoo-bin", line 8, in <module>

    odoo.cli.main()

  File "/home/odoo/src/odoo/odoo/cli/command.py", line 60, in main

    o.run(args)

  File "/home/odoo/src/odoo/odoo/cli/scaffold.py", line 39, in run

    {'name': args.name})

  File "/home/odoo/src/odoo/odoo/cli/scaffold.py", line 121, in render_to

    os.makedirs(destdir)

  File "/usr/lib/python3.6/os.py", line 220, in makedirs

    mkdir(name, mode)

OSError: [Errno 30] Read-only file system: '/home/odoo/src/odoo/addons/mymodule'


Am I not permission to create modules in the production stage, or the production stage is just used for merge with other stages?


Please help!

Thank you!

アバター
破棄
最善の回答

Hello Khanhqn,

Odoo.sh won't allow any users to update or create anything into the production branch. Odoo.sh only allow doing in staging and development branch. But you can not move that code or module into any other branch.

All you need to do is create a module using scaffold in your local and then commit it on odoo.sh.

Thanks

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   

アバター
破棄
著作者

Hi Jainesh,

Thank you for your support. So you mean, I will commit it like upload a file which has the same structure of module (_manifest_.py, _init_.py,...) , and select production stage to do it?

関連投稿 返信 ビュー 活動
1
3月 24
1604
1
4月 25
2195
2
10月 23
2796
1
4月 25
1664
0
2月 25
858