1 <?xml version="1.0" encoding="utf-8"?>
5 <record id="view_partner_warning_form" model="ir.ui.view">
6 <field name="name">res.partner.warning.form.inherit</field>
7 <field name="model">res.partner</field>
8 <field name="type">form</field>
9 <field name="inherit_id" ref="base.view_partner_form"/>
10 <field name="arch" type="xml">
11 <notebook position="inside">
12 <page string="Warnings">
13 <group colspan="2" col="2">
14 <separator string="Warning on the Sale Order" colspan="4"/>
15 <field name="sale_warn" nolabel="1" />
16 <field name="sale_warn_msg" colspan="3" nolabel="1"
17 attrs="{'required':[('sale_warn','!=','no-message')],'readonly':[('sale_warn','=','no-message')]}"/>
19 <group colspan="2" col="2">
20 <separator string="Warning on the Purchase Order" colspan="4"/>
21 <field name="purchase_warn" nolabel="1" />
22 <field name="purchase_warn_msg" colspan="3" nolabel="1"
23 attrs="{'required':[('purchase_warn','!=','no-message')],'readonly':[('purchase_warn','=','no-message')]}"/>
25 <group colspan="2" col="2">
26 <separator string="Warning on the Picking" colspan="4"/>
27 <field name="picking_warn" nolabel="1" />
28 <field name="picking_warn_msg" colspan="3" nolabel="1"
29 attrs="{'required':[('picking_warn','!=','no-message')],'readonly':[('picking_warn','=','no-message')]}"/>
31 <group colspan="2" col="2">
32 <separator string="Warning on the Invoice" colspan="4"/>
33 <field name="invoice_warn" nolabel="1" />
34 <field name="invoice_warn_msg" colspan="3" nolabel="1"
35 attrs="{'required':[('invoice_warn','!=','no-message')],'readonly':[('invoice_warn','=','no-message')]}"/>
43 <record id="product_warning_form_view" model="ir.ui.view">
44 <field name="name">product.warning.form.inherit</field>
45 <field name="model">product.product</field>
46 <field name="type">form</field>
47 <field name="inherit_id" ref="product.product_normal_form_view"/>
48 <field name="arch" type="xml">
49 <notebook position="inside">
50 <page string="Warnings">
51 <group colspan="2" col="2">
52 <separator string="Warning when Selling this Product" colspan="4"/>
53 <field name="sale_line_warn" nolabel="1" />
54 <field name="sale_line_warn_msg" colspan="3" nolabel="1"
55 attrs="{'required':[('sale_line_warn','!=','no-message')],'readonly':[('sale_line_warn','=','no-message')]}"/>
57 <group colspan="2" col="2">
58 <separator string="Warning when Purchasing this Product" colspan="4" />
59 <field name="purchase_line_warn" nolabel="1" />
60 <field name="purchase_line_warn_msg" colspan="3" nolabel="1"
61 attrs="{'required':[('purchase_line_warn','!=','no-message')],'readonly':[('purchase_line_warn','=','no-message')]}"/>