[IMP] is_product_variant not needed in most views + no delete in stock valuation...
authorJosse Colpaert <jco@odoo.com>
Tue, 5 Aug 2014 13:16:53 +0000 (15:16 +0200)
committerJosse Colpaert <jco@odoo.com>
Tue, 12 Aug 2014 11:37:26 +0000 (13:37 +0200)
addons/account/product_view.xml
addons/product_email_template/views/product_view.xml
addons/stock_account/wizard/stock_valuation_history_view.xml

index 44b9099..e88a45a 100644 (file)
                         </group>
                         <group name="properties">
                             <group>
-                                <field name="property_account_income" domain="[('type','=','other')]" groups="account.group_account_user"
-                                    attrs="{'readonly': [('is_product_variant', '=', True)]}"/>
+                                <field name="property_account_income" domain="[('type','=','other')]" groups="account.group_account_user"/>
                                 <field name="taxes_id" colspan="2" widget="many2many_tags"
                                     attrs="{'readonly':[('sale_ok','=',0)]}"/>
                             </group>
                             <group>
-                                <field name="property_account_expense" domain="[('type','=','other')]" groups="account.group_account_user"
-                                    attrs="{'readonly': [('is_product_variant', '=', True)]}"/>
-                                <field name="supplier_taxes_id" colspan="2" widget="many2many_tags"
-                                    attrs="{'readonly': [('is_product_variant', '=', True)]}"/>
+                                <field name="property_account_expense" domain="[('type','=','other')]" groups="account.group_account_user"/>
+                                <field name="supplier_taxes_id" colspan="2" widget="many2many_tags"/>
                             </group>
                         </group>
                     </page>
index 3c98d8f..31cf5f5 100644 (file)
@@ -15,7 +15,6 @@
                             'default_subject': name,
                             'default_name': name,
                         }"
-                        attrs="{'invisible': [('is_product_variant', '=', False)]}"
                     />
                 </field>
             </field>
index 6343aee..ea2450e 100644 (file)
@@ -42,7 +42,7 @@
         <field name="name">Stock Value At Date</field>
         <field name="model">stock.history</field>
         <field name="arch" type="xml">
-            <tree string="Stock Value At Date" create="0">
+            <tree string="Stock Value At Date" create="0" delete="0">
                 <field name="location_id" invisible="1"/>
                 <field name="product_id" invisible="1"/>
                 <field name="move_id"/>