1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/test_web_gantt/models/test_web_gantt_models.py
2024-12-10 09:04:09 +07:00

20 lines
849 B
Python

# -*- 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")