Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
1682 Zobrazení

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


Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Autor

...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

Autor

Hi Nikhil,
thank you!

welcome Friedrich

Related Posts Odpovědi Zobrazení Aktivita
1
led 24
1571
1
lis 24
4150
1
lis 23
1515
2
dub 24
17496
2
dub 25
3300