Added decoration to patient tree views.
This commit is contained in:
parent
93a82074df
commit
e951c23346
1 changed files with 14 additions and 5 deletions
|
|
@ -20,7 +20,11 @@
|
|||
<field name="name">sports.patient.view.list</field>
|
||||
<field name="model">sports.patient</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Patients">
|
||||
<tree string="Patients"
|
||||
decoration-danger="match_status == 'no'
|
||||
and practice_status == 'no'"
|
||||
decoration-warning="match_status == 'no'
|
||||
and practice_status == 'no_contact'">
|
||||
<field name="first_name"/>
|
||||
<field name="last_name"/>
|
||||
<field name="date_of_birth"/>
|
||||
|
|
@ -37,18 +41,23 @@
|
|||
<field name="name">sports.patient.view.list</field>
|
||||
<field name="model">sports.patient</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Patients" multi_edit="True" editable="bottom">
|
||||
<tree string="Patients" multi_edit="True" editable="bottom"
|
||||
decoration-danger="match_status == 'no'
|
||||
and practice_status == 'no'"
|
||||
decoration-warning="match_status == 'no'
|
||||
and practice_status == 'no_contact'">
|
||||
<field name="first_name"/>
|
||||
<field name="last_name"/>
|
||||
<field name="date_of_birth"/>
|
||||
<field name="age"/>
|
||||
<field name="team_ids" widget="many2many_tags"/>
|
||||
<field name="match_status"/>
|
||||
<field name="match_status"
|
||||
/>
|
||||
<field name="practice_status"/>
|
||||
<field name="predicted_return_date" widget="date"/>
|
||||
<field name="activity_ids" widget="list_activity"/>
|
||||
<button name="action_view_patient_form" type="object"
|
||||
class="fa fa-arrow-right"/>
|
||||
class="fa fa-arrow-right" title="Details"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -145,7 +154,7 @@
|
|||
widget="many2many_avatar_user"/>
|
||||
<field name="activity_ids" widget="list_activity"/>
|
||||
<button name="action_view_injury_form" type="object"
|
||||
class="fa fa-arrow-right"/>
|
||||
class="fa fa-arrow-right" title="Details"/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
Loading…
Reference in a new issue