Merge pull request #39 from QubiQ/11.0-imp-base_user_role

[IMP] Adding a new tab for user comments in roles form.
This commit is contained in:
Pedro M. Baeza
2019-06-04 17:03:33 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

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

View File

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