[IMP] Adding a new tab for user comments in roles form.

This commit is contained in:
Harald Panten
2019-05-30 16:50:12 +02:00
parent a9ca156009
commit 380234769d
2 changed files with 6 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ class ResUsersRole(models.Model):
related='group_id.category_id', related='group_id.category_id',
default=lambda cls: cls.env.ref( default=lambda cls: cls.env.ref(
'base_user_role.ir_module_category_role').id) 'base_user_role.ir_module_category_role').id)
comment = fields.Html(
string="Internal Notes",
)
@api.multi @api.multi
@api.depends('line_ids.user_id') @api.depends('line_ids.user_id')

View File

@@ -27,6 +27,9 @@
</tree> </tree>
</field> </field>
</page> </page>
<page name="role_inernal_notes" string="Internal Notes">
<field name="comment" placeholder="Internal note..."/>
</page>
</notebook> </notebook>
</sheet> </sheet>
</form> </form>