itsulu-blog-publisher/addons/itsulu_blog_publisher/views/blog_post_social_views.xml
Nicholas R 741b44f409 Fix views: rename tree to list for Odoo 17+ compatibility
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 16:55:46 -04:00

84 lines
4.2 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- ================================================================
SOCIAL MEDIA COPY VIEWS
================================================================ -->
<record id="view_blog_post_social_tree" model="ir.ui.view">
<field name="name">itsulu.blog.post.social.tree</field>
<field name="model">itsulu.blog.post.social</field>
<field name="arch" type="xml">
<list string="Social Media Copy">
<field name="blog_post_id"/>
<field name="twitter_enabled" widget="boolean_toggle" optional="show"/>
<field name="bluesky_enabled" widget="boolean_toggle" optional="show"/>
<field name="mastodon_enabled" widget="boolean_toggle" optional="show"/>
<field name="linkedin_enabled" widget="boolean_toggle" optional="show"/>
</list>
</field>
</record>
<record id="view_blog_post_social_form" model="ir.ui.view">
<field name="name">itsulu.blog.post.social.form</field>
<field name="model">itsulu.blog.post.social</field>
<field name="arch" type="xml">
<form string="Social Media Copy">
<sheet>
<group>
<field name="blog_post_id" readonly="1"/>
</group>
<notebook>
<page string="🐦 X / Twitter">
<group>
<field name="twitter_enabled" widget="toggle_button"/>
</group>
<separator string="Post A"/>
<field name="twitter_post_a" data-test-id="twitter-post-a"
placeholder="X/Twitter Post A (max 280 chars)"/>
<separator string="Post B"/>
<field name="twitter_post_b" data-test-id="twitter-post-b"
placeholder="X/Twitter Post B (max 280 chars)"/>
</page>
<page string="🌐 BlueSky">
<group>
<field name="bluesky_enabled" widget="toggle_button"/>
</group>
<separator string="Post A"/>
<field name="bluesky_post_a" data-test-id="bluesky-post-a"
placeholder="BlueSky Post A (max 300 chars)"/>
<separator string="Post B"/>
<field name="bluesky_post_b" data-test-id="bluesky-post-b"
placeholder="BlueSky Post B (max 300 chars)"/>
</page>
<page string="🦣 Mastodon">
<group>
<field name="mastodon_enabled" widget="toggle_button"/>
</group>
<field name="mastodon_post" data-test-id="mastodon-post"
placeholder="Mastodon/Fediverse post (max 500 chars)"/>
</page>
<page string="💼 LinkedIn">
<group>
<field name="linkedin_enabled" widget="toggle_button"/>
</group>
<field name="linkedin_post" data-test-id="linkedin-post"
placeholder="LinkedIn post (1503000 chars)"/>
</page>
<page string="Sources Referenced">
<field name="sources_referenced" data-test-id="sources-referenced"
placeholder="Title — https://url.com"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="action_blog_post_social_list" model="ir.actions.act_window">
<field name="name">Social Media Copy</field>
<field name="res_model">itsulu.blog.post.social</field>
<field name="view_mode">list,form</field>
</record>
</odoo>