[FIX] Restrict button_cancel

This commit is contained in:
mreficent
2017-10-20 10:33:10 +02:00
committed by Matt Taylor
parent 24826a53a2
commit 196b36db9a
2 changed files with 8 additions and 2 deletions

View File

@@ -44,11 +44,16 @@ Usage
select the records in the tree view and go to
*Action / Post Inventory Revaluations*.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/153/10.0
Known issues / Roadmap
======================
* It is not possible to cancel inventory revaluations for products set with
average or standard price.
Bug Tracker
===========

View File

@@ -16,7 +16,8 @@
class="oe_highlight"/>
<button name="button_cancel" states="draft,posted"
string="Cancel" type="object"
class="oe_highlight"/>
class="oe_highlight"
attrs="{'invisible':[('cost_method','in',['average','standard'])]}"/>
<field name="state" widget="statusbar"
statusbar_visible="draft,done,cancel"
statusbar_colors='{"done":"blue"}'/>