partner.xml
3.3 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
59
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="action_partner_config_pdl_kab" model="ir.actions.act_window">
<field name="name">Wajib Pajak</field>
<field name="res_model">res.partner</field>
<field name="view_mode">kanban,tree,form</field>
<!-- <field name="view_id" ref="partner_form_pdl_kab"/>-->
<field name="context">{'search_default_customer': 1,
'res_partner_search_mode': 'customer',
'default_is_company': True,
'default_customer_rank': 1,
'country_id': context.get('company.country_id',False)
}
</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Wajib Pajak
</p>
</field>
</record>
<!-- options='{"no_open": True, "no_create": True}'-->
<!-- options='{"no_open": True, "no_create": True}'-->
<!-- options='{"no_open": True, "no_create": True}'-->
<record id="partner_form_pdl_kab" model="ir.ui.view">
<field name="name">partner.form.pdl.kab.inherit</field>
<field name="model">res.partner</field>
<field name="priority">9</field>
<field name="inherit_id" ref="base.view_partner_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='city']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//field[@name='state_id']" position="before">
<field name="village_id" class="o_address_state" placeholder="Desa/Kel"
options="{'no_open': True, 'no_quick_create': True}"
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"
context="{'sub_district_id': sub_district_id, 'default_sub_district_id': sub_district_id,
'district_id': district_id}"
domain="[('sub_district_id', '=?', sub_district_id)]"/>
<field name="sub_district_id" class="o_address_state" placeholder="Kecamatan"
options="{'no_open': True, 'no_quick_create': True}"
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"
context="{'district_id': district_id, 'default_district_id': district_id,
'state_id':state_id}"
domain="[('district_id', '=?', district_id)]"/>
<field name="district_id" class="o_address_state" placeholder="Kab/Kota"
options="{'no_open': True, 'no_quick_create': True}"
attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"
context="{'state_id': state_id, 'default_state_id': state_id}"
domain="[('state_id', '=?', state_id)]"/>
</xpath>
</field>
</record>
</data>
</odoo>