Public release from ruodoo-project: 19.0 - 2026-11-01 22:52:25 UTC

This commit is contained in:
CI Publish Bot
2026-11-01 22:54:30 +00:00
commit 26250aa580
2492 changed files with 664277 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
from odoo import models, fields
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