acc_company_view.xml
2.4 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
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<!-- Form View -->
<record model="ir.ui.view" id="acc_company_form">
<field name="name">acc company</field>
<field name="model">acc.company</field>
<field name="arch" type="xml">
<form string="acc company" version="12.0">
<sheet>
<group>
<group>
<field name="name"/>
<field name="bank"/>
<field name="bank_number"/>
<field name="vat"/>
<field name="logo" widget="image" class="oe_avatar"/>
<field name="en_logo" widget="image" class="oe_avatar"/>
<field name="qr_code" widget="image" class="oe_avatar"/>
<field name="active"/>
</group>
</group>
</sheet>
<div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers"/>
<field name="message_ids" widget="mail_thread"/>
</div>
</form>
</field>
</record>
<record model="ir.ui.view" id="acc_company_tree">
<field name="name">acc company</field>
<field name="model">acc.company</field>
<field name="arch" type="xml">
<!-- <tree colors="grey:state == 'done'" string="Demand Purchase"> -->
<tree string="acc company">
<field name="name"/>
<field name="active"/>
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="action_acc_company">
<field name="name">公司配置</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">acc.company</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<!-- <field name="search_view_id" ref="demand_purchase_search"/> -->
<field name="domain">[]</field>
<field name="context">{}</field>
</record>
</data>
</openerp>