[IMP] rma operation form view

use the archive button in the form view, rather than
a normal boolean field.
This commit is contained in:
Alexandre Fayolle
2019-06-21 09:58:58 +02:00
committed by ahenriquez
parent 3b123ea5de
commit 3b0a371a02
2 changed files with 37 additions and 29 deletions

View File

@@ -3,7 +3,7 @@
{
'name': 'RMA (Return Merchandise Authorization)',
'version': '12.0.2.1.0',
'version': '12.0.2.2.0',
'license': 'LGPL-3',
'category': 'RMA',
'summary': 'Introduces the return merchandise authorization (RMA) process '

View File

@@ -19,13 +19,20 @@
<field name="model">rma.operation</field>
<field name="arch" type="xml">
<form string="RMA Operations">
<sheet>
<div class="oe_button_box" name="button_box">
<button name="toggle_active" type="object"
class="oe_stat_button" icon="fa-archive">
<field name="active" widget="boolean_button"
options='{"terminology": "archive"}'/>
</button>
</div>
<group colspan="4" col="2">
<group name="description"
string="Description">
<field name="code"/>
<field name="name"/>
<field name="type"/>
<field name="active"/>
<field name="company_id" groups="base.group_multi_company"/>
</group>
<group name="policies"
@@ -48,6 +55,7 @@
attrs="{'invisible':[('type', '=', 'customer')]}"/>
</group>
</group>
</sheet>
</form>
</field>
</record>