Skip to content

Commit

Permalink
[IMP]base_cancel_confirm: black, isort, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillemCForgeFlow committed Oct 28, 2024
1 parent 791c168 commit 7b4a4e5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
4 changes: 1 addition & 3 deletions base_cancel_confirm/model/base_cancel_confirm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ class BaseCancelConfirm(models.AbstractModel):
help="A flag signify that this document is confirmed for cancellation",
)
cancel_reason = fields.Text(
string="Cancel Reason",
copy=False,
help="An optional cancel reason",
string="Cancel Reason", copy=False, help="An optional cancel reason",
)

def _cancel_confirm_disabled(self):
Expand Down
10 changes: 2 additions & 8 deletions base_cancel_confirm/wizard/cancel_confirm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@ class CancelConfirm(models.TransientModel):
_name = "cancel.confirm"
_description = "Cancel Confirm"

cancel_reason = fields.Text(
string="Cancel Reason",
)
cancel_reason = fields.Text(string="Cancel Reason",)
has_cancel_reason = fields.Selection(
selection=[
("no", "None"),
("optional", "Optional"),
("required", "Required"),
],
selection=[("no", "None"), ("optional", "Optional"), ("required", "Required"),],
default="no",
required=True,
)
Expand Down
1 change: 1 addition & 0 deletions setup/base_cancel_confirm/odoo/addons/base_cancel_confirm
6 changes: 6 additions & 0 deletions setup/base_cancel_confirm/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 7b4a4e5

Please sign in to comment.