-
Notifications
You must be signed in to change notification settings - Fork 7
/
static_file.xml
55 lines (52 loc) · 2.25 KB
/
static_file.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<tryton>
<data>
<record id="nereid_static_folder_form" model="ir.ui.view">
<field name="model">nereid.static.folder</field>
<field name="type">form</field>
<field name="inherit" ref="nereid.nereid_static_folder_form"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/form/field[@name='description']" position="after">
<label name="s3_use_bucket"/>
<field name="s3_use_bucket"/>
</xpath>
<xpath expr="/form/notebook" position="inside">
<page id="s3_settings" string="S3 Settings"
states="{'invisible': Not(Bool(Eval('s3_use_bucket')))}">
<label name="s3_access_key"/>
<field name="s3_access_key"/>
<label name="s3_secret_key"/>
<field name="s3_secret_key"/>
<label name="s3_bucket_name"/>
<field name="s3_bucket_name"/>
<group id="cloudfront_information" string="Cloudfront Information" colspan="4" col="4">
<label name="s3_cloudfront_cname"/>
<field name="s3_cloudfront_cname"/>
</group>
</page>
</xpath>
</data>
]]>
</field>
</record>
<record id="nereid_static_folder_tree" model="ir.ui.view">
<field name="model">nereid.static.folder</field>
<field name="type">tree</field>
<field name="inherit" ref="nereid.nereid_static_folder_tree"/>
<field name="arch" type="xml">
<![CDATA[
<data>
<xpath expr="/tree/field[@name='name']"
position="after">
<field name="s3_use_bucket"/>
<field name="s3_bucket_name"/>
<field name="s3_cloudfront_cname"/>
</xpath>
</data>
]]>
</field>
</record>
</data>
</tryton>