<field name="arch" type="xml">
<notebook position="inside">
<page string="Warnings">
- <separator string="Warning on the sale order" colspan="4"/>
- <field name="sale_warn"/>
- <field name="sale_warn_msg" colspan="4" nolabel="1"/>
- <separator string="Warning on the purchase order" colspan="4"/>
- <field name="purchase_warn"/>
- <field name="purchase_warn_msg" colspan="4" nolabel="1"/>
- <separator string="Warning on the picking" colspan="4"/>
- <field name="picking_warn"/>
- <field name="picking_warn_msg" colspan="4" nolabel="1"/>
- <separator string="Warning on the invoice" colspan="4"/>
- <field name="invoice_warn"/>
- <field name="invoice_warn_msg" colspan="4" nolabel="1"/>
+ <group colspan="2" col="2">
+ <separator string="Warning on the Sale Order" colspan="4"/>
+ <field name="sale_warn" nolabel="1" />
+ <field name="sale_warn_msg" colspan="3" nolabel="1"
+ attrs="{'required':[('sale_warn','!=','no-message')],'readonly':[('sale_warn','=','no-message')]}"/>
+ </group>
+ <group colspan="2" col="2">
+ <separator string="Warning on the Purchase Order" colspan="4"/>
+ <field name="purchase_warn" nolabel="1" />
+ <field name="purchase_warn_msg" colspan="3" nolabel="1"
+ attrs="{'required':[('purchase_warn','!=','no-message')],'readonly':[('purchase_warn','=','no-message')]}"/>
+ </group>
+ <group colspan="2" col="2">
+ <separator string="Warning on the Picking" colspan="4"/>
+ <field name="picking_warn" nolabel="1" />
+ <field name="picking_warn_msg" colspan="3" nolabel="1"
+ attrs="{'required':[('picking_warn','!=','no-message')],'readonly':[('picking_warn','=','no-message')]}"/>
+ </group>
+ <group colspan="2" col="2">
+ <separator string="Warning on the Invoice" colspan="4"/>
+ <field name="invoice_warn" nolabel="1" />
+ <field name="invoice_warn_msg" colspan="3" nolabel="1"
+ attrs="{'required':[('invoice_warn','!=','no-message')],'readonly':[('invoice_warn','=','no-message')]}"/>
+ </group>
</page>
</notebook>
</field>
<field name="arch" type="xml">
<notebook position="inside">
<page string="Warnings">
- <separator string="Warning when selling this product" colspan="4"/>
- <field name="sale_line_warn"/>
- <field name="sale_line_warn_msg" colspan="4" nolabel="1"/>
- <separator string="Warning when purchasing this product" colspan="4"/>
- <field name="purchase_line_warn"/>
- <field name="purchase_line_warn_msg" colspan="4" nolabel="1"/>
+ <group colspan="2" col="2">
+ <separator string="Warning when Selling this Product" colspan="4"/>
+ <field name="sale_line_warn" nolabel="1" />
+ <field name="sale_line_warn_msg" colspan="3" nolabel="1"
+ attrs="{'required':[('sale_line_warn','!=','no-message')],'readonly':[('sale_line_warn','=','no-message')]}"/>
+ </group>
+ <group colspan="2" col="2">
+ <separator string="Warning when Purchasing this Product" colspan="4" />
+ <field name="purchase_line_warn" nolabel="1" />
+ <field name="purchase_line_warn_msg" colspan="3" nolabel="1"
+ attrs="{'required':[('purchase_line_warn','!=','no-message')],'readonly':[('purchase_line_warn','=','no-message')]}"/>
+ </group>
</page>
</notebook>
</field>