summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2015-09-10 16:12:50 +0200
committerRaphael Collet <rco@openerp.com>2015-09-11 09:46:53 +0200
commit60898513bd94c3a4cc4ffdff7d852a5c89592df4 (patch)
treeeb35502f2a3eabcf9a89d32f997825a35e4464d1
parent27587a5e8ed28caa413d8f5ec1bffbebf660d54f (diff)
[IMP] product: add archive button on pricelists
-rw-r--r--addons/product/pricelist_view.xml20
1 files changed, 11 insertions, 9 deletions
diff --git a/addons/product/pricelist_view.xml b/addons/product/pricelist_view.xml
index b7158d0163d..e8a4154aa73 100644
--- a/addons/product/pricelist_view.xml
+++ b/addons/product/pricelist_view.xml
@@ -87,8 +87,8 @@
<field name="arch" type="xml">
<search string="Products Price Search">
<field name="name" string="Products Price"/>
- <field name="active"/>
<field name="currency_id" groups="base.group_multi_currency"/>
+ <filter string="Archived" name="inactive" domain="[('active','=',False)]"/>
</search>
</field>
</record>
@@ -110,19 +110,21 @@
<field name="arch" type="xml">
<form string="Products Price List">
<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>
<div class="oe_title">
<h1>
<field name="name" placeholder="e.g. USD Retailers"/>
</h1>
</div>
- <group col="4">
- <group>
- <field name="active"/>
- </group>
- <group>
- <field name="currency_id" groups="base.group_multi_currency"/>
- <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
- </group>
+ <group>
+ <field name="currency_id" groups="base.group_multi_currency"/>
+ <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
</group>
<div groups="product.group_pricelist_item">
<separator string="Pricelist Items"/>