Kunal Chavda (OpenERP) has proposed merging lp:~openerp-dev/openobject-client-web/trunk-bug-741765-kch into lp:openobject-client-web.
Requested reviews: OpenERP SA's Web Client R&D (openerp-dev-web) Related bugs: Bug #741765 in OpenERP Web Client: "[trunk] selection widget and unicode" https://bugs.launchpad.net/openobject-client-web/+bug/741765 For more details, see: https://code.launchpad.net/~openerp-dev/openobject-client-web/trunk-bug-741765-kch/+merge/55331 Hello, I have changed for selection widget to support unicode value. Thanks. -- https://code.launchpad.net/~openerp-dev/openobject-client-web/trunk-bug-741765-kch/+merge/55331 Your team OpenERP SA's Web Client R&D is requested to review the proposed merge of lp:~openerp-dev/openobject-client-web/trunk-bug-741765-kch into lp:openobject-client-web.
=== modified file 'addons/openerp/widgets/form/_form.py' --- addons/openerp/widgets/form/_form.py 2011-03-02 15:23:31 +0000 +++ addons/openerp/widgets/form/_form.py 2011-03-29 13:09:16 +0000 @@ -7,7 +7,7 @@ # Developed by OpenERP (http://openerp.com) and Axelor (http://axelor.com). # # The OpenERP web client is distributed under the "OpenERP Public License". -# It's based on Mozilla Public License Version (MPL) 1.1 with following +# It's based on Mozilla Public License Version (MPL) 1.1 with following # restrictions: # # - All names, links and logos of OpenERP must be kept as in original @@ -534,7 +534,7 @@ value = value[0] for s in dict(self.options): - if str(s) == str(value): + if ustr(s) == ustr(value): value = s super(Selection, self).set_value(value) @@ -620,7 +620,7 @@ def set_value(self, value): self.widget.set_value(value) self.default = self.widget.default - + def get_sortable_text(self): """ If returns anything other then None, the return value will be used to sort the listgrid. Useful for localized data.
_______________________________________________ Mailing list: https://launchpad.net/~openerp-dev-web Post to : [email protected] Unsubscribe : https://launchpad.net/~openerp-dev-web More help : https://help.launchpad.net/ListHelp

