1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/social/models/social_stream_post_image.py
2024-12-10 09:04:09 +07:00

16 lines
621 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models, fields
class SocialStreamAttachment(models.Model):
""" A social.stream.post.image represents an image that was shared with a social.stream.post.
It only contains the URL of the image on the related social.media. """
_name = 'social.stream.post.image'
_description = 'Social Stream Post Image Attachment'
image_url = fields.Char("Image URL", readonly=True, required=True)
stream_post_id = fields.Many2one('social.stream.post', string="Stream Post", ondelete="cascade")