Skip to content

Commit

Permalink
Merge pull request #151 from Nitrokey/15.0-fix-mrp-production-access-…
Browse files Browse the repository at this point in the history
…error

[FIX] Fix stock_tracking_validation mrp.production access error
  • Loading branch information
jans23 authored Dec 8, 2023
2 parents ff79be8 + 4651fea commit f65748a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions stock_tracking_validation/models/mrp_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ def open_stock_tracking_wizard(self):
)
if not production_line_has_lot:
return self.button_mark_done()
action = self.env.ref(
"stock_tracking_validation.action_product_stock_validation"
).read()[0]
action = (
self.env.ref("stock_tracking_validation.action_product_stock_validation")
.sudo()
.read()[0]
)
product_data = """<table class="table table-sm w-50 table-bordered
table-striped table-hover m-2">
<thead class="thead-light"">
Expand Down

0 comments on commit f65748a

Please sign in to comment.