<commit_before><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_event_registration_editor_form" model="ir.ui.view">
            <field name="name">registration.editor.form</field>
            <field name="model">registration.editor</field>
            <field name="arch" type="xml">
                <form string="Registration">
                    <p>Before confirming <field name="sale_order_id" readonly="1" class="oe_inline"/>
                    please give details about the registrations</p>
                    <field name="event_registration_ids">
                        <tree string="Registration" editable="top" create="false" delete="false">
                            <field name="event_id" readonly='1'/>
                            <field name="registration_id" readonly='1'/>
                            <field name="event_ticket_id" domain="[('event_id', '=', event_id)]" readonly='1'/>
                            <field name="name"/>
                            <field name="email"/>
                            <field name="phone"/>
                        </tree>
                    </field>
                    <footer>
                        <button string="Apply" name="action_make_registration" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel"/>
                    </footer>
                </form>
            </field>
        </record>

        <record id="action_sale_order_event_registration" model="ir.actions.act_window">
            <field name="name">Event Registrations</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">registration.editor</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_event_registration_editor_form"/>
            <field name="target">new</field>
            <field name="context">{'default_sale_order_id': context.get('default_sale_order_id')}</field>
        </record>
<commit_msg>[FIX] event_sale: wizard to edit registrations was failing due to some strange construct in the context of an action. Basic code works well, no need to try to do dirty things in the context.<commit_after><?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>

        <record id="view_event_registration_editor_form" model="ir.ui.view">
            <field name="name">registration.editor.form</field>
            <field name="model">registration.editor</field>
            <field name="arch" type="xml">
                <form string="Registration">
                    <p>Before confirming <field name="sale_order_id" readonly="1" class="oe_inline"/>
                    please give details about the registrations</p>
                    <field name="event_registration_ids">
                        <tree string="Registration" editable="top" create="false" delete="false">
                            <field name="event_id" readonly='1'/>
                            <field name="registration_id" readonly='1'/>
                            <field name="event_ticket_id" domain="[('event_id', '=', event_id)]" readonly='1'/>
                            <field name="name"/>
                            <field name="email"/>
                            <field name="phone"/>
                        </tree>
                    </field>
                    <footer>
                        <button string="Apply" name="action_make_registration" type="object" class="oe_highlight"/>
                        or
                        <button string="Cancel" class="oe_link" special="cancel"/>
                    </footer>
                </form>
            </field>
        </record>

        <record id="action_sale_order_event_registration" model="ir.actions.act_window">
            <field name="name">Event Registrations</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">registration.editor</field>
            <field name="view_type">form</field>
            <field name="view_mode">form</field>
            <field name="view_id" ref="view_event_registration_editor_form"/>
            <field name="target">new</field>
            <field name="context">{}</field>
        </record>

{'fraction_non_alphanumeric': 0.13385107354956602, 'fraction_numerical': 0.0031978072179077205, 'mean_word_length': 1.832470892626132, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 2, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2885995', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1079, 'n_words': 218}