跳至內容
選單
此問題已被標幟
1 回覆
1681 瀏覽次數

Hi all, 

I'm trying to build a custom app but can't get it installed properly - what is the right syntax for dependencies?


I get: 

​KeyError: 'pv.plant'


I use in manifest: 

	​'depends': ['base', 'crm', 'project', 'sale_management', 'contacts'],


In my module file I have:

	​class PV_Plant(models.Model):
​​_name = 'pv.plant'
_description = 'PV-Plant'
_custom = True
_inherit = ['crm.lead', 'project.task', 'sale.order', 'res.partner']


What are the right module names to use and the syntax?


Thanks in advance!

Friedrich


頭像
捨棄
最佳答案

Hi can you send your module in drive link so i can fix it.

頭像
捨棄
作者

...It's very unfinished.

remove this two
​_custom = True
_inherit = ['crm.lead', 'project.task', 'sale.order', 'res.partner']
and inside menifest ​'depends': ['base'], only add this
it resolve your issue in xml side more issue fix using odoo documentation please

作者

Hi Nikhil,
thank you!

welcome Friedrich

相關帖文 回覆 瀏覽次數 活動
1
1月 24
1569
1
11月 24
4149
1
11月 23
1515
2
4月 24
17493
2
4月 25
3300