[VIEW] +date is required for vendor payments
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 16:03:29 +0000 (17:03 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 16:03:29 +0000 (17:03 +0100)
__openerp__.py
view/account_voucher.xml [new file with mode: 0644]

index 05770c7..b818716 100644 (file)
@@ -51,6 +51,7 @@ It installs the profile for bike co-ops to manage some features like:
         'data/products_products.xml',
         'data/products_products_old.xml',
         'view/account.xml',
+        'view/account_voucher.xml',
         'view/point_of_sale.xml',
         'view/bikecoop.xml',
         'security/ir.model.access.csv',
diff --git a/view/account_voucher.xml b/view/account_voucher.xml
new file mode 100644 (file)
index 0000000..7c7df9a
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+    <data>
+        <record id="view_vendor_payment_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_payment_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>