[NEW] pad_hedgedoc_leads: create addon

This commit is contained in:
Stéphan Sainléger
2022-08-09 23:45:04 +02:00
parent 1561baeae0
commit 2d9984aef7
9 changed files with 231 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from odoo import models, fields
class Lead(models.Model):
_inherit = "crm.lead"
hedgedoc_pads = fields.One2many("hedgedoc.pad", "lead_id")
def create_hedgedoc_pad(self):
return {
"name": "Create a Hedgedoc pad",
"type": "ir.actions.act_window",
"view_mode": "form",
"res_model": "create.hedgedoc.pad.wizard",
"target": "new",
}