mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[MIG] web_widget_x2many_2d_matrix_example: Migration to 12.0.
This commit is contained in:
@@ -1 +1,2 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from . import x2m_demo
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from odoo import models, api, fields
|
||||
|
||||
|
||||
class X2MDemo(models.Model):
|
||||
_name = 'x2m.demo'
|
||||
_description = 'X2Many Demo'
|
||||
|
||||
name = fields.Char()
|
||||
line_ids = fields.One2many('x2m.demo.line', 'demo_id')
|
||||
@@ -24,6 +26,7 @@ class X2MDemo(models.Model):
|
||||
|
||||
class X2MDemoLine(models.Model):
|
||||
_name = 'x2m.demo.line'
|
||||
_description = 'X2Many Demo Line'
|
||||
|
||||
name = fields.Char()
|
||||
demo_id = fields.Many2one('x2m.demo')
|
||||
|
||||
Reference in New Issue
Block a user