[FIX] Re-Enabled currency button feature for invoices.
authorTejas Tank <tta@openerp.com>
Thu, 14 Feb 2013 12:07:28 +0000 (17:37 +0530)
committerTejas Tank <tta@openerp.com>
Thu, 14 Feb 2013 12:07:28 +0000 (17:37 +0530)
bzr revid: tta@openerp.com-20130214120728-xncs05o9pmc6618c

addons/account/account_invoice_view.xml

index 6cca8e0..047f19b 100644 (file)
                                 name="account_id" groups="account.group_account_user"/>
                             <field name="journal_id" groups="account.group_account_user"
                                 on_change="onchange_journal_id(journal_id, context)" widget="selection"/>
-                            <field name="currency_id" groups="base.group_multi_currency"/>
+                            <label for="currency_id" groups="base.group_multi_currency"/>
+                            <div groups="base.group_multi_currency">
+                                <field name="currency_id" class="oe_inline" readonly="1"/>
+                                <button name="223" type="action" class="oe_inline oe_link oe_edit_only" 
+                                    string="(change)" 
+                                    attrs="{'invisible':[('state','!=','draft')]}" 
+                                    groups="account.group_account_user"/>
+                            </div>
                             <field name="check_total" groups="account.group_supplier_inv_check_total"/>
                         </group>
                     </group>
 
                             <label for="currency_id" groups="base.group_multi_currency"/>
                             <div groups="base.group_multi_currency">
-                                <field name="currency_id" class="oe_inline"/>
-                                <!-- note fp: I don't think we need this feature ?
-                                <button name="%(action_account_change_currency)d" type="action"
-                                  icon="terp-stock_effects-object-colorize"
+                                <field name="currency_id" class="oe_inline" readonly="1"/>
+                                <button name="%(action_account_change_currency)d" type="action" 
+                                  class="oe_inline oe_link oe_edit_only"
+                                  string="(change)"
                                   attrs="{'invisible':[('state','!=','draft')]}"
-                                  groups="account.group_account_user"/> -->
+                                  groups="account.group_account_user"/>
                             </div>
                         </group>
                     </group>