update desc

This commit is contained in:
Ivan Office
2023-09-09 05:20:59 +08:00
parent c147f9d0a9
commit f295457fc8
2 changed files with 5 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ class BlogBlog(models.Model):
_inherit = 'blog.blog'
_order = 'sequence, name'
seo_name = fields.Char(tracking=True)
# 排序
sequence = fields.Integer(string='Sequence', default=20, index=True, help="Determine the display order")

View File

@@ -5,6 +5,9 @@
<field name="model">website.page</field>
<field name="inherit_id" ref="website.website_pages_tree_view"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="before">
<field name="id" groups="base.group_no_one" optional="show"/>
</xpath>
<xpath expr="//field[@name='website_url']" position="attributes">
<attribute name="optional">show</attribute>
</xpath>