[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#101456 X-original-commit: 33062d9561e9cb4a680dfc36e0c8931a0647e5e8 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com> Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Fockedey Martin (mafo) <mafo@odoo.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
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
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
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])]")
|
||||
Reference in New Issue
Block a user