[IMP] rating: guidelines compliance
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
|
||||
<!-- Bundle for Rating Widget (in assets common to be used in website modules) -->
|
||||
<template id="assets_common" inherit_id="web.assets_common" name="Rating common assets">
|
||||
@@ -95,7 +94,7 @@
|
||||
</template>
|
||||
|
||||
<!-- External page : thanks message -->
|
||||
<template id="rating_external_page_view">
|
||||
<template id="rating_external_page_view" name="Rating Page Done">
|
||||
<head>
|
||||
<link rel='stylesheet' href='/web/static/lib/bootstrap/css/bootstrap.css'/>
|
||||
<link rel='stylesheet' href='/web/static/lib/fontawesome/css/font-awesome.css'/>
|
||||
@@ -112,7 +111,7 @@
|
||||
</template>
|
||||
|
||||
<!-- External page: rate and submit feedback -->
|
||||
<template id="rating_external_page_submit">
|
||||
<template id="rating_external_page_submit" name="Rating Page Submit">
|
||||
<head>
|
||||
<link rel='stylesheet' href='/web/static/lib/bootstrap/css/bootstrap.css'/>
|
||||
</head>
|
||||
@@ -141,5 +140,4 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
</data>
|
||||
</odoo>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<record model="ir.ui.view" id="view_rating_rating_kanban">
|
||||
|
||||
<record id="rating_rating_view_kanban" model="ir.ui.view">
|
||||
<field name="name">rating.rating.kanban</field>
|
||||
<field name="model">rating.rating</field>
|
||||
<field name="arch" type="xml">
|
||||
@@ -27,7 +27,7 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="view_rating_rating_pivot">
|
||||
<record id="rating_rating_view_pivot" model="ir.ui.view">
|
||||
<field name="name">rating.rating.pivot</field>
|
||||
<field name="model">rating.rating</field>
|
||||
<field name="arch" type="xml">
|
||||
@@ -39,7 +39,7 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="view_rating_rating_graph">
|
||||
<record id="rating_rating_view_graph" model="ir.ui.view">
|
||||
<field name="name">rating.rating.graph</field>
|
||||
<field name="model">rating.rating</field>
|
||||
<field name="arch" type="xml">
|
||||
@@ -50,7 +50,7 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record model="ir.ui.view" id="view_rating_rating_search">
|
||||
<record id="rating_rating_view_search" model="ir.ui.view">
|
||||
<field name="name">rating.rating.search</field>
|
||||
<field name="model">rating.rating</field>
|
||||
<field name="arch" type="xml">
|
||||
@@ -82,12 +82,12 @@
|
||||
<field name="name">Rating</field>
|
||||
<field name="res_model">rating.rating</field>
|
||||
<field name="view_mode">kanban,graph,pivot</field>
|
||||
<field name="domain">[('consumed','=',True)]</field>
|
||||
<field name="domain">[('consumed','=',True)]</field>
|
||||
<field name="help" type="html">
|
||||
<p>
|
||||
There is no rating for this object at the moment.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -14,7 +14,6 @@ This module Allows a customer to give rating on Project.
|
||||
'data': [
|
||||
'data/project_data.xml',
|
||||
'views/project_view.xml',
|
||||
'views/project_dashboard.xml',
|
||||
],
|
||||
'demo': ['data/project_demo.xml'],
|
||||
'installable': True,
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
<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>
|
||||
@@ -79,6 +79,38 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<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>
|
||||
|
||||
<!-- inherit project.task.type form view to add email template for task -->
|
||||
<record id="view_project_task_type_rating_form" model="ir.ui.view">
|
||||
<field name="name">project.task.type.form.view.inherit</field>
|
||||
|
||||
Reference in New Issue
Block a user