Skip to content

Survey

Layout

Remove Brand Promotion Message

ID: mint_system.survey.layout.remove_brand_promotion_message

Inherit ID: survey.layout

<data priority="50">
    <div t-call="web.brand_promotion_message" position="replace"/>
</data>
Source: snippets/mint_system.survey.layout.remove_brand_promotion_message.xml

Set Head Title

ID: mint_system.survey.layout.set_head_title

Inherit ID: survey.layout

<data priority="50">
    <xpath expr="//head" position="before">
        <t t-if="survey">
            <t t-set="title" t-value="('Sozialinfo - ' + survey.title) if survey else 'Odoo'"/>
            <t t-set="x_icon" t-value="'/web/image?model=res.company&amp;id=1&amp;field=favicon'"/>
        </t>
    </xpath>
</data>
Source: snippets/mint_system.survey.layout.set_head_title.xml

Survey Question Form

Add Button Start Survey

ID: mint_system.survey.survey_question_form.add_button_start_survey

Inherit ID: survey.survey_question_form

<data priority="50">
    <button name="action_start_session" position="after">
        <button name="action_start_survey" string="Start Survey" type="object" attrs="{'invisible': [('state', '=', 'draft')]}"/>
    </button>
</data>
Source: snippets/mint_system.survey.survey_question_form.add_button_start_survey.xml

Enable Create

ID: mint_system.survey.survey_question_form.enable_create

Inherit ID: survey.survey_question_form

<data priority="50">
    <form position="attributes">
        <attribute name="create">1</attribute>
    </form>
</data>
Source: snippets/mint_system.survey.survey_question_form.enable_create.xml

Survey Question Tree

Enable Create

ID: mint_system.survey.survey_question_tree.enable_create

Inherit ID: survey.survey_question_tree

<data priority="50">
    <tree position="attributes">
        <attribute name="create">1</attribute>
    </tree>
</data>
Source: snippets/mint_system.survey.survey_question_tree.enable_create.xml

Survey User Input View Tree

X Department Id

ID: mint_system.survey.survey_user_input_view_tree.x_department_id

Inherit ID: survey.survey_user_input_view_tree

<data priority="50">
    <xpath expr="//field[@name='partner_id']" position="after">
        <field name="x_department_id" optional="show"/>
    </xpath>
</data>
Source: snippets/mint_system.survey.survey_user_input_view_tree.x_department_id.xml

X Manager Id

ID: mint_system.survey.survey_user_input_view_tree.x_manager_id

Inherit ID: survey.survey_user_input_view_tree

<data priority="50">
    <xpath expr="//field[@name='partner_id']" position="after">
        <field name="x_manager_id" optional="show"/>
    </xpath>
</data>
Source: snippets/mint_system.survey.survey_user_input_view_tree.x_manager_id.xml