Odoo modules related to events management
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

14 lines
475 B

from odoo import api, fields, models, _
class EventRegistrationAnswer(models.Model):
_inherit = "event.registration.answer"
extra_product_ids = fields.One2many(related="value_answer_id.extra_product_ids")
sale_order_line_ids = fields.Many2many(
comodel_name="sale.order.line",
column1="event_answer_id",
column2="sale_order_line_id",
relation="event_answer_sale_order_line_rel",
string="Related sale order lines",
)