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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
<openerp>
<data>
<record model="ir.ui.view" id="sign_youtube_tree_view">
<field name="name">Sign YouTube</field>
<field name="model">sign.youtube.conf</field>
<field name="arch" type="xml">
<tree string="Sign YouTube" version="7.0">
<field name="name"/>
<field name="passwd" password="1"/>
<field name="client_id"/>
<field name="developer_key"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="sign_youtube_form_view">
<field name="name">Sign YouTube</field>
<field name="model">sign.youtube.conf</field>
<field name="arch" type="xml">
<form string="Sign YouTube" version="7.0">
<footer>
<button type="object" name="test_connection" string="Test Connection"/>
<button type="object" name="load_videos" string="Load Videos"/>
</footer>
<group>
<field name="name" required="1" widget="email" placeholder="i.e.: yourgmailaccount@gmail.com"/>
<field name="passwd" required="1" password="1"/>
<field name="client_id" required="1"
placeholder="i.e.: 123456789.apps.googleusercontent.com"/>
<field name="developer_key" required="1"
placeholder="i.e: bigNumberWithoutAnySenceGivenInYoutube"/>
<field name="max_v" required="1"/>
</group>
<field name="line" >
<tree string="Videos Uploaded" colors="blue:update==1" editable="button" >
<button type="object"
name="load_url"
help="Play the video"
icon="STOCK_MEDIA_PLAY"
string="Launch Video"/>
<button type="object"
name="show_on_inbox"
help="Show on Inbox"
icon="terp-idea"
string="Publish Video"/>
<field name="update" invisible="1"/>
<field name="name" readonly="1"/>
<field name="category" readonly="1"/>
<field name="tags" readonly="1"/>
<field name="description" readonly="1"/>
<field name="published" readonly="1"/>
<field name="views" readonly="1"/>
<field name="favorites" readonly="1"/>
<field name="duration_seconds" readonly="1" width="float_time"/>
<field name="url_swf" widget="url" readonly="1"/>
</tree>
</field>
</form>
</field>
</record>
<record model="ir.ui.view" id="sign_youtube_form2_view">
<field name="name">Sign YouTube</field>
<field name="model">sign.youtube.conf.line</field>
<field name="arch" type="xml">
<form string="Sign YouTube" version="7.0">
<group col="1">
<p>
Write off the message to show in inbox with the video.
You can add attachments in this message
</p>
<field name="message" nolabel="1" widget="html"/>
<field name="attachment_ids" nolabel="1" widget="many2many_binary"/>
</group>
<button type="object"
name="send_to_inbox"
help="Used to send this video in company inbox"
string="Send to Inbox"/>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="sign_youtube_action">
<field name="name">Sign YouTube</field>
<field name="res_model">sign.youtube.conf</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
id="sign_youtube_menu"
name="Sign YouTube Conf"
parent="base.menu_custom"
action="sign_youtube_action"/>
</data>
</openerp>
|