[IMP] make required field customer
authorForam Katharotiya (OpenERP) <fka@tinyerp.com>
Mon, 4 Mar 2013 13:23:45 +0000 (18:53 +0530)
committerForam Katharotiya (OpenERP) <fka@tinyerp.com>
Mon, 4 Mar 2013 13:23:45 +0000 (18:53 +0530)
bzr revid: fka@tinyerp.com-20130304132345-go4efgxiex0slpkl

addons/account_analytic_analysis/account_analytic_analysis_view.xml

index 15b2337..b8221aa 100644 (file)
@@ -26,6 +26,9 @@
                         </div>
                     </div>
                 </xpath>
+                <field name="partner_id" position="attributes">
+                    <attribute name="attrs">{'required': [('invoice_on_timesheets', '=', True)]}</attribute>
+                </field>
                 <xpath expr='//group[@name="invoice_on_timesheets"]' position="replace">
                 </xpath>
                 <xpath expr='//separator[@name="description"]' position='before'>