Hi,
Can anyone please tell me how i can save value of many2many field in res.config.settings, I am getting issue "Invalid value for res.config.settings.authorized_users: 1" here is my code:
default_user_id = fields.Many2one('res.users', string='Authorized Users')
authorized_users = fields.Many2many("res.users",string='Authorized Users', domain=[('share', '=', False)])
@api.onchange('authorized_users')
def _onchange_language_ids(self):
if self.authorized_users and self.default_user_id not in self.authorized_users:
self.default_user_id = self.authorized_users[0]
View file:
<div class="col-md-6">
<field name="authorized_users" widget="many2many_tags" options="{'no_create': True, 'no_open': True}"/>
</div>
which version of odoo you are using ?
odoo 11 CE