[VIEW] ~date_invoice is required for purchase invoices too
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 14:48:11 +0000 (15:48 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 14:48:11 +0000 (15:48 +0100)
view/account.xml

index 48479c7..7829351 100644 (file)
         </xpath>
         </field>
     </record>
+    <record id="view_invoice_supplier_form" model="ir.ui.view">
+        <field name="name">account.invoice.form</field>
+        <field name="model">account.invoice</field>
+        <field name="inherit_id" ref="account.invoice_supplier_form"/>
+        <field name="arch" type="xml">
+            <xpath expr="//field[@name='date_invoice']" position="attributes">
+                <attribute name="required">1</attribute>
+            </xpath>
+        </field>
+    </record>
     </data>
 </openerp>