Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17.0] [REM] fieldservice: unused _get_stage_color method #1280

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions fieldservice/models/fsm_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ def _compute_duration(self):
duration = delta.total_seconds() / 3600
rec.duration = duration

@api.depends("stage_id")
def _get_stage_color(self):
"""Get stage color"""
self.custom_color = self.stage_id.custom_color or "#FFFFFF"

def _track_subtype(self, init_values):
self.ensure_one()
if "stage_id" in init_values:
Expand Down
1 change: 0 additions & 1 deletion fieldservice/tests/test_fsm_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ def test_fsm_order(self):
f.date_end = f.date_start + timedelta(hours=80)
f.request_early = fields.Datetime.today()
order2 = f.save()
order._get_stage_color()
view_id = "fieldservice.fsm_equipment_form_view"
with Form(self.env["fsm.equipment"], view=view_id) as f:
f.name = "Equipment 1"
Expand Down
Loading