Odoo BuildOdoo Build
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
Home
Help
Images
Snippets
Revisions
Modules
Changelog
Mint System
Chat
GitHub
  • Snippets

    • Account
    • Account Accountant
    • Account Asset
    • Account Batch Payment
    • Account Budget
    • Account Financial Report
    • Account Followup
    • Account Journal Items Report
    • Account Sale Timesheet Report
    • Agreement
    • Agreement Legal
    • Auth Api Key
    • Base
    • Base Install Request
    • Base Location
    • Business Requirement
    • Calendar
    • Certificate Planer
    • Contract
    • Crm
    • Crm Iap Lead Enrich
    • Delivery
    • Digest
    • Fleet
    • Forestry Timesheet
    • Gio Payroll Custom
    • Helpdesk
    • Hr
    • Hr Attendance
    • Hr Attendance Kanban
    • Hr Contract
    • Hr Expense
    • Hr Holidays
    • Hr Holidays Delegations
    • Hr Payroll
    • Hr Recruitment
    • Hr Timesheet
    • Industry Fsm
    • Industry Fsm Sale
    • Ir Model
    • Ir Ui View
    • L10n Ch
    • L10n Ch Qr Isr Invoice Import
    • L10n Din5008
    • Mail
    • Mail Activity Board
    • Maintenance
    • Maintenance Plan
    • Mrp
    • Mrp Account
    • Mrp Workorder
    • Payment
    • Portal
    • Printnode Base
    • Product
    • Project
    • Project Enterprise
    • Purchase
    • Purchase Requisition
    • Purchase Requisition Send
    • Res Groups
    • Sale
    • Sale Blanket Order
    • Sale Management
    • Sale Margin
    • Sale Order Contact Person
    • Sale Order Line Date
    • Sale Order Picking Note
    • Sale Partner Incoterm
    • Sale Product Set
    • Sale Subscription
    • Stock
    • Stock Account
    • Stock Delivery Note
    • Survey
      • Layout
        • Remove Brand Promotion Message
        • Set Head Title
      • Survey Question Form
        • Add Button Start Survey
        • Enable Create
      • Survey Question Tree
        • Enable Create
      • Survey User Input View Tree
        • X Department Id
        • X Manager Id
    • Timesheet Grid
    • Web
    • Website
    • Website Discount Voucher
    • Website Sale

Survey

Layout

Remove Brand Promotion Message

ID: mint_system.survey.layout.remove_brand_promotion_message

<data inherit_id="survey.layout" priority="50">
    <div t-call="web.brand_promotion_message" position="replace"/>
</data>

Source: snippets/survey.layout.remove_brand_promotion_message.xml

Set Head Title

ID: mint_system.survey.layout.set_head_title

<data inherit_id="survey.layout" 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/survey.layout.set_head_title.xml

Survey Question Form

Add Button Start Survey

ID: mint_system.survey.survey_question_form.add_button_start_survey

<data inherit_id="survey.survey_question_form" 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/survey.survey_question_form.add_button_start_survey.xml

Enable Create

ID: mint_system.survey.survey_question_form.enable_create

<data inherit_id="survey.survey_question_form" priority="50">
    <form position="attributes">
        <attribute name="create">1</attribute>
    </form>
</data>

Source: snippets/survey.survey_question_form.enable_create.xml

Survey Question Tree

Enable Create

ID: mint_system.survey.survey_question_tree.enable_create

<data inherit_id="survey.survey_question_tree" priority="50">
    <tree position="attributes">
        <attribute name="create">1</attribute>
    </tree>
</data>

Source: snippets/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

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

Source: snippets/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

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

Source: snippets/survey.survey_user_input_view_tree.x_manager_id.xml

Edit this page
Last Updated:
Contributors: Kurt Gisler
Prev
Stock Delivery Note
Next
Timesheet Grid