From e97f7eb78f8b7064cd96d3df2a945d4179a12345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Sat, 26 Sep 2015 21:19:37 +0200 Subject: [PATCH] Add buttons on stock move form & list issue3945 review8991002 --- CHANGELOG | 1 + move.py | 2 ++ view/move_form.xml | 4 ++++ view/move_tree.xml | 3 +++ 4 files changed, 10 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 4622de6a0c..f6350b5f73 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,4 @@ +* Add buttons on stock move form & list * Allow to use view location on staging and draft moves * Add picking location on warehouse * Always compute expected quantity in inventory diff --git a/move.py b/move.py index de9d098025..735ab6b08c 100644 --- a/move.py +++ b/move.py @@ -287,9 +287,11 @@ class Move(Workflow, ModelSQL, ModelView): cls._buttons.update({ 'cancel': { 'invisible': ~Eval('state').in_(['draft', 'assigned']), + 'readonly': Eval('shipment'), }, 'draft': { 'invisible': ~Eval('state').in_(['assigned']), + 'readonly': Eval('shipment'), }, 'assign': { 'invisible': ~Eval('state').in_(['assigned']), diff --git a/view/move_form.xml b/view/move_form.xml index fe311d8fde..cf583ee3eb 100644 --- a/view/move_form.xml +++ b/view/move_form.xml @@ -27,6 +27,10 @@ this repository contains the full copyright notices and license terms. -->