mirror of
https://github.com/OCA/knowledge.git
synced 2025-07-22 20:12:04 -06:00
[document_page_approval] Fix LINT
This commit is contained in:
parent
59bace071a
commit
fffc39a014
@ -102,9 +102,8 @@ class DocumentPageHistory(models.Model):
|
|||||||
'You are not authorized to do this.\r\n'
|
'You are not authorized to do this.\r\n'
|
||||||
'Only approvers with these groups can approve this: '
|
'Only approvers with these groups can approve this: '
|
||||||
) % ', '.join(
|
) % ', '.join(
|
||||||
[g.display_name
|
[g.display_name
|
||||||
for g in rec.page_id.approver_group_ids])
|
for g in rec.page_id.approver_group_ids]))
|
||||||
)
|
|
||||||
# Update state
|
# Update state
|
||||||
rec.write({
|
rec.write({
|
||||||
'state': 'approved',
|
'state': 'approved',
|
||||||
|
Loading…
Reference in New Issue
Block a user