prepare #I7TD3E 【app_ai_seo】网站快速seo功能 置顶

This commit is contained in:
Ivan Office
2023-08-15 15:38:51 +08:00
parent 437c32f634
commit 76f5611754
2 changed files with 14 additions and 2 deletions

View File

@@ -32,7 +32,7 @@
<field name="model">blog.post</field> <field name="model">blog.post</field>
<field name="inherit_id" ref="website_blog.view_blog_post_form"/> <field name="inherit_id" ref="website_blog.view_blog_post_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page[@name='seo']" position="before"> <xpath expr="//page[@name='seo']" position="after">
<page name="post_content" string="Content"> <page name="post_content" string="Content">
<field name="content" widget="html" nolabel="1" class="oe-bordered-editor" <field name="content" widget="html" nolabel="1" class="oe-bordered-editor"
options="{'style-inline': true, 'codeview': true, 'dynamic_placeholder': true}"/> options="{'style-inline': true, 'codeview': true, 'dynamic_placeholder': true}"/>

View File

@@ -25,7 +25,19 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page[@name='sales']" position="after"> <xpath expr="//page[@name='sales']" position="after">
<page name="shop_desc" string="Website Description" attrs="{'invisible': [('sale_ok','=',False)]}"> <page name="shop_desc" string="Website Description" attrs="{'invisible': [('sale_ok','=',False)]}">
<group>
<group>
<!-- todo: 这里加个快速设置 seo url字段-->
<field name="website_meta_title" invisible="1"/>
<field name="website_meta_keywords"/>
</group>
<group>
<field name="website_meta_description"/>
</group>
</group>
<group string="Content">
<field name="website_description" nolabel="1"/> <field name="website_description" nolabel="1"/>
</group>
</page> </page>
</xpath> </xpath>
</field> </field>