Skip to content

Commit

Permalink
[MIG] website_event_questions_by_ticket: Migration to 14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
willytal committed Jul 7, 2022
1 parent e7e17de commit 9697d84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion website_event_questions_by_ticket/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Conditional Events Questions",
"summary": "Events Questions conditional to the chosen ticket",
"version": "13.0.1.0.1",
"version": "14.0.1.0.1",
"category": "Website",
"website": "https://github.com/OCA/event",
"author": "Tecnativa, " "Odoo Community Association (OCA)",
Expand Down
21 changes: 9 additions & 12 deletions website_event_questions_by_ticket/views/event_event_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,26 @@
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.ui.view" id="view_event_question_form">
<field name="model">event.question</field>
<field
name="inherit_id"
ref="website_event_questions.view_event_question_form"
/>
<field name="model">event.event</field>
<field name="inherit_id" ref="website_event_questions.event_event_view_form" />
<field name="arch" type="xml">
<field name="answer_ids" position="after">
<xpath
expr="//field[@name='question_ids']/form/sheet/notebook"
position="after"
>
<group>
<field
name="restricted_ticket_ids"
widget="many2many_tags"
placeholder="Leave it empty for being available for all tickets"
/>
</group>
</field>
</xpath>
</field>
</record>
<record model="ir.ui.view" id="view_event_form_inherit_question">
<record model="ir.ui.view" id="event_event_view_form">
<field name="model">event.event</field>
<field
name="inherit_id"
ref="website_event_questions.view_event_form_inherit_question"
/>
<field name="inherit_id" ref="website_event_questions.event_event_view_form" />
<field name="arch" type="xml">
<xpath
expr="//field[@name='question_ids']/tree/field[@name='answer_ids']"
Expand Down

0 comments on commit 9697d84

Please sign in to comment.