تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
1676 أدوات العرض

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
يناير 24
1567
1
نوفمبر 24
4145
1
نوفمبر 23
1514
2
أبريل 24
17491
2
أبريل 25
3300