Skip to content
Snippets Groups Projects
user avatar
Benoit Socias authored
If leads are created using live chat, users without CRM rights cannot
access the visitors list anymore because the lead/opportunity
information is not available to them.

This commit limits the display of `lead_count` to the
`sales_team.group_sale_salesman` group.

In 14.0, the column still appeared without the `lead_count` value
displayed, but clicking on it raised a traceback.

Steps to reproduce:
- Install `website_crm_livechat`
- Login as Mitchell Admin
- Send a message in the live chat
- Go to Discuss
- Answer the livechat message with `/lead New`
- Go to Settings / Users / Marc Demo
- Remove the Sales rights
- Logout
- Login as Marc Demo
- Go to the Website / Reporting / Visitors page

=> The page could not be reached and an access right error message was
generated.

opw-3475301

closes odoo/odoo#133581

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
dcb53f42
History
Name Last commit Last update
..
account
account_check_printing
account_debit_note
account_edi
account_edi_extended
account_edi_facturx
account_edi_proxy_client
account_edi_ubl
account_edi_ubl_cii
account_fleet
account_lock
account_payment
account_qr_code_sepa
account_tax_python
account_test
adyen_platforms
analytic
association
attachment_indexation
auth_ldap
auth_oauth
auth_password_policy
auth_password_policy_portal
auth_password_policy_signup
auth_signup
auth_totp
auth_totp_portal
barcodes
base_address_city
base_address_extended
base_automation
base_geolocalize
base_iban
base_import
base_import_module
base_setup
base_sparse_field
base_vat
board
bus
calendar
calendar_sms
contacts
coupon
crm
crm_iap_lead
crm_iap_lead_enrich
crm_iap_lead_website
crm_livechat
crm_sms
delivery
digest
event
event_crm
event_crm_sale
event_sale
event_sms
fetchmail
fetchmail_gmail
fetchmail_outlook
fleet
gamification
gamification_sale_crm
google_account
google_calendar
google_drive
google_gmail
google_recaptcha
google_spreadsheet
hr
hr_attendance
hr_contract
hr_expense
hr_fleet
hr_gamification
hr_holidays
hr_holidays_attendance
hr_maintenance
hr_org_chart
hr_presence
hr_recruitment
hr_recruitment_survey
hr_skills
hr_skills_slides
hr_skills_survey
hr_timesheet
hr_timesheet_attendance
hr_work_entry
http_routing
hw_drivers
hw_escpos
hw_posbox_homepage
iap
iap_crm
iap_mail
im_livechat
im_livechat_mail_bot
l10n_account_edi_ubl_cii_tests
l10n_ae
l10n_ar