Rifakat (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-50626-rha into
lp:openobject-addons/6.0.
Requested reviews:
nel (nel-tinyerp)
Related bugs:
Bug #752876 in OpenERP Addons: "The field account_id has a wrong domain in
account move line tree view"
https://bugs.launchpad.net/openobject-addons/+bug/752876
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-50626-rha/+merge/83001
Hello,
The field account_id has a wrong domain in account move line tree view. Does
not consider journal selected from the search view.
Fix is backported from trunk 5024
Regards,
Rifakat
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-50626-rha/+merge/83001
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-50626-rha.
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py 2011-10-24 07:25:44 +0000
+++ account/account_move_line.py 2011-11-22 11:03:59 +0000
@@ -1016,7 +1016,7 @@
attrs.append("context=\"{'journal_id': journal_id}\"")
elif field == 'account_id' and journal.id:
- attrs.append('domain="[(\'journal_id\', \'=\', '+str(journal.id)+'),(\'type\',\'<>\',\'view\'), (\'type\',\'<>\',\'closed\')]" on_change="onchange_account_id(account_id, partner_id)"')
+ attrs.append('domain="[(\'journal_id\', \'=\', journal_id),(\'type\',\'<>\',\'view\'), (\'type\',\'<>\',\'closed\')]" on_change="onchange_account_id(account_id, partner_id)"')
elif field == 'partner_id':
attrs.append('on_change="onchange_partner_id(move_id, partner_id, account_id, debit, credit, date, journal_id)"')
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp