Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1686 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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

Tác giả

Hi Nikhil,
thank you!

welcome Friedrich

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 1 24
1572
1
thg 11 24
4152
1
thg 11 23
1515
2
thg 4 24
17498
2
thg 4 25
3301