openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #20848
[Bug 1083778] Re: Declared a variable of type dictionary and then try to do a + = with a variable of type string in the sale.order model
Hello ,
It has been fixed in to https://code.launchpad.net/~openerp-dev
/openobject-addons/trunk-bug-1083778-cga
Revision No:8491
Revision ID: cga@xxxxxxxxxxx-20130104093029-iaw9yvhrsqkj7on1
It will be merged soon.
Thanks
** Branch linked: lp:~openerp-dev/openobject-addons/trunk-
bug-1083778-cga
** Changed in: openobject-addons
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1083778
Title:
Declared a variable of type dictionary and then try to do a + = with a
variable of type string in the sale.order model
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
Declared a dictionary method product_id_change on line 905, then later try to do a + = with another type variable str, causing the following traceback:
Traceback (most recent call last):
File "<input>", line 1, in <module>
TypeError: unsupported operand type (s) for + =: 'dict' and 'str'
Error source:
File: sale.py
model: sale.order.line
method: product_id_change
905 warning_msgs = {}
962
963 if not pricelist:
964 warn_msg = _('You have to select a pricelist or a customer in the sales form !\n'
965 'Please set one before choosing a product.')
966 warning_msgs += _("No Pricelist ! : ") + warn_msg +"\n\n"
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1083778/+subscriptions
References