mirror of
https://github.com/bringout/oca-ocb-crm.git
synced 2026-04-22 16:52:00 +02:00
19.0 vanilla
This commit is contained in:
parent
dc68f80d3f
commit
7221b9ac46
610 changed files with 135477 additions and 161677 deletions
|
|
@ -0,0 +1,10 @@
|
|||
from odoo import models
|
||||
from odoo.addons.mail.tools.discuss import Store
|
||||
|
||||
|
||||
class ResUsers(models.Model):
|
||||
_inherit = "res.users"
|
||||
|
||||
def _init_store_data(self, store: Store):
|
||||
super()._init_store_data(store)
|
||||
store.add_global_values(has_access_create_lead=self.env.user.has_group("sales_team.group_sale_salesman"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue