<gh_stars>0
from datetime import datetime
from odoo import _, api, fields, models


class Authors(models.Model):
    _name = 'authors.logger'
    _description = "First Addon - Author"
    _rec_name = 'name'

    # General Fields
    photo_author = fields.Binary(string="Photo", attachment=True)
    name = fields.Char(string="Name", required=True,
                       help="This is the name of the Author!")
    date_of_birth = fields.Date(
        string='Date of Birth', default=datetime.today())

    # Relations
    published_books = fields.Many2many(
        'books.logger', string="Published Books")

from datetime import datetime
from odoo import _, api, fields, models


class Authors(models.Model):
    _name = 'authors.logger'
    _description = "First Addon - Author"
    _rec_name = 'name'

    # General Fields
    photo_author = fields.Binary(string="Photo", attachment=True)
    name = fields.Char(string="Name", required=True,
                       help="This is the name of the Author!")
    date_of_birth = fields.Date(
        string='Date of Birth', default=datetime.today())

    # Relations
    published_books = fields.Many2many(
        'books.logger', string="Published Books")
# General Fields # Relations