Skip to content

Commit

Permalink
[FIX] event_sale: confirm event
Browse files Browse the repository at this point in the history
- Create an event with tickets
- Add the event in a SO
- Confim the SO
- Apply

An error occurs (record deleted).

Actually, the real error is hidden and is an insertion error in SQL on
`registration.editor.line` (`event_id` cannot be NULL).

`event_id` is mandatory but read-only, therefore it is not sent to the
server.

opw-787674
  • Loading branch information
nim-odoo committed Dec 14, 2017
1 parent 587a606 commit 01d5fba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/event_sale/wizard/event_edit_registration.xml
Expand Up @@ -10,7 +10,7 @@
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="event_id" readonly='1' force_save="1"/>
<field name="registration_id" readonly='1'/>
<field name="event_ticket_id" domain="[('event_id', '=', event_id)]" readonly='1'/>
<field name="name"/>
Expand Down

0 comments on commit 01d5fba

Please sign in to comment.