-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathres_partner_view.xml
39 lines (37 loc) · 1.96 KB
/
res_partner_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
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">view_partner_form</field>
<field name="model">res.partner</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="//div[@name='buttons']" position="inside">
<button name="%(action_shipping_hold_wiz)d" string="Place Shipping Hold"
type="action" attrs="{'invisible':[('shipping_hold', '=', True)]}" />
</xpath>
<xpath expr="//div[@name='buttons']" position="after">
<field name="shipping_hold" invisible="1" />
<div class="shipping_hold_message" attrs="{'invisible':[('shipping_hold', '!=', True)]}">
<h3>This account has a shipping hold on it.</h3>
<p>
<label for="shipping_hold_reason" string="Shipping Hold Reason:" />
<field name="shipping_hold_reason" nolabel="1" />
</p>
<p>
Hold placed by <field name="shipping_hold_user_id"/> on <field name="shipping_hold_date"/>.
</p>
<button name="%(action_shipping_hold_remove_wiz)d" string="Remove Shipping Hold on Account"
type="action" attrs="{'invisible':[('shipping_hold', '!=', True)]}" />
</div>
</xpath>
<xpath expr="/form/sheet" position="after">
<footer invisible="'show_footer' not in context or not context['show_footer']">
<button name="write" type="object" string="Save"/> or <button name="cancel" string="Cancel" special="cancel" class="oe_link"/>
</footer>
</xpath>
</field>
</record>
</data>
</openerp>