36 lines
1.7 KiB
XML
36 lines
1.7 KiB
XML
|
<odoo>
|
||
|
<record id="view_project_project_rating_kanban" model="ir.ui.view">
|
||
|
<field name="name">rating.project.project.kanban.inherit</field>
|
||
|
<field name="model">project.project</field>
|
||
|
<field name="inherit_id" ref="project.view_project_kanban"/>
|
||
|
<field name="arch" type="xml">
|
||
|
<field name="use_tasks" position="after">
|
||
|
<field name="percentage_satisfaction_project" invisible="1"/>
|
||
|
<field name="rating_status" invisible="1"/>
|
||
|
</field>
|
||
|
|
||
|
<xpath expr="//div[contains(@class, 'o_kanban_primary_left')]" position="inside">
|
||
|
<div t-if="record.rating_status.raw_value != 'no'" class="mt8 text-primary" title="Percentage of happy ratings over the past 30 days. Get rating details from the More menu.">
|
||
|
<b>
|
||
|
<i class="fa fa-smile-o"/>
|
||
|
<t t-if="record.percentage_satisfaction_project.value == -1">
|
||
|
No rating yet
|
||
|
</t>
|
||
|
<t t-if="record.percentage_satisfaction_project.value != -1">
|
||
|
<t t-esc="record.percentage_satisfaction_project.value"/>%
|
||
|
</t>
|
||
|
</b>
|
||
|
</div>
|
||
|
</xpath>
|
||
|
<xpath expr="//div[contains(@class, 'o_kanban_card_manage_section')]" position="inside">
|
||
|
<div t-if="record.rating_status.raw_value != 'no'">
|
||
|
<a name="action_view_all_rating" type="object">
|
||
|
Customer Ratings
|
||
|
</a>
|
||
|
</div>
|
||
|
</xpath>
|
||
|
|
||
|
</field>
|
||
|
</record>
|
||
|
</odoo>
|