chore: import enterprise addons 19.0 bulk snapshot

This commit is contained in:
1b-agent committed 2026-09-16 10:13:08 +00:00
commit ca4af030d3
39951 files changed
+15570005

No files matched your search

@@ -0,0 +1,19 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
from odoo.fields import Domain
class SocialPostTemplate(models.Model):
_inherit = 'social.post.template'
def _get_default_accounts_domain(self):
""" As YouTube requires 'extra work' (video upload, ...), we don't want it selected by default.
It will also not be available for the social post template.
"""
youtube_media = self.env.ref('social_youtube.social_media_youtube')
return Domain.AND([
super()._get_default_accounts_domain(),
[('media_id', '!=', youtube_media.id)]
])