fix promotion

This commit is contained in:
Bakry 2024-12-02 15:06:34 +03:00
parent e2c57ec810
commit 8623c63ebd
2 changed files with 3 additions and 2 deletions

View File

@ -95,7 +95,7 @@
<field name="model">employee.promotions</field>
<field name="arch" type="xml">
<tree decoration-success="state=='approved'" decoration-info="state == 'draft'"
string="Employee promotions">
decoration-danger="state == 'refuse'" string="Employee promotions">
<field name="employee_id" string="Employee"/>
<field name="date" string="Date"/>
<field name="new_level" string="New level"/>

View File

@ -79,7 +79,8 @@
<field name="name">Payroll Raise Tree</field>
<field name="model">hr.payroll.raise</field>
<field name="arch" type="xml">
<tree string="Payroll Raise">
<tree string="Payroll Raise" decoration-danger="state == 'refuse'" decoration-info="state == 'draft'"
decoration-success="state=='approve'">
<field name="employee_id"/>
<field name="application_date"/>
<field name="scale_id"/>