stock_usability: improve display of reservations

mrp_usability: disable change in view to fix a bug
This commit is contained in:
Alexis de Lattre
2022-10-29 21:45:02 +02:00
parent 70957e8404
commit 5c14e3199e
3 changed files with 9 additions and 2 deletions

View File

@@ -16,7 +16,8 @@ class StockQuant(models.Model):
action = self.env["ir.actions.actions"]._for_xml_id(
"stock.stock_move_line_action")
action['domain'] = [
('state', 'not in', ('draft', 'done')),
('state', 'not in', ('draft', 'done', 'cancel')),
('reserved_uom_qty', '!=', 0),
('product_id', '=', self.product_id.id),
('location_id', '=', self.location_id.id),
('lot_id', '=', self.lot_id.id or False),