Files
pad-tools/pad_hedgedoc_leads/wizard/create_pad.py
2022-08-19 16:28:18 +02:00

13 lines
377 B
Python

# -*- coding: utf-8 -*-
from odoo import models
class CreateHedgedocPadWizard(models.TransientModel):
_inherit = "create.hedgedoc.pad.wizard"
def _compute_pad_values(self):
values = super(CreateHedgedocPadWizard, self)._compute_pad_values()
values["lead_id"] = self.env["crm.lead"].browse(self._context.get("active_ids")).id
return values