[FIX] event_sale: create tickets with default product type "service"
In some cases when creating a new ticket, the default product type shown is a "Consumable". It should rather be handled as a "Service". In later versions, a detailed type is created, but the base product type should be set to service too. This commit uses the `product_id` `context` to set the default detailed type to "event". Task-2655226 closes odoo/odoo#78690 X-original-commit: a03e12810152559efc712cb067756d517c7647ca Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<field name="inherit_id" ref="event.event_type_ticket_view_tree_from_type"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="product_id"/>
|
||||
<field name="product_id" context="{'default_detailed_type': 'event'}"/>
|
||||
</field>
|
||||
<field name="description" position="after">
|
||||
<field name="price"/>
|
||||
@@ -22,7 +22,7 @@
|
||||
<field name="inherit_id" ref="event.event_type_ticket_view_form_from_type"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="name" position="after">
|
||||
<field name="product_id"/>
|
||||
<field name="product_id" context="{'default_detailed_type': 'event'}"/>
|
||||
</field>
|
||||
<field name="description" position="after">
|
||||
<field name="price"/>
|
||||
|
||||
Reference in New Issue
Block a user