Skip to content

Commit

Permalink
Refactor XML formatting in vendor stock component
Browse files Browse the repository at this point in the history
Standardize formatting in qty.xml for better readability and maintainability. Adjusted indentation and spacing without altering functionality.
  • Loading branch information
dhongu committed Jan 15, 2025
1 parent acbda79 commit ddb7e19
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions deltatech_vendor_stock/static/src/xml/qty.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
</t>
</t>

<a t-att-tabindex="props.record.data.display_qty_widget ? '0' : '-1'"
t-on-click="showPopup"
t-attf-class="fa fa-area-chart cursor-pointer {{ text_color }}"
<a
t-att-tabindex="props.record.data.display_qty_widget ? '0' : '-1'"
t-on-click="showPopup"
t-attf-class="fa fa-area-chart cursor-pointer {{ text_color }}"
/>
</xpath>
</t>
Expand All @@ -30,21 +31,17 @@
<strong>Vendor Stock</strong>
</td>
<td>
<b t-out='props.record.data.vendor_qty_available'/>
<t
t-out='props.record.data.product_uom[1]'
/>
<b t-out='props.record.data.vendor_qty_available' />
<t t-out='props.record.data.product_uom[1]' />
</td>
</tr>
<tr t-if="props.record.data.other_qty_available">
<td>
<strong>Other Stock</strong>
</td>
<td>
<b t-out='props.record.data.other_qty_available'/>
<t
t-out='props.record.data.product_uom[1]'
/>
<b t-out='props.record.data.other_qty_available' />
<t t-out='props.record.data.product_uom[1]' />
</td>
</tr>
</xpath>
Expand Down

0 comments on commit ddb7e19

Please sign in to comment.