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

Show/hide invoice & transaction dates

based on menu items.
parent e4724631a387
No related branches found
No related tags found
1 merge request!1Topic/13.0/dates tg 347
Pipeline #11791 passed
......@@ -2,6 +2,7 @@
----------
* Users may set accounting dates in advance.
* Show/hide invoice & transaction dates based on menu items.
13.0.1.0.0
----------
......
......@@ -16,7 +16,15 @@
</xpath>
<xpath expr="//field[@name='date']" position="after">
<field name="accounting_date" />
<field name="transaction_date" />
<field name="transaction_date"
invisible="context.get('default_type', 'entry') != 'entry'" />
</xpath>
<!-- invoicing_date is only for invoice menus (but not accounting entries). -->
<xpath expr="//label[@for='invoice_date']/.." position="attributes">
<attribute name="invisible">context.get('default_type', 'entry') == 'entry'</attribute>
</xpath>
<xpath expr="//field[@name='invoice_date']" position="attributes">
<attribute name="invisible">context.get('default_type', 'entry') == 'entry'</attribute>
</xpath>
</field>
......
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