mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 06:32:03 +02:00
19 lines
437 B
Python
19 lines
437 B
Python
# Copyright 2019 ACSONE SA/NV
|
|
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResBrand(models.Model):
|
|
_name = "res.brand"
|
|
_description = "Brand"
|
|
|
|
partner_id = fields.Many2one(
|
|
comodel_name="res.partner",
|
|
string="Partner",
|
|
required=True,
|
|
index=True,
|
|
auto_join=True,
|
|
delegate=True,
|
|
ondelete="restrict",
|
|
)
|