Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
3340 Näkymät

I want that a user that have the portal group, can create a product. How can I do that?


Avatar
Hylkää
Paras vastaus

Normally portal users will have no access right to create products. So you should create a html form and action should create the products with the details. While creating you have to write code to create as a superuser.

eg: request.env['product.template'].sudo().create(*kw)

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
syysk. 17
8301
1
tammik. 17
4046
0
heinäk. 16
2814
1
jouluk. 15
4102
1
elok. 24
2220