We would like to make the "no item found" screens more appealing.
Before this commit, it shows a small help tip in the top-left
corner of the screen, just below the "Create" button.
With this commit, these help tips have been replaced by onboarding
screens, which consist of a picture and some text below, both of which
are horizontally centered.
The texts have been slightly changed, so that they are shorter and clearer.
Considered modules:
(A)
account,
account_asset,
account_budget,
account_test,
account_voucher,
analytic
(B)
barcodes,
base,
base_automation,
board
(C)
calendar,
contacts,
crm
(D)
delivery
(E)
event
(F)
fleet
(G)
gamification,
google_drive
(H)
hr,
hr_attendance,
hr_contract,
hr_expense,
hr_gamification,
hr_holidays,
hr_payroll,
hr_recruitment,
hr_timesheet
(I)
im_livechat
(L)
l10n_fr_sale_closing,
link_tracker,
lunch
(M)
mail,
maintenance,
mass_mailing,
membership,
mrp
(N)
note
(P)
payment,
point_of_sale,
post_mercury,
pos_restaurant,
product,
project,
purchase,
purchase_requisition
(R)
rating,
repair,
resource
(S)
sale,
sale_timesheet,
sales_team,
stock,
stock_account,
stock_landed_costs,
stock_picking_batch,
survey
(U)
utm
(W)
web,
website,
website_blog,
website_customer,
website_event_track,
website_forum,
website_quote,
website_sale,
website_sale_digital,
website_slides
66 lines
3.1 KiB
XML
66 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="rating_rating_view_search_project" model="ir.ui.view">
|
|
<field name="name">rating.rating.search.project</field>
|
|
<field name="model">rating.rating</field>
|
|
<field name="inherit_id" ref="rating.rating_rating_view_search"/>
|
|
<field name="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//filter[@name='resource']" position="after">
|
|
<field name="parent_res_name"/>
|
|
<filter string="Project" name="groupby_project" context="{'group_by': 'parent_res_name'}"/>
|
|
</xpath>
|
|
<xpath expr="/search" position="inside">
|
|
<filter string="Last 30 days" name="rating_last_30_days" domain="[('create_date', '>=', (context_today()-datetime.timedelta(days=30)).strftime('%Y-%m-%d'))]"/>
|
|
<separator/>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="rating_rating_action_view_project_rating" model="ir.actions.act_window">
|
|
<field name="name">Rating</field>
|
|
<field name="res_model">rating.rating</field>
|
|
<field name="view_mode">kanban,tree,graph,pivot,form</field>
|
|
<field name="domain">[('consumed','=',True), ('parent_res_model','=','project.project')]</field>
|
|
<field name="search_view_id" ref="rating_rating_view_search_project"/>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_empty_folder">
|
|
There is no rating for this object at the moment
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="rating_rating_action_task" model="ir.actions.act_window">
|
|
<field name="name">Customer Ratings</field>
|
|
<field name="res_model">rating.rating</field>
|
|
<field name="view_mode">kanban,tree,pivot,graph,form</field>
|
|
<field name="domain">[('res_model', '=', 'project.task'), ('res_id', '=', active_id), ('consumed', '=', True)]</field>
|
|
<field name="search_view_id" ref="rating_rating_view_search_project"/>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_empty_folder">
|
|
No customer ratings yet
|
|
</p><p>
|
|
Customer ratings on tasks. If you have no rating, change your project Settings to activate it.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="rating_rating_action_project_report" model="ir.actions.act_window">
|
|
<field name="name">Customer Ratings</field>
|
|
<field name="res_model">rating.rating</field>
|
|
<field name="view_mode">kanban,tree,pivot,graph,form</field>
|
|
<field name="domain">[('parent_res_model','=','project.project'), ('consumed', '=', True)]</field>
|
|
<field name="search_view_id" ref="rating_rating_view_search_project"/>
|
|
<field name="help" type="html">
|
|
<p class="o_view_nocontent_empty_folder">
|
|
No customer ratings yet
|
|
</p><p>
|
|
Customer ratings on tasks. If you have no rating, change your project Settings to activate it.
|
|
</p>
|
|
</field>
|
|
<field name="context">{}</field>
|
|
</record>
|
|
|
|
</odoo>
|