Skip to content

Commit

Permalink
[IMP] purchase_order_line_sequence: Show only PO related sequence in …
Browse files Browse the repository at this point in the history
…Vendor Bills
  • Loading branch information
SergiCForgeFlow authored and AungKoKoLin1997 committed Sep 23, 2024
1 parent 2a64bce commit cb5c4b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions purchase_order_line_sequence/views/report_invoice.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
>
<!--complicated expr to be compatible with other modules-->
<xpath expr="//table/thead/tr/th[1]" position="before">
<th t-if="any(l.related_po_sequence for l in o.invoice_line_ids)">
<th
t-if="(o.move_type == 'in_invoice' or o.move_type == 'in_refund') and any(l.related_po_sequence for l in o.invoice_line_ids)"
>
Line Number
</th>
</xpath>
<!--complicated expr to be compatible with other modules-->
<xpath expr="//table/tbody//span[1]/.." position="before">
<td t-if="line.related_po_sequence">
<td
t-if="(o.move_type == 'in_invoice' or o.move_type == 'in_refund') and line.related_po_sequence"
>
<span t-field="line.related_po_sequence" />
</td>
</xpath>
Expand Down

0 comments on commit cb5c4b7

Please sign in to comment.