This commit is contained in:
李鹏宇
2025-03-01 10:26:13 +08:00
parent 7f95bfe858
commit 745bb04aa6
2 changed files with 4 additions and 3 deletions
@@ -3,7 +3,7 @@
<t t-name="yuthon_notice.ListView.Buttons" t-inherit="web.ListView.Buttons">
<xpath expr="//div[hasclass('o_list_buttons')]" position="after">
<button type="button" class="btn btn-primary" style="margin-left: 10px;" t-on-click="openNoticeForm">
创建公告
创建
</button>
</xpath>
</t>
+3 -2
View File
@@ -104,9 +104,10 @@
<field name="name">yuthon.notice.tree</field>
<field name="model">yuthon.notice</field>
<field name="arch" type="xml">
<tree string="公告管理" edit="false" delete="false"
<tree string="公告管理" edit="false" delete="false" create="false"
decoration-danger="is_notice_roger == 'no'"
decoration-success="is_notice_roger == 'yes'">
decoration-success="is_notice_roger == 'yes'"
js_class="custom_notice_tree_button">
<field name="name"/>
<field name="notice_type_id" string="类型"/>
<field name="users_id" string="发布人"/>