← Back to team overview

clearcorp team mailing list archive

[Branch ~banking-addons-team/banking-addons/6.1] Rev 154: [FIX] Cannot select manual move line in matching wizard. This is a workaround for web client issu...

 

Merge authors:
  Stefan Rijnhart (Therp) (stefan-therp)
Related merge proposals:
  https://code.launchpad.net/~therp-nl/banking-addons/ba61-lp1073521_force_alternative_move_line_tree_view/+merge/143043
  proposed by: Stefan Rijnhart (Therp) (stefan-therp)
  review: Approve - Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
------------------------------------------------------------
revno: 154 [merge]
author: Stefan Rijnhart <stefan@xxxxxxxx>
committer: Guewen Baconnier <guewen.baconnier@xxxxxxxxxxxxxx>
branch nick: banking-addons
timestamp: Mon 2013-01-14 12:04:51 +0100
message:
  [FIX] Cannot select manual move line in matching wizard. This is a workaround for web client issue lp:1073521, "cannot select many2one value if tree view is editable"
modified:
  account_banking/wizard/banking_transaction_wizard.xml


--
lp:banking-addons
https://code.launchpad.net/~banking-addons-team/banking-addons/6.1

Your team CLEARCORP development team is subscribed to branch lp:banking-addons.
To unsubscribe from this branch go to https://code.launchpad.net/~banking-addons-team/banking-addons/6.1/+edit-subscription
=== modified file 'account_banking/wizard/banking_transaction_wizard.xml'
--- account_banking/wizard/banking_transaction_wizard.xml	2012-02-25 01:15:48 +0000
+++ account_banking/wizard/banking_transaction_wizard.xml	2013-01-13 14:11:44 +0000
@@ -93,7 +93,21 @@
                             </page>
                             <page string="Manual match">
                                 <field name="manual_invoice_id"/>
-                                <field name="manual_move_line_id"/>
+                                <!-- 
+                                     Specify alternative tree_view_ref as a
+                                     workaround for lp:1073521 in OpenERP 6.1
+                                     Need to also define 'view_mode' to prevent
+                                     an instant editable tree view
+                                     reconstruction by account.move.line's
+                                     fields_view_get().
+                                     Both are not needed in OpenERP 6.0 or 7.0.
+                                -->
+                                <field name="manual_move_line_id"
+                                       context="{
+                                                'tree_view_ref': 'account.view_move_line_tax_tree',
+                                                'view_mode': 'yes'
+                                                }"
+                                       />
                                 <newline/>
                                 <button colspan="1"
                                         name="trigger_write"