Skip to content

Commit

Permalink
[16.0][MIG]stock_move_origin_link
Browse files Browse the repository at this point in the history
  • Loading branch information
rivo2302 committed Nov 3, 2024
1 parent f1f3021 commit ebd5f0b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
3 changes: 2 additions & 1 deletion stock_move_origin_link/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ form view of the production order.

Stock Pickings
--------------
The feature is available for all stock picking list views.
The feature is available for all stock picking list and form views .
Here is an example with the list view of delivery orders.

.. image:: static/description/delivery_order_list.png


When clicking on `SO020`, the user is redirected to the sale order.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 24 additions & 1 deletion stock_move_origin_link/static/src/char_fiield.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,28 @@
<span t-esc="formattedValue" />
</t>
</xpath>
<xpath expr="//input" position="replace">
<div class="oe_inline" style="display: flex; align-items: center; gap: 8px;">
<input
class="o_input"
t-att-class="{'o_field_translate': props.isTranslatable}"
t-att-id="props.id"
t-att-type="props.isPassword ? 'password' : 'text'"
t-att-autocomplete="props.autocomplete or (props.isPassword ? 'new-password' : 'off')"
t-att-maxlength="props.maxLength > 0 and props.maxLength"
t-att-placeholder="props.placeholder"
t-ref="input"
/>
<t t-if="props.hasOrigin and props.originUrl">
<button type="button" class="btn btn-secondary fa o_external_button fa-arrow-right"
aria-label="Internal link"
data-tooltip="Internal link"
title=""
t-on-click.prevent="onLinkClick">
</button>
</t>
</div>

</xpath>
</t>
</templates>
</templates>

0 comments on commit ebd5f0b

Please sign in to comment.