Bhumi Thakkar (Open ERP) has proposed merging
lp:~openerp-dev/openerp-web/6.1-opw-574891-bth into lp:openerp-web/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574891-bth/+merge/110045
Hello,
"Unpaid Invoices" link does not displayed current journal in selection field.
1. Accounting => Configuration => Financial Accounting => Journals => Journals
2. Select any journal from checkbox OR Open any journal
3. Click on "Unpaid Invoices" in Links.
Observed: "Not displayed as a selected journal in journal selection field in
Search View."
Expected: "Displayed as a selected journal in journal selection field in Search
View."
In Selection field class,in render function defaults values got.
Check type of default values is object?
If type is object then for that default value pass first index value.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openerp-web/6.1-opw-574891-bth/+merge/110045
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openerp-web/6.1-opw-574891-bth.
=== modified file 'addons/web/static/src/js/search.js'
--- addons/web/static/src/js/search.js 2012-06-05 05:54:15 +0000
+++ addons/web/static/src/js/search.js 2012-06-13 11:31:56 +0000
@@ -923,6 +923,11 @@
* @param {Object} defaults search default values
*/
render: function (defaults) {
+ _(defaults).each( function (i, j) {
+ if (typeof(i) == 'object') {
+ defaults[j] = i[0];
+ }
+ });
if (!defaults[this.attrs.name]) {
defaults[this.attrs.name] = false;
}
_______________________________________________
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