Browse Source

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

14.0
Harald Panten 4 years ago
parent
commit
e394944345
  1. 3
      base_user_role/models/role.py
  2. 1
      base_user_role/readme/CONTRIBUTORS.rst
  3. 3
      base_user_role/views/role.xml

3
base_user_role/models/role.py

@ -34,6 +34,9 @@ class ResUsersRole(models.Model):
help="Associated group's category",
readonly=False,
)
comment = fields.Html(
string="Internal Notes",
)
@api.depends("line_ids.user_id")
def _compute_user_ids(self):

1
base_user_role/readme/CONTRIBUTORS.rst

@ -2,5 +2,6 @@
* Duc, Dao Dong <duc.dd@komit-consulting.com> (https://komit-consulting.com)
* Jean-Charles Drubay <jc@komit-consulting.com> (https://komit-consulting.com)
* Alan Ramos <alan.ramos@jarsa.com.mx> (https://www.jarsa.com.mx)
* Harald Panten <harald.panten@sygel.es>
Do not contact contributors directly about support or help with technical issues.

3
base_user_role/views/role.xml

@ -34,6 +34,9 @@
</tree>
</field>
</page>
<page name="page_internal_notes" string="Internal Notes">
<field name="comment" />
</page>
</notebook>
</sheet>
</form>

Loading…
Cancel
Save