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"> <xpath expr="//search">
<searchpanel> <searchpanel>
<field name="type"/> <field name="type"/>
<field name="create_uid"/>
</searchpanel> </searchpanel>
</xpath> </xpath>
</field> </field>

View File

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