Public release from ruodoo-project: 19.0 - 2026-05-10 21:19:01 UTC

This commit is contained in:
CI Publish Bot
2026-05-10 21:19:11 +00:00
commit cbf9e6e6d6
1213 changed files with 183945 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
from odoo import models, fields, api
class HypergraphNode(models.Model): #узлы и вершины гиперграфа
_name = 'hg.node'
_description = 'Вершина графа'
name = fields.Char(string='Имя вершины')
res_id = fields.Integer(string='ID ресурса')
res_model = fields.Char(string='Модель')
def goto_related(self):
vals= {
'type': 'ir.actions.act_window',
'res_model': self.res_model,
'res_id': self.res_id,
'views': [(False, 'form')],
'view_id': False,
'target': 'new',
'view_mode': 'form',
}
return vals