diff --git a/sale_order.py b/sale_order.py index 5417df2..4575b70 100644 --- a/sale_order.py +++ b/sale_order.py @@ -60,11 +60,6 @@ class SaleOrder (Workflow, ModelView, ModelSQL): ('draft', 'confirmed'), )) - @classmethod - @ModelView.button - def draft(cls, orders): - pass - @classmethod @ModelView.button @Workflow.transition('confirmed') diff --git a/sale_order.xml b/sale_order.xml index 3eeb624..9fe61b5 100644 --- a/sale_order.xml +++ b/sale_order.xml @@ -39,20 +39,16 @@ this repository contains the full copyright notices and license terms. --> - - - Order - - - Sale Order Number Sequence - - SO - 5 - + draft Draft sale.order + + + confirm + Confirm + sale.order Draft @@ -61,13 +57,8 @@ this repository contains the full copyright notices and license terms. --> eval="[('state', '=', 'draft')]" pyson="1"/> - + - - confirm - Confirm - sale.order - Confirm @@ -75,13 +66,22 @@ this repository contains the full copyright notices and license terms. --> eval="[('state', '=', 'confirmed')]" pyson="1"/> - + - - + + Order + + + Sale Order Number Sequence + + SO + 5 + + diff --git a/view/order_form.xml b/view/order_form.xml index ae6a24d..6f32923 100644 --- a/view/order_form.xml +++ b/view/order_form.xml @@ -19,7 +19,6 @@ this repository contains the full copyright notices and license terms. -->