opt attachment view

This commit is contained in:
Ivan Office
2023-09-26 02:53:14 +08:00
parent 357cf9e7ed
commit 92e24abc43
3 changed files with 18 additions and 1 deletions

View File

@@ -8,7 +8,6 @@
<xpath expr="//search">
<searchpanel>
<field name="type"/>
<field name="create_uid"/>
</searchpanel>
</xpath>
</field>

View File

@@ -51,6 +51,7 @@
'images': ['static/description/banner.png'],
'depends': [
'website_blog',
'app_base_superbar',
],
'summary': '''
Odoo App of odooai.cn
@@ -71,6 +72,7 @@
''',
'data': [
'views/blog_post_views.xml',
'views/ir_attachment_views.xml',
# 'report/.xml',
],
'demo': [],

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="app_view_attachment_search" model="ir.ui.view">
<field name="name">app.ir.attachment search</field>
<field name="model">ir.attachment</field>
<field name="inherit_id" ref="base.view_attachment_search"/>
<field name="arch" type="xml">
<xpath expr="//searchpanel//field[1]" position="before">
<field name="website_id"/>
</xpath>
</field>
</record>
</data>
</odoo>