[FIX]: Never hide the invoice control on pickings
authorLoïc Bellier <lb@numerigraphe.com>
Fri, 31 Oct 2014 14:07:08 +0000 (15:07 +0100)
committerLionel Sausin (Numérigraphe) <ls@numerigraphe.com>
Fri, 31 Oct 2014 14:14:17 +0000 (15:14 +0100)
Invoice control field was invisible, and we cannot change value if none selected or copy picking in.
v8 is already working this way.

addons/stock/stock_view.xml

index 6a58107..74d9c76 100644 (file)
                         <group>
                             <field name="partner_id" on_change="onchange_partner_in(partner_id)"/>
                             <field name="backorder_id" readonly="1" attrs="{'invisible': [('backorder_id','=',False)]}"/>
-                            <field name="invoice_state" string="Invoice Control" groups="account.group_account_invoice" attrs="{'invisible':[('invoice_state', '=', 'none')]}"/>
+                            <field name="invoice_state" string="Invoice Control" groups="account.group_account_invoice"/>
                             <field name="stock_journal_id" widget="selection" groups="account.group_account_user"/>
                         </group>
                         <group>