Skip to content

Commit

Permalink
[FIX] event_booth_sale: set correct product type for 'Event Booth' pr…
Browse files Browse the repository at this point in the history
…oduct

When booth management is activated, we have a dedicated product for the event
booth. Currently, the product type for this product is set as 'Service'.

This happens after a recent commit[1]. With this commit, we now have a
dedicated detailed product type for event booth, but in data file of
booth product it is set to `service`, which in this case should be
`event_booth`. Apart from that, when creating a booth product for event
booth category, the product type is set as 'consumable', which should
be 'service'.

This commit updates the data for the default booth product and sets the
detailed product type to `event_booth`. And this commit also passes
correct context when creating a product for the event booth category so
that the product type is now set as 'service'.

commit[1] - 3d7b9bb

Task-2648950

closes #76801

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
  • Loading branch information
Mitul Shah committed Sep 24, 2021
1 parent ea3ec16 commit e466430
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/event_booth_sale/data/product_data.xml
Expand Up @@ -8,7 +8,7 @@
<field name="description_sale" eval="False"/>
<field name="categ_id" ref="event_sale.product_category_events"/>
<field name="invoice_policy">order</field>
<field name="detailed_type">service</field>
<field name="detailed_type">event_booth</field>
</record>

</data></odoo>
Expand Up @@ -9,7 +9,7 @@
<field name="arch" type="xml">
<group name="main" position="inside">
<group string="Booth Details">
<field name="product_id" context="{'default_detailed_type': 'event_booth'}"/>
<field name="product_id" context="{'default_detailed_type': 'event_booth', 'default_type': 'service'}"/>
<field name="price"/>
</group>
</group>
Expand Down

0 comments on commit e466430

Please sign in to comment.