openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17587
[Bug 1076945] [NEW] sale tab and procurement tab should be invisible depending on purchase_ok and sale_ok
Public bug reported:
This is a small usability concern:
Products have a Tab for "Procurement" and a Tab for "Sale".
They also know if they can be purchased (with the ``purchase_ok`` boolean), and sold (with the ``sale_ok``).
Why the "Sale" tab keeps showing on product that are not to be sold ?
Why the "Procurement" tab keeps showing on product that are not to be purchased ?
This should correct the behavior:
diff --git a/product/product_view.xml b/product/product_view.xml
index 028e416..ec3529c 100644
--- a/product/product_view.xml
+++ b/product/product_view.xml
@@ -98,7 +98,7 @@
</group>
<field name="description" placeholder="describe the product's characteristics for internal use..."/>
</page>
- <page string="Procurements" groups="base.group_user">
+ <page string="Procurements" groups="base.group_user" attrs="{'invisible': [('purchase_ok', '=', 0)]}">
<group name="procurement">
<group name="general">
<field name="cost_method" groups="product.group_costing_method"/>
@@ -124,7 +124,7 @@
</group>
</group>
</page>
- <page string="Sales" attrs="{'readonly':[('sale_ok','=',0)]}">
+ <page string="Sales" attrs="{'readonly':[('sale_ok','=',0)], 'invisible': [('sale_ok', '=', 0)]}">
<group name="sale">
<group string="Sale Conditions">
<label for="warranty"/>
If this is not correct, please take the time to comment why. Thank you.
** Affects: openobject-addons
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1076945
Title:
sale tab and procurement tab should be invisible depending on
purchase_ok and sale_ok
Status in OpenERP Addons (modules):
New
Bug description:
This is a small usability concern:
Products have a Tab for "Procurement" and a Tab for "Sale".
They also know if they can be purchased (with the ``purchase_ok`` boolean), and sold (with the ``sale_ok``).
Why the "Sale" tab keeps showing on product that are not to be sold ?
Why the "Procurement" tab keeps showing on product that are not to be purchased ?
This should correct the behavior:
diff --git a/product/product_view.xml b/product/product_view.xml
index 028e416..ec3529c 100644
--- a/product/product_view.xml
+++ b/product/product_view.xml
@@ -98,7 +98,7 @@
</group>
<field name="description" placeholder="describe the product's characteristics for internal use..."/>
</page>
- <page string="Procurements" groups="base.group_user">
+ <page string="Procurements" groups="base.group_user" attrs="{'invisible': [('purchase_ok', '=', 0)]}">
<group name="procurement">
<group name="general">
<field name="cost_method" groups="product.group_costing_method"/>
@@ -124,7 +124,7 @@
</group>
</group>
</page>
- <page string="Sales" attrs="{'readonly':[('sale_ok','=',0)]}">
+ <page string="Sales" attrs="{'readonly':[('sale_ok','=',0)], 'invisible': [('sale_ok', '=', 0)]}">
<group name="sale">
<group string="Sale Conditions">
<label for="warranty"/>
If this is not correct, please take the time to comment why. Thank you.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1076945/+subscriptions
Follow ups
References