# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import models, fields class TestWebGanttPill(models.Model): _name = 'test.web.gantt.pill' _description = 'Test Web Gantt Pill' active = fields.Boolean(default=True) name = fields.Char() dependency_field = fields.Many2many('test.web.gantt.pill', relation='web_gantt_test_pill_dep', column1='slave', column2='master', string='De') dependency_inverted_field = fields.Many2many('test.web.gantt.pill', relation='web_gantt_test_pill_dep', column1='master', column2='slave') date_start = fields.Datetime("Start Datetime") date_stop = fields.Datetime("Stop Datetime") parent_id = fields.Many2one("test.web.gantt.pill")