forked from factorlibre/delivery-carrier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_view.xml
72 lines (63 loc) · 2.27 KB
/
config_view.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_gls_config_settings" model="ir.ui.view">
<field name="model">gls.config.settings</field>
<field name="arch" type="xml">
<form string="Configure Colissimo / So Colissimo" version="7.0"
class="oe_form_configuration">
<header>
<button string="Apply" type="object" name="execute" class="oe_highlight"/>
or
<button string="Cancel" type="object" name="cancel" class="oe_link"/>
<a href="https://gls-group.eu" target="_blank">
<img src="delivery_carrier_label_gls/static/src/img/icon.png"/>
</a>
</header>
<group>
<div>
<div>
<label for="company_id" string="Select Company"/>
<field name="company_id"
widget="selection"
on_change="onchange_company_id(company_id, context)"
class="oe_inline"/>
</div>
</div>
</group>
<separator string="Account"/>
<group name="account" col="4">
<field name="fr_contact_id" class="oe_inline"/>
<span/><span/>
<field name="inter_contact_id" class="oe_inline"/>
<span/><span/>
<field name="gls_customer_code" class="oe_inline"/>
<span/><span/>
<field name="gls_warehouse" class="oe_inline"/>
<span/><span/>
<field name="test"/>
</group>
</form>
</field>
</record>
<record id="action_gls_config" model="ir.actions.act_window">
<field name="type">ir.actions.act_window</field>
<field name="res_model">gls.config.settings</field>
<field name="view_mode">form</field>
<field name="target">inline</field>
</record>
<menuitem id="menu_gls_config" name="GLS"
parent="base_delivery_carrier_label.menu_carriers_config"
action="action_gls_config"/>
<!--After installation of the module, open the adhoc menu -->
<record id="action_gls_first" model="ir.actions.client">
<field name="name">Open Carrier Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('menu_gls_config')}"/>
</record>
<record id="base.open_menu" model="ir.actions.todo">
<field name="action_id" ref="action_gls_first"/>
<field name="state">open</field>
</record>
</data>
</openerp>