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

  1. from odoo import api, fields, models, _
  2. class EventRegistrationAnswer(models.Model):
  3. _inherit = "event.registration.answer"
  4. extra_product_ids = fields.One2many(related="value_answer_id.extra_product_ids")
  5. sale_order_line_ids = fields.Many2many(
  6. comodel_name="sale.order.line",
  7. column1="event_answer_id",
  8. column2="sale_order_line_id",
  9. relation="event_answer_sale_order_line_rel",
  10. string="Related sale order lines",
  11. )