Skip to content

Commit

Permalink
[IMP] rma_sale_mrp: bs4 -> bs5
Browse files Browse the repository at this point in the history
  • Loading branch information
chienandalu committed Sep 6, 2023
1 parent e4b41a4 commit fe0338b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions rma_sale_mrp/views/sale_order_portal_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,20 @@
</xpath>
<!-- TODO: We could give a clue about what's to be returned, with readonly detailed lines -->
<xpath
expr="//tbody[hasclass('request-rma-tbody')]//t[@t-if=&quot;data[&apos;quantity&apos;] &gt; 0 and data[&apos;picking&apos;]&quot;]/tr"
expr="//tbody[hasclass('request-rma-tbody')]//t[@t-if=&quot;data['quantity'] &gt; 0 and data['picking']&quot;]/tr"
position="attributes"
>
<attribute
name="t-attf-class"
>#{data.get('phantom_bom_product') and 'd-none'}</attribute>
</xpath>
<xpath
expr="//tbody[hasclass('request-rma-tbody')]//t[@t-if=&quot;data[&apos;quantity&apos;] &gt; 0 and data[&apos;picking&apos;]&quot;]"
expr="//tbody[hasclass('request-rma-tbody')]//t[@t-if=&quot;data['quantity'] &gt; 0 and data['picking']&quot;]"
position="attributes"
>
<attribute
name="t-if"
>data['quantity'] > 0 and (data['picking'] or data.get('phantom_kit_line'))</attribute>
>data['quantity'] &gt; 0 and (data['picking'] or data.get('phantom_kit_line'))</attribute>
</xpath>
<xpath
expr="//select[@t-attf-name='#{data_index}-operation_id']/option"
Expand Down Expand Up @@ -100,33 +100,33 @@
t-att-title="kit_rma.name"
>
<div>
<i class="fa fa-reply mr-1" role="img" />
<span t-esc="kit_rma.name" class="mr-lg-3" />
<i class="fa-reply me-1 fa" role="img" />
<span t-esc="kit_rma.name" class="me-lg-3" />
<div class="d-lg-inline-block"><span
t-field="kit_rma.sudo().product_id.display_name"
/> (<span t-field="kit_rma.product_uom_qty" />)</div>
</div>
<t
t-if="kit_rma.state in ['confirmed', 'received', 'returned', 'replaced', 'locked', 'refunded']"
>
<span class="badge badge-success label-text-align"><i
<span class="badge label-text-align bg-success"><i
class="fa fa-fw fa-reply"
/> <span t-field="kit_rma.state" /></span>
</t>
<t
t-if="kit_rma.state in ['waiting_return', 'waiting_replacement']"
>
<span class="badge badge-warning label-text-align"><i
<span class="label-text-align badge bg-warning"><i
class="fa fa-fw fa-clock-o"
/> Waiting</span>
</t>
<t t-if="kit_rma.state == 'cancelled'">
<span class="badge badge-danger label-text-align"><i
<span class="badge label-text-align bg-danger"><i
class="fa fa-fw fa-times"
/> Cancelled</span>
</t>
<t t-if="kit_rma.state == 'draft'">
<span class="badge badge-info label-text-align"><i
<span class="badge bg-info label-text-align"><i
class="fa fa-fw fa-clock-o"
/> Draft</span>
</t>
Expand Down

0 comments on commit fe0338b

Please sign in to comment.