1
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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="发布人"/>
|
||||
|
||||
Reference in New Issue
Block a user