mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-25 17:52:00 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
19
odoo-bringout-oca-brand-brand/brand/models/res_brand.py
Normal file
19
odoo-bringout-oca-brand-brand/brand/models/res_brand.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# 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",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue