无效的模块名称odoo 10

2024-10-02 08:19:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经在ubuntu虚拟机和服务器上安装了odoo以开始开发模块,但我无法在odoo上安装我的模块,我有以下错误:

jourconge odoo.modules.loading: invalid module names, ignored: hr_hollidays_fr

我用这个命令启动我的奥多

./odoo-bin -d jourconge --addons-path=/home/odoo/odoo/addons,/home/odoo/enterprise,/home/odoo/technical-training/09-orm --db-filter=jourconge -i hr_hollidays_fr

我用我的文件夹名作为模块名。在

插件路径是很好的一个,我试图安装odoo的模块在odoo/插件和它的工作。在

为了创建我的模块,我创建了一个文件夹“fraisperso”,我添加了文件umanifest_uu.py和u init_uy.py。在

^{pr2}$

{

'name': "Public Holidays FR",



'summary': """

    Gestion des week end et jours fériés""",



'description': """

    Module qui permet la gestion des jours fériés et des week-end dans le compte des jours de congés pour une demande de congés

""",



'author': "Martin Allimonier",



# Categories can be used to filter modules in modules listing

# Check https://github.com/odoo/odoo/blob/master/odoo/addons/base/module/module_data.xml

# for the full list

'category': 'hr',

'version': '0.1',



# any module necessary for this one to work correctly

'depends': ['base', 'hr_holidays'],



# always loaded

'data': [

    # 'security/ir.model.access.csv',



],

}

My\uUinit_Uu.py只需导入创建模型的models文件夹和放置视图的文件夹views。在

我的问题是我错过了什么?在

谢谢你的帮助,我的英语很差。在


Tags: 模块pyodoo文件夹moduleshomehrfr
1条回答
网友
1楼 · 发布于 2024-10-02 08:19:14

那么,你不是用“脚手架”来创建这个模块吗?
无论如何,每个模块都有两个名称,技术名称和显示名称。
与'i'/'u'参数一起使用的技术名称是文件夹名称。
因此,您应该将“hr_hollidays_fr”替换为“fraisperso”或您所称的目录,或者将文件夹名称更改为“hr_hollidays_fr”。在

相关问题 更多 >

    热门问题