Skip to content

[17.0][FIX] hr_course: align schedule tree decoration with Odoo 17 guidelines#1594

Open
miquelrosell99 wants to merge 1 commit into
OCA:17.0from
miquelrosell99:17.0-fix-hr_course_schedule_tree_decoration
Open

[17.0][FIX] hr_course: align schedule tree decoration with Odoo 17 guidelines#1594
miquelrosell99 wants to merge 1 commit into
OCA:17.0from
miquelrosell99:17.0-fix-hr_course_schedule_tree_decoration

Conversation

@miquelrosell99

Copy link
Copy Markdown

Before this commit, the course schedule tree view colored entire rows based on the state (success for completed, muted for cancelled).

Following Odoo core conventions, workflow state should be rendered as a per-field badge instead of coloring the whole row. This change:

  • Removes row-level decoration-success and decoration-muted from the tree.
  • Adds widget="badge" to the state field.
  • Applies per-state decorations:
    • draft → info
    • waiting_attendees, in_progress, in_validation → warning
    • completed → success
    • cancelled → muted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants