[NEW] pad_hedgedoc_tasks: create addon
This commit is contained in:
12
pad_hedgedoc_tasks/wizard/create_pad.py
Normal file
12
pad_hedgedoc_tasks/wizard/create_pad.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# -*- 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["task_id"] = self.env["project.task"].browse(self._context.get("active_ids")).id
|
||||
return values
|
Reference in New Issue
Block a user