Skip to content

Commit

Permalink
[IMP] Visual and functional improvements to the Inventory and Operati…
Browse files Browse the repository at this point in the history
…ons scan views
  • Loading branch information
edescalona committed Jan 24, 2025
1 parent 47c2b97 commit 6e54277
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 90 deletions.
5 changes: 3 additions & 2 deletions stock_barcodes/static/src/scss/stock.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@
}

div.scan_fields {
width: 101% !important;
width: 100% !important;
margin: 0 !important;

div.o-autocomplete.dropdown {
+ a.o_dropdown_button {
Expand All @@ -105,7 +106,7 @@

@include media-breakpoint-down(sm) {
padding: 0 2% 0 2% !important;
width: 101% !important;
width: 100% !important;
}

> div.o_inner_group.grid.col-lg-6 {
Expand Down
6 changes: 0 additions & 6 deletions stock_barcodes/views/stock_barcodes_action_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@
</field>
</record>

<record model="ir.actions.act_window" id="action_stock_barcodes">
<field name="res_model">stock.barcodes.action</field>
<field name="name">Barcodes actions</field>
<field name="view_mode">tree</field>
</record>


<!-- Main menu from scan wizard -->
<record id="action_stock_barcodes_action_kanban" model="ir.actions.act_window">
Expand Down
10 changes: 0 additions & 10 deletions stock_barcodes/views/stock_barcodes_menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,4 @@
action="stock_barcodes.action_client_stock_barcodes_menu"
groups="stock.group_stock_user"
/>

<menuitem
action="action_stock_barcodes"
id="menu_action_stock_barcodes"
groups="stock.group_stock_user"
name="Barcode actions"
parent="stock.menu_product_in_config_stock"
sequence="100"
/>

</odoo>
72 changes: 0 additions & 72 deletions stock_barcodes/wizard/stock_barcodes_read_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,78 +8,6 @@
class="oe_stock_barcordes_form h-100"
js_class="stock_barcodes_form"
>
<div
name="menu_actions"
class="text-center"
attrs="{'invisible': [('display_menu', '=', False)]}"
>
<h3 class="pt-2">Barcodes actions</h3>
<field
name="action_ids"
options="{'no_open': True}"
nolabel="1"
mode="kanban"
context="{'context_display_menu': display_menu}"
>
<tree>
<field name="name" />
</tree>
<kanban class="o_kanban_mobile">
<field name="name" />
<field name="action_window_id" />
<field name="key_shortcut" />
<field name="key_char_shortcut" />
<field name="icon_class" />
<templates>
<t t-name="kanban-box">
<div
class="oe_kanban_details oe_kanban_card_full_width pt-4 pb-4"
>
<t
t-set="shortcut"
t-value="record.key_char_shortcut"
/>
<t
t-set="hotkey"
t-value="context.context_display_menu &amp;&amp; record.key_char_shortcut.raw_value || ''"
/>
<button
name="open_action"
type="object"
class="float-end btn-full-width btn"
style="width:100%"
data-hotkey="hotkey"
>
<div class="row">
<div class="col-1">
<i
t-attf-class="text-end #{record.icon_class.raw_value}"
/>
</div>
<div class="col">
<strong>
<span>
<field name="name" />
</span>
</strong>
</div>
</div>
</button>
</div>
</t>
</templates>
</kanban>
</field>
<button
name="action_back"
type="object"
string="Back"
class="btn-secondary ms-auto oe_kanban_action_button btn-sm"
icon="fa-backward"
data-hotkey="7"
/>
</div>

<div
class="d-flex flex-column h-100"
attrs="{'invisible': [('display_menu', '=', True)]}"
Expand Down

0 comments on commit 6e54277

Please sign in to comment.