tfr (Openerp) has proposed merging lp:~openerp-dev/openobject-client/trunk-dev-client into lp:openobject-client.
Requested reviews: OpenERP sa GTK client R&D (openerp-dev-gtk) Related bugs: #491817 support for 'or' in attrs keyword https://bugs.launchpad.net/bugs/491817 #524505 New resource creation remembers the ToggleButton value(state,assigned to,etc.) of search panel https://bugs.launchpad.net/bugs/524505 #540224 Wish we could close tabs with middle-button https://bugs.launchpad.net/bugs/540224 #548932 widget="float_time" rounds off wrong value! https://bugs.launchpad.net/bugs/548932 #559788 Bug on new lines in char class when you paste from the clipboard https://bugs.launchpad.net/bugs/559788 #586252 [6.0] many2many widgets ignore default values (values not in pager_cache) https://bugs.launchpad.net/bugs/586252 #590659 Model data translation window returns lang=False for en_US https://bugs.launchpad.net/bugs/590659 #592081 Popups disappear behind main window https://bugs.launchpad.net/bugs/592081 #604604 fields.reference required https://bugs.launchpad.net/bugs/604604 #607692 Windows gtk client crashes on charts drawing https://bugs.launchpad.net/bugs/607692 #631898 [trunk] product - search by category does not return any records https://bugs.launchpad.net/bugs/631898 #650921 Graph view - Date type field order in X-axis https://bugs.launchpad.net/bugs/650921 #655266 [trunk] datatime search widget looses data https://bugs.launchpad.net/bugs/655266 #663700 "filename" attribute not preserved when used with widget="image" https://bugs.launchpad.net/bugs/663700 #673117 Update to AGPLv3 version of spiff-gtkwidget widgets https://bugs.launchpad.net/bugs/673117 #673229 [6.0RC1] export error https://bugs.launchpad.net/bugs/673229 #681142 On Linux OpenERP-Client doesn't support printing with preview disabled https://bugs.launchpad.net/bugs/681142 #681889 confirmation messages not set for translation https://bugs.launchpad.net/bugs/681889 #682735 GTK calls fields_get without context https://bugs.launchpad.net/bugs/682735 #682801 Loop looking for maintenance contract when server is broken https://bugs.launchpad.net/bugs/682801 #684308 [6.0 trunk] Close button saves the form https://bugs.launchpad.net/bugs/684308 #684667 Search view in calendar view shouldn't appear https://bugs.launchpad.net/bugs/684667 #685193 v6.0.0-rc1-1 - treeview - time format should be right adjusted https://bugs.launchpad.net/bugs/685193 #685810 Opening a second o2many field erase their content https://bugs.launchpad.net/bugs/685810 #687274 Whitespace in server name or port prevents connection https://bugs.launchpad.net/bugs/687274 #687549 [V6.Trunk] Shift+ctrl+H new tab does not work https://bugs.launchpad.net/bugs/687549 #691491 Focus in tree view doesn't follow the column https://bugs.launchpad.net/bugs/691491 #692105 (ir.actions.act_window) Action Window does not work with limit field https://bugs.launchpad.net/bugs/692105 #693322 Value of 0 is not shown in the Graph View https://bugs.launchpad.net/bugs/693322 #693474 access denied when change password in preference https://bugs.launchpad.net/bugs/693474 #693700 task calendar view does not support international characters in windows client https://bugs.launchpad.net/bugs/693700 #694914 Domain with "state" preserves the state for new record https://bugs.launchpad.net/bugs/694914 #694966 Custom Filter shows only those fields which are in list view,not all. https://bugs.launchpad.net/bugs/694966 #695952 [6rc1] button in one2many field active before saving main form https://bugs.launchpad.net/bugs/695952 #696735 Group_by : actual Active_ids are not being sent https://bugs.launchpad.net/bugs/696735 #698202 [6.0 RC2] account - journal item - switching emty list to form asks for confirmation https://bugs.launchpad.net/bugs/698202 #701298 Deleting a new, unsaved record causes ValueError https://bugs.launchpad.net/bugs/701298 #701937 [6.0 RC2] missing refresh after wizard https://bugs.launchpad.net/bugs/701937 #701962 double popup when a constraint is violated https://bugs.launchpad.net/bugs/701962 For more details, see: https://code.launchpad.net/~openerp-dev/openobject-client/trunk-dev-client/+merge/46138 -- https://code.launchpad.net/~openerp-dev/openobject-client/trunk-dev-client/+merge/46138 Your team OpenERP sa GTK client R&D is requested to review the proposed merge of lp:~openerp-dev/openobject-client/trunk-dev-client into lp:openobject-client.
=== added file 'bin/__init__.py' --- bin/__init__.py 1970-01-01 00:00:00 +0000 +++ bin/__init__.py 2011-01-13 16:13:18 +0000 @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# +############################################################################## + + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: === modified file 'bin/modules/gui/window/form.py' --- bin/modules/gui/window/form.py 2011-01-10 05:14:55 +0000 +++ bin/modules/gui/window/form.py 2011-01-13 16:13:18 +0000 @@ -265,7 +265,7 @@ def sig_remove(self, widget=None): if not self.id_get(): - msg = _('Record is not saved ! \n Do You want to Clear Current Record ?') + msg = _('Record is not saved ! \n Do you want to clear current record ?') else: if self.screen.current_view.view_type == 'form': msg = _('Are you sure to remove this record ?') @@ -299,6 +299,7 @@ if autosave: if not self.modified_save(): return + self.screen.create_new = True self.screen.new() self.message_state('') @@ -328,7 +329,7 @@ id = res if id: self.message_state(_('Document Saved.'), color="darkgreen") - elif len(self.screen.models.models): + elif len(self.screen.models.models) and res != None: common.warning(_('Invalid form, correct red fields !'),_('Error !'), parent=self.screen.current_view.window) self.message_state(_('Invalid form, correct red fields !'), color="red") if warning: @@ -400,7 +401,7 @@ } # When group by header is selected add it's children as a active_ids if group_by: - self.screen.context.update({'active_id':id, 'active_ids':ids}) + self.screen.context.update({'active_id':id, 'active_ids':ids}) if previous and self.previous_action: obj._exec_action(self.previous_action[1], data, self.screen.context) else: === modified file 'bin/widget/screen/screen.py' --- bin/widget/screen/screen.py 2011-01-11 09:07:19 +0000 +++ bin/widget/screen/screen.py 2011-01-13 16:13:18 +0000 @@ -741,7 +741,6 @@ idx = self.models.models.index(self.current_model) if not id: - lst=[] self.models.models.remove(self.models.models[idx]) self.current_model=None if self.models.models: === modified file 'bin/widget/view/form.py' --- bin/widget/view/form.py 2010-12-17 09:56:53 +0000 +++ bin/widget/view/form.py 2011-01-13 16:13:18 +0000 @@ -196,7 +196,7 @@ self.screen.save_current() id = self.screen.current_model and self.screen.current_model.id if not (id): - common.message(_('You must save this record to use the relate button !')) + common.message(_('You must save this record to use the action button !')) return False self.screen.display() data = { @@ -221,7 +221,7 @@ } obj = service.LocalService('action.main') value = obj._exec_action(act, data, context) - if type in ('print', 'action'): + if type in ('print', 'action') or type == 'relate' and act.get('target') == 'new': self.screen.reload() return value @@ -302,7 +302,7 @@ def __getitem__(self, name): return self.widgets[name] - def destroy(self): + def destroy(self): self.widget.destroy() for widget in self.widgets.keys(): self.widgets[widget].widget.destroy() === modified file 'bin/widget/view/form_gtk/image.py' --- bin/widget/view/form_gtk/image.py 2010-12-14 05:44:19 +0000 +++ bin/widget/view/form_gtk/image.py 2011-01-13 16:13:18 +0000 @@ -166,13 +166,20 @@ self.update_img() def update_img(self): + data = NOIMAGE if not self._value: if self._set_required_img: - data = REQUIRED_IMG - else: - data = NOIMAGE + data = REQUIRED_IMG else: - data = decodestring(self._value) + try: + data = decodestring(self._value) + except: + import logging + log = logging.getLogger('common') + log.warning(_('Image corrupted')) + + + pixbuf = None for type in ('jpeg', 'gif', 'png', 'bmp'): === modified file 'doc/INSTALL' --- doc/INSTALL 2008-09-01 04:57:13 +0000 +++ doc/INSTALL 2011-01-13 16:13:18 +0000 @@ -9,15 +9,15 @@ You need the following software installed: - - Python 2.3 or above - - GTK2.4 for python2.3 - - Glade2 for python2.3 + - Python 2.5 or above + - GTK2.4 for python2.5 + - Glade2 for python2.5 - Xpdf viewer or Acrobat Reader For Debian-based distributions you may install the required packages using the following command: - apt-get install python2.3 python2.3-gtk2 python2.3-glade2 xpdf + apt-get install python2.5 python2.5-gtk2 python2.5-glade2 xpdf For RedHat-based distributions you need to install the followong packages:
_______________________________________________ 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

