import_contact_data_wizard.xml
2.1 KB
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
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!--导数据-->
<record id="import_contact_form_view" model="ir.ui.view">
<field name="name">导入联系人数据</field>
<field name="model">import.contact.wizard</field>
<field name="arch" type="xml">
<form string="import">
<sheet>
<group>
<templates>
<t t-name="kanban-box">
<div class="o_web_settings_dashboard_pills">
<a href="/acct_base/static/files/联系人导入模板.xlsx" target="_blank" class="pull-left"><i class="fa text-muted"/>下载模板</a>
</div>
</t>
</templates>
</group>
<group>
<!-- <field name='file_name'/> -->
<field name='data' string="选择文件"/>
<!--<field name='selected'/>-->
<!--<field name='exported'/>-->
</group>
<footer name="codes" >
<button class="oe_stat_button" name="import_data_all" string="导入" type="object"/>
<button class="oe_stat_button" name="send" string="fasong" type="object"/>
</footer>
</sheet>
</form>
</field>
</record>
<record id="import_contact_data_wizard" model="ir.actions.act_window">
<field name="name">联系人导入</field>
<field name="res_model">import.contact.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<!-- <field name="context">{"type":"vmc_watergodcard"}</field> -->
<field name="view_id" ref="import_contact_form_view"/>
<field name="target">new</field>
</record>
</data>
</odoo>