This question has been flagged
3 Replies
6014 Views

I am working on xml in openerp. I am creating access right for an specific user. I want to know if is possible to add more than one group in the groups tag adding a comma, semicolon or some char?

I've tried this but is not working:

groups="x_stock_picking.confirm_transfer, stock.group_stock_user"  

is that possible?

Avatar
Discard

you have to make sure that the external ids are correct, the groups written like this worked for me. so, please can you attach the whole field that you are trying to apply the groups to, here!!!

Best Answer

<field name="your_field" attrs="{'invisible': [('stock.group_stock_user', '=', something)]}"/> ??

Avatar
Discard
Best Answer

Samuel,

Its definitely possible to assign multiple groups to the xml record.

Example:

groups="group_account_user,group_account_manager,group_account_invoice" is in Account modul, 'Invoicing' menu.

Would you please clarify whether you have a module called 'x_stock_picking' or else?

Please note that, the groups tag should enlist the name of groups, not the method names.

Thanks.

Avatar
Discard