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="inherit_id" ref="base.view_partner_form"/>
9 <field name="arch" type="xml">
10 <notebook position="inside">
11 <page string="Warnings">
12 <group colspan="2" col="2">
13 <separator string="Warning on the Sales Order" colspan="4"/>
14 <field name="sale_warn" nolabel="1" />
15 <field name="sale_warn_msg" colspan="3" nolabel="1"
16 attrs="{'required':[('sale_warn','!=','no-message')],'readonly':[('sale_warn','=','no-message')]}"/>
18 <group colspan="2" col="2">
19 <separator string="Warning on the Purchase Order" colspan="4"/>
20 <field name="purchase_warn" nolabel="1" />
21 <field name="purchase_warn_msg" colspan="3" nolabel="1"
22 attrs="{'required':[('purchase_warn','!=','no-message')],'readonly':[('purchase_warn','=','no-message')]}"/>
24 <group colspan="2" col="2">
25 <separator string="Warning on the Picking" colspan="4"/>
26 <field name="picking_warn" nolabel="1" />
27 <field name="picking_warn_msg" colspan="3" nolabel="1"
28 attrs="{'required':[('picking_warn','!=','no-message')],'readonly':[('picking_warn','=','no-message')]}"/>
30 <group colspan="2" col="2">
31 <separator string="Warning on the Invoice" colspan="4"/>
32 <field name="invoice_warn" nolabel="1" />
33 <field name="invoice_warn_msg" colspan="3" nolabel="1"
34 attrs="{'required':[('invoice_warn','!=','no-message')],'readonly':[('invoice_warn','=','no-message')]}"/>
41 <record id="product_warning_form_view" model="ir.ui.view">
42 <field name="name">product.warning.form.inherit</field>
43 <field name="model">product.product</field>
44 <field name="inherit_id" ref="product.product_normal_form_view"/>
45 <field name="arch" type="xml">
46 <notebook position="inside">
47 <page string="Warnings">
48 <group string="Warning when Selling this Product">
49 <field name="sale_line_warn"/>
50 <field name="sale_line_warn_msg"
51 attrs="{'required':[('sale_line_warn','!=','no-message')],'readonly':[('sale_line_warn','=','no-message')]}"/>
53 <group string="Warning when Purchasing this Product">
54 <field name="purchase_line_warn"/>
55 <field name="purchase_line_warn_msg"
56 attrs="{'required':[('purchase_line_warn','!=','no-message')],'readonly':[('purchase_line_warn','=','no-message')]}"/>