In my case I have to set all the companies in allowed companies that allow the user to see the e-commerce categories in my e-commerce site.
Is there any way that if user is created than we can add all the companies by default in his allowed companies?
I am using odoo 11.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
1
Rispondi
3624
Visualizzazioni
You need to write default_get for allowed companies. In default_get you can set all active companies on new user creation.
default=lambda self: self.env['res.company'].search([]).ids
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
2
ago 25
|
3404 | ||
|
1
lug 25
|
1570 | ||
|
1
ago 25
|
1152 | ||
|
0
mag 25
|
1900 | ||
|
2
mag 25
|
2409 |