i'm unable to open portal side and have the below error.
TypeError: _prepare_home_portal_values() takes 1 positional argument but 2 were given
Thanks in Advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i'm unable to open portal side and have the below error.
TypeError: _prepare_home_portal_values() takes 1 positional argument but 2 were given
Thanks in Advance
Hi the _prepare_home_portal_values method in Odoo13 doesn't have only self argument but in Odoo 15 it has two self and counters.
See the example for Odoo Code:
def _prepare_home_portal_values(self, counters):
values = super()._prepare_home_portal_values(counters)
if 'lead_count' in counters:
values['lead_count'] = request.env['crm.lead'].search_count(self.get_domain_my_lead(request.env.user))
if 'opp_count' in counters:
values['opp_count'] = request.env['crm.lead'].search_count(self.get_domain_my_opp(request.env.user))
return values
Thank You Waleed Mohsen. You saved my time
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
2
thg 10 25
|
3522 | |||
|
1
thg 9 25
|
3400 | |||
|
3
thg 7 25
|
4581 | |||
|
1
thg 5 25
|
2730 | |||
|
4
thg 5 25
|
4177 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.