Skip to content
Snippets Groups Projects
Commit 51157c1fc507 authored by Houzefa Abbasbhay's avatar Houzefa Abbasbhay :slight_smile:
Browse files

Make the due date read-only when a payment term is selected

parent 6da7555ecbfd
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,14 @@ ...@@ -17,6 +17,14 @@
<field name="a5_id" /> <field name="a5_id" />
</xpath> </xpath>
<!-- Make the due date read-only when a payment term is selected. -->
<xpath expr="//field[@name='date_due']" position="attributes">
<attribute name="attrs"><![CDATA[
{'readonly': [('payment_term', '!=', False)]}
]]></attribute>
</xpath>
</field> </field>
</record> </record>
</data> </data>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment