[FIX] stock: Never hide the invoice control on pickings
authorLoïc Bellier <lb@numerigraphe.com>
Fri, 31 Oct 2014 14:07:08 +0000 (15:07 +0100)
committerMartin Trigaux <mat@odoo.com>
Fri, 28 Nov 2014 16:55:48 +0000 (17:55 +0100)
Invoice control field was invisible, and we cannot change value if none selected or copy picking in.
Fixes #3636

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>