mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-24 16:12:02 +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
|
|
@ -0,0 +1,14 @@
|
|||
# © 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",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue