[IMP] stock_landed_costs: Replace active checkbox by stat button

Purpose
=======

Add regular stat button for 'active'/'Inactive'
This commit is contained in:
Haresh Shyara
2017-12-01 17:07:47 +01:00
committed by Yannick Tivisse
parent 047c7e2089
commit 82b1950e65
@@ -154,6 +154,11 @@
<field name="arch" type="xml">
<form string="Landed Costs">
<sheet>
<div class="oe_button_box" name="button_box">
<button name="toggle_active" type="object" groups="base.group_user" class="oe_stat_button" icon="fa-archive">
<field name="active" widget="boolean_button" options='{"terminology": "archive"}'/>
</button>
</div>
<field name="image_medium" widget="image" class="oe_avatar"/>
<div class="oe_title">
<div class="oe_edit_only">
@@ -166,10 +171,6 @@
<h2>
<field name="categ_id"/>
</h2>
<div name="options" groups="base.group_user">
<field name="active"/>
<label for="active"/>
</div>
</div>
<notebook>
<page string="Information">