mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 05:12:09 +02:00
14 lines
370 B
Python
14 lines
370 B
Python
# © 2023 David BEAL @ Akretion
|
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResPartner(models.Model):
|
|
_inherit = "res.partner"
|
|
|
|
brand_id = fields.Many2one(comodel_name="res.brand")
|
|
brand_logo = fields.Image(
|
|
string="Brand logo",
|
|
related="brand_id.partner_id.image_128",
|
|
)
|