Public release from ruodoo-project: 19.0 - 2026-09-20 21:17:41 UTC

This commit is contained in:
CI Publish Bot
2026-09-20 21:17:50 +00:00
commit ebd298dbf0
1234 changed files with 187334 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