[FIX] google_spreadsheet: avoid pollution of default view
The view had no priority set and could be used as the default view on ir.attachment (same priority as base). The view has less information than the generic base.view_attachment_tree that are not relevant ouside of the context of google_spreadsheet Same reasons for the form view closes odoo/odoo#52522 X-original-commit: 36bf73a8a5415e98431ccd411be7687415b2429b Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<record id="view_ir_attachment_google_spreadsheet_tree" model="ir.ui.view">
|
||||
<field name="name">ir.attachment.google.spreadsheet.tree</field>
|
||||
<field name="model">ir.attachment</field>
|
||||
<field name="priority">100</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="Google Spreadsheets">
|
||||
<field name="name" string="Name"/>
|
||||
@@ -17,6 +18,7 @@
|
||||
<record id="view_ir_attachment_google_spreadsheet_form" model="ir.ui.view">
|
||||
<field name="name">ir.attachment.google.spreadsheet.form</field>
|
||||
<field name="model">ir.attachment</field>
|
||||
<field name="priority">100</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Google Spreadsheets">
|
||||
<sheet>
|
||||
|
||||
Reference in New Issue
Block a user