PURPOSE
This commit globally improves the backend survey module usability, notably by
renaming labels, moving menu items around and cleaning unused features.
SPECIFICATIONS
These changes include (non-exhaustive list):
On questions
- Changing labels, action helpers and modules description to be clearer;
- Re-organizing the survey.question form view, notably to clearly distinguish
fields related to answers and validation options;
- Removing the "Clean test answers" server action as it can be done through
a search + unlink;
- Removing the allow_value_image field as we now always display the
image field. Users simply choose to let it blank;
On surveys
- Re-organizing the survey.survey form view fields to get a clear view of
the various options;
- automatically update scoring type when checking certification: if not one
linked to scoring, update to scoring without answers;
- set create as create_multi to speedup batch creation;
- Changes ACL rights for user_input_line. Now, only Survey Managers can
change answers. Survey users keep only a read access on answers, meaning
changing what customers / people answered is now limited to managers;
Globally
- Moving menu items and make them visible outside debug mode;
- Answer recap on print frontend page is now visible whenever a scoring is
applied, not only for certification, as if scoring is activated seeing
answers is probably wanted;
Task-2600241
closes odoo/odoo#79813
Related: odoo/upgrade#3033
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
41 lines
2.3 KiB
XML
41 lines
2.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo><data>
|
|
|
|
<record id="res_partner_action_certifications" model="ir.actions.act_window">
|
|
<field name="name">Certifications Succeeded</field>
|
|
<field name="res_model">survey.user_input</field>
|
|
<field name="view_mode">tree,form</field>
|
|
<field name="context">{'search_default_scoring_success': 1}</field>
|
|
</record>
|
|
|
|
<record id="res_partner_view_form" model="ir.ui.view">
|
|
<field name="name">res.partner.view.form.inherit.survey</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="groups_id" eval="[(4, ref('survey.group_survey_user'))]"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//div[@name='button_box']" position="inside">
|
|
<button class="oe_stat_button" type="object"
|
|
icon="fa-trophy" name="action_view_certifications"
|
|
attrs="{'invisible': ['|', ('certifications_count', '=', 0), ('is_company', '=', True)]}">
|
|
<div class="o_field_widget o_stat_info">
|
|
<span class="o_stat_value"><field name="certifications_count" /></span>
|
|
<span class="o_stat_text" attrs="{'invisible': [('certifications_count', '<', 2)]}">Certifications</span>
|
|
<span class="o_stat_text" attrs="{'invisible': [('certifications_count', '>', 1)]}">Certification</span>
|
|
</div>
|
|
</button>
|
|
<button class="oe_stat_button" type="object"
|
|
icon="fa-trophy" name="action_view_certifications"
|
|
attrs="{'invisible': ['|', ('certifications_company_count', '=', 0), ('is_company', '=', False)]}">
|
|
<div class="o_field_widget o_stat_info">
|
|
<span class="o_stat_value"><field name="certifications_company_count" /></span>
|
|
<span class="o_stat_text" attrs="{'invisible': [('certifications_company_count', '<', 2)]}">Certifications</span>
|
|
<span class="o_stat_text" attrs="{'invisible': [('certifications_company_count', '>', 1)]}">Certification</span>
|
|
</div>
|
|
</button>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</data></odoo>
|