# -*- coding: utf-8 -*-

from odoo import models, fields


class Comics(models.Model):
    _name = 'marvel.comics'

    title = fields.Char()
    description = fields.Text()

    price = fields.Integer()
    dates = fields.Datetime("Issue date")

    images = fields.One2many("marvel.image", "comic", string="images")
    characters = fields.One2many("marvel.character", "comic", string="characters")
    stories = fields.One2many("marvel.story", "comic", string="stories")

    is_visible = fields.Boolean(default=False)


class Image(models.Model):
    _name = "marvel.image"
    path = fields.Char()
    comic = fields.Many2one("marvel.comics")


class Character(models.Model):
    _name = "marvel.character"

    name = fields.Char()
    comic = fields.Many2one("marvel.comics")


class Story(models.Model):
    _name = "marvel.story"

    name = fields.Char()
    comic = fields.Many2one("marvel.comics")

8ed2ea0d47b2ab33e9337becdf93bf953c452fe3
<mask token>


class Character(models.Model):
    <mask token>
    <mask token>
    <mask token>


class Story(models.Model):
    _name = 'marvel.story'
    name = fields.Char()
    comic = fields.Many2one('marvel.comics')

<mask token>


class Comics(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Image(models.Model):
    _name = 'marvel.image'
    path = fields.Char()
    comic = fields.Many2one('marvel.comics')


class Character(models.Model):
    _name = 'marvel.character'
    name = fields.Char()
    comic = fields.Many2one('marvel.comics')


class Story(models.Model):
    _name = 'marvel.story'
    name = fields.Char()
    comic = fields.Many2one('marvel.comics')

<mask token>


class Comics(models.Model):
    _name = 'marvel.comics'
    title = fields.Char()
    description = fields.Text()
    price = fields.Integer()
    dates = fields.Datetime('Issue date')
    images = fields.One2many('marvel.image', 'comic', string='images')
    characters = fields.One2many('marvel.character', 'comic', string=
        'characters')
    stories = fields.One2many('marvel.story', 'comic', string='stories')
    is_visible = fields.Boolean(default=False)


class Image(models.Model):
    _name = 'marvel.image'
    path = fields.Char()
    comic = fields.Many2one('marvel.comics')


class Character(models.Model):
    _name = 'marvel.character'
    name = fields.Char()
    comic = fields.Many2one('marvel.comics')


class Story(models.Model):
    _name = 'marvel.story'
    name = fields.Char()
    comic = fields.Many2one('marvel.comics')

from odoo import models, fields


class Comics(models.Model):
    _name = 'marvel.comics'
    title = fields.Char()
    description = fields.Text()
    price = fields.Integer()
    dates = fields.Datetime('Issue date')
    images = fields.One2many('marvel.image', 'comic', string='images')
    characters = fields.One2many('marvel.character', 'comic', string=
        'characters')
    stories = fields.One2many('marvel.story', 'comic', string='stories')
    is_visible = fields.Boolean(default=False)


class Image(models.Model):
    _name = 'marvel.image'
    path = fields.Char()
    comic = fields.Many2one('marvel.comics')


class Character(models.Model):
    _name = 'marvel.character'
    name = fields.Char()
    comic = fields.Many2one('marvel.comics')


class Story(models.Model):
    _name = 'marvel.story'
    name = fields.Char()
    comic = fields.Many2one('marvel.comics')

# -*- coding: utf-8 -*-

from odoo import models, fields


class Comics(models.Model):
    _name = 'marvel.comics'

    title = fields.Char()
    description = fields.Text()

    price = fields.Integer()
    dates = fields.Datetime("Issue date")

    images = fields.One2many("marvel.image", "comic", string="images")
    characters = fields.One2many("marvel.character", "comic", string="characters")
    stories = fields.One2many("marvel.story", "comic", string="stories")

    is_visible = fields.Boolean(default=False)


class Image(models.Model):
    _name = "marvel.image"
    path = fields.Char()
    comic = fields.Many2one("marvel.comics")


class Character(models.Model):
    _name = "marvel.character"

    name = fields.Char()
    comic = fields.Many2one("marvel.comics")


class Story(models.Model):
    _name = "marvel.story"

    name = fields.Char()
    comic = fields.Many2one("marvel.comics")
