1 <?xml version="1.0" encoding="utf-8"?>
5 <!-- add google drive config field in user form -->
7 <record model="ir.ui.view" id="view_ir_attachment_google_spreadsheet_tree">
8 <field name="name">ir.attachment.google.spreadsheet.tree</field>
9 <field name="model">ir.attachment</field>
10 <field name="arch" type="xml">
11 <tree string="Google Spreadsheets" version="7.0">
12 <field name="name" string="Name"/>
18 <record model="ir.ui.view" id="view_ir_attachment_google_spreadsheet_form">
19 <field name="name">ir.attachment.google.spreadsheet.form</field>
20 <field name="model">ir.attachment</field>
21 <field name="arch" type="xml">
22 <form string="Google Spreadsheets" version="7.0">
26 <field name="name" string="Name"/>
27 <field name="url" widget="url"/>
30 <label for="description" colspan="2"/>
31 <field name="description" nolabel="1" colspan="2"/>
39 <record id="action_ir_attachment_google_spreadsheet_tree" model="ir.actions.act_window">
40 <field name="name">Google Spreadsheets</field>
41 <field name="res_model">ir.attachment</field>
42 <field name="view_type">form</field>
43 <field name="view_mode">tree,form</field>
44 <field name="context">{}</field>
45 <field name="domain">[('url', 'like', '/spreadsheet/')]</field>
46 <field name="help">Google Spreadsheets</field>
49 <record id="action_ir_attachment_google_spreadsheet_tree_view" model="ir.actions.act_window.view">
50 <field eval="1" name="sequence"/>
51 <field name="view_mode">tree</field>
52 <field name="view_id" ref="view_ir_attachment_google_spreadsheet_tree"/>
53 <field name="act_window_id" ref="action_ir_attachment_google_spreadsheet_tree"/>
56 <record id="action_ir_attachment_google_spreadsheet_form_view" model="ir.actions.act_window.view">
57 <field eval="2" name="sequence"/>
58 <field name="view_mode">form</field>
59 <field name="view_id" ref="view_ir_attachment_google_spreadsheet_form"/>
60 <field name="act_window_id" ref="action_ir_attachment_google_spreadsheet_tree"/>
63 <menuitem id="menu_reporting_dashboard_google_spreadsheets" parent="base.menu_reporting_dashboard" action="action_ir_attachment_google_spreadsheet_tree"/>