Skip to content
Snippets Groups Projects
Commit 2ef96ee8 authored by Pierre Masereel's avatar Pierre Masereel
Browse files

[FIX] stock_account: valuation layer access rights

When we try to validate a pos session without beinig administrator, we
don't have access rights on the valuation layer.

So we've extended this rev: 7ef11e3c
parent 690f4575
Branches
Tags
No related merge requests found
......@@ -570,6 +570,7 @@ class ProductProduct(models.Model):
self.ensure_one()
candidates = stock_moves\
.sudo()\
.mapped('stock_valuation_layer_ids')\
.sorted()
qty_to_take_on_candidates = qty_to_invoice
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment