[IMP] code comment in several modules
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<odoo>
|
||||
<data>
|
||||
<!-- Event stage view form -->
|
||||
<!-- * Add field visible_in_survey -->
|
||||
<record id="event_stage_view_form_survey_event_registration_generation" model="ir.ui.view">
|
||||
<field name="name">event.stage.view.form.survey.event.registration.generation</field>
|
||||
<field name="model">event.stage</field>
|
||||
@@ -12,6 +14,8 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<!-- Event stage view tree -->
|
||||
<!-- * Add field visible_in_survey -->
|
||||
<record id="event_stage_view_tree_survey_event_registration_generation" model="ir.ui.view">
|
||||
<field name="name">event.stage.view.tree.survey.event.registration.generation</field>
|
||||
<field name="model">event.stage</field>
|
||||
|
@@ -1,37 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
|
||||
<!-- Survey question form -->
|
||||
<record id="survey_question_form" model="ir.ui.view">
|
||||
<field name="model">survey.question</field>
|
||||
<field name="inherit_id" ref="survey.survey_question_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='comments_allowed']/.." position="after">
|
||||
<group name="event_registration" string="Event registration">
|
||||
<!-- related event product question, to filter events, in case of event question -->
|
||||
<field name="event_product_question_id" options="{'no_open': True, 'no_create': True}"
|
||||
attrs="{'invisible': [('question_type','!=','event')]}"
|
||||
help="Select the question asking for event product, to filter proposed events." />
|
||||
|
||||
<!-- event registration field, filtered by event_registration_allowed_field_ids (invisible) -->
|
||||
<field name="event_registration_field" widget="selection" />
|
||||
<field name="event_registration_allowed_field_ids" invisible="1" />
|
||||
</group>
|
||||
</xpath>
|
||||
|
||||
|
||||
<xpath expr="//field[@name='suggested_answer_ids']" position="attributes">
|
||||
<attribute
|
||||
name="context"
|
||||
>{'default_question_id': active_id, 'default_event_registration_field': event_registration_field}</attribute>
|
||||
</xpath>
|
||||
<xpath
|
||||
expr="//field[@name='suggested_answer_ids']//field[@name='value']"
|
||||
position="after"
|
||||
>
|
||||
<field name="event_registration_field" invisible="1" />
|
||||
<field
|
||||
name="event_registration_field_resource_ref"
|
||||
readonly="False"
|
||||
options="{'hide_model': True, 'no_create': True, 'no_edit': True, 'no_open': True}"
|
||||
attrs="{'column_invisible': [('parent.event_registration_field', '=', False)]}"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
@@ -1,11 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<!-- Survey form -->
|
||||
<record id="survey_form" model="ir.ui.view">
|
||||
<field name="model">survey.survey</field>
|
||||
<field name="inherit_id" ref="survey.survey_survey_view_form" />
|
||||
<field name="arch" type="xml">
|
||||
<group name="options" position="inside">
|
||||
<group name="event_registration_options" string="Events registrations">
|
||||
<!-- Possibility to generate event registration -->
|
||||
<field name="generate_registration" />
|
||||
</group>
|
||||
</group>
|
||||
|
@@ -13,6 +13,7 @@
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- Event product selector -->
|
||||
<template id="question_event_product" name="Question: event product">
|
||||
<div class="o_survey_comment_container p-0">
|
||||
<select class="o_survey_form_choice_item"
|
||||
@@ -30,6 +31,7 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<!-- Event selector -->
|
||||
<template id="question_event" name="Question: event">
|
||||
<div class="o_survey_comment_container p-0">
|
||||
<select class="o_survey_form_choice_item"
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<odoo>
|
||||
<!-- Inherit Form View -->
|
||||
<!-- User Input Form View -->
|
||||
<record id="survey_event_registration_generation_inherit_survey_user_input_line_form"
|
||||
model="ir.ui.view">
|
||||
<field name="name">user.input.value.event.product</field>
|
||||
@@ -7,6 +7,7 @@
|
||||
<field name="inherit_id" ref="survey.survey_user_input_line_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='answer_type']" position="after">
|
||||
<!-- add selected event and event_product -->
|
||||
<field name="value_event"/>
|
||||
<field name="value_event_product" />
|
||||
</xpath>
|
||||
|
Reference in New Issue
Block a user