blob: 5c59e673e53a27e5226ce7fd3d3571ee0322a6b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- add google drive config field in user form -->
<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"/>
<field name="url" widget="url" />
</tree>
</field>
</record>
<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>
<group>
<group>
<field name="name" string="Name"/>
<field name="url" widget="url"/>
</group>
<group colspan="2">
<label for="description" colspan="2"/>
<field name="description" nolabel="1" colspan="2"/>
</group>
</group>
</sheet>
</form>
</field>
</record>
<record id="action_ir_attachment_google_spreadsheet_tree" model="ir.actions.act_window">
<field name="name">Google Spreadsheets</field>
<field name="res_model">ir.attachment</field>
<field name="view_mode">tree,form</field>
<field name="context">{}</field>
<field name="domain">[('url', '=ilike', '%google%/spreadsheet%')]</field>
<field name="help">Google Spreadsheets</field>
</record>
<record id="action_ir_attachment_google_spreadsheet_tree_view" model="ir.actions.act_window.view">
<field eval="1" name="sequence"/>
<field name="view_mode">tree</field>
<field name="view_id" ref="view_ir_attachment_google_spreadsheet_tree"/>
<field name="act_window_id" ref="action_ir_attachment_google_spreadsheet_tree"/>
</record>
<record id="action_ir_attachment_google_spreadsheet_form_view" model="ir.actions.act_window.view">
<field eval="2" name="sequence"/>
<field name="view_mode">form</field>
<field name="view_id" ref="view_ir_attachment_google_spreadsheet_form"/>
<field name="act_window_id" ref="action_ir_attachment_google_spreadsheet_tree"/>
</record>
<menuitem
id="menu_reporting_dashboard_google_spreadsheets"
parent="base.menu_board_root"
action="action_ir_attachment_google_spreadsheet_tree"/>
</odoo>
|