Skip to content

Commit e9cfbdb

Browse files
[FIX] document_page_approval: ruff format
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ef01870 commit e9cfbdb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

document_page_approval/models/document_page_history.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ def action_draft(self):
4444
"""Set a change request as draft"""
4545
for rec in self:
4646
if not rec.state == "cancelled":
47-
raise UserError(
48-
self.env._("You need to cancel it before reopening.")
49-
)
47+
raise UserError(self.env._("You need to cancel it before reopening."))
5048
if not (rec.am_i_owner or rec.am_i_approver):
5149
raise UserError(
5250
self.env._(

0 commit comments

Comments
 (0)