Skip to content
Snippets Groups Projects
Commit 12a80c02 authored by mafo-odoo's avatar mafo-odoo
Browse files

[FIX] event_sale event_booth_sale: add no event to the so template


Steps to reproduce:
- Add an event product to the template order
- Create an so
- Select the template order you just created

Expected behavior:
you get a popup to configure the event

Current behavior:
There is no popup and the product event is not
fully configured

opw-2971168

closes odoo/odoo#101436

X-original-commit: 33062d9561e9cb4a680dfc36e0c8931a0647e5e8
Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent c1b9905b
Branches
Tags
No related merge requests found
......@@ -9,3 +9,4 @@ from . import event_booth_category
from . import event_type_booth
from . import sale_order
from . import sale_order_line
from . import sale_order_template_line
from odoo import fields, models
class SaleOrderTemplateLine(models.Model):
_inherit = "sale.order.template.line"
product_id = fields.Many2one(domain="[('sale_ok', '=', True), ('detailed_type', 'not in', ['event', 'event_booth']), ('company_id', 'in', [company_id, False])]")
......@@ -6,3 +6,4 @@ from . import event_registration
from . import event_ticket
from . import sale_order
from . import product
from . import sale_order_template_line
from odoo import fields, models
class SaleOrderTemplateLine(models.Model):
_inherit = "sale.order.template.line"
product_id = fields.Many2one(domain="[('sale_ok', '=', True), ('detailed_type', '!=', 'event'), ('company_id', 'in', [company_id, False])]")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment