update 开发模板

This commit is contained in:
ivan deng
2023-04-22 23:52:51 +08:00
parent 08981879a5
commit 163f5ed1d5
16 changed files with 364 additions and 55 deletions

View File

@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
from odoo import api, models, fields, _
class BlogBlog(models.Model):
_inherit = 'blog.blog'
_order = 'sequence, name'
# 排序
sequence = fields.Integer(string='Sequence', default=20, index=True, help="Determine the display order")