Skip to content

Commit

Permalink
[FIX] stock_barcodes: Confirm button not displayed with is_manual_qty…
Browse files Browse the repository at this point in the history
… check

TT52251
  • Loading branch information
carlosdauden authored and sergio-teruel committed Jan 8, 2025
1 parent 57e1685 commit fe2f4c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions stock_barcodes/tests/test_stock_barcodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ def _create_barcode_option_group(cls):
def action_barcode_scanned(self, wizard, barcode):
wizard._barcode_scanned = barcode
wizard._on_barcode_scanned()
# Method to call all methods outside of onchange environment for pickings read
if wizard._name != "wiz.stock.barcodes.new.lot":
wizard.dummy_on_barcode_scanned()

def test_wizard_scan_location(self):
self.action_barcode_scanned(self.wiz_scan, "8411322222568")
Expand Down
2 changes: 1 addition & 1 deletion stock_barcodes/wizard/stock_barcodes_read_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@
name="action_confirm"
type="object"
class="btn-success ml-auto oe_kanban_action_button btn-sm pl-3 pr-3"
attrs="{'invisible': ['|', '|','&', ('is_manual_confirm', '=', False), ('manual_entry', '=', False), ('display_menu', '=', True), ('visible_force_done', '=', True)]}"
attrs="{'invisible': ['|', '|','&', '&', ('is_manual_confirm', '=', False), ('manual_entry', '=', False), ('is_manual_qty', '=', False), ('display_menu', '=', True), ('visible_force_done', '=', True)]}"
data-hotkey="8"
>
<i class="fa fa-check" title="Confirm" />
Expand Down

0 comments on commit fe2f4c4

Please sign in to comment.