[VIEW] ~date is required in vendor receipt dialog
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 16:27:13 +0000 (17:27 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 16:27:13 +0000 (17:27 +0100)
view/account_voucher.xml

index 7c7df9a..f89319b 100644 (file)
                 </xpath>
             </field>
         </record>
+        <record id="view_vendor_receipt_dialog_form" model="ir.ui.view">
+            <field name="name">account.voucher.form</field>
+            <field name="model">account.voucher</field>
+            <field name="inherit_id" ref="account_voucher.view_vendor_receipt_dialog_form"/>
+            <field name="priority" eval="8"/>
+            <field name="arch" type="xml">
+                <xpath expr="//field[@name='date']" position="attributes">
+                    <attribute name="required">1</attribute>
+                </xpath>
+            </field>
+        </record>
     </data>
 </openerp>