[Erp5-dev] getQuantityPrecision is not always defined on object
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Tue Jul 17 12:38:12 CEST 2007
Hello,
While access account_module on my site I've got AttributeError:
getQuantityPrecision:
Module Products.ERP5Type.Base, line 2678, in
cached_getQuantityPrecisionFromResource 2676 | resource_value =
self.portal_categories.resolveCategory(resource) 2677 | if
resource_value is not None:
2678>| return resource_value.getQuantityPrecision()
2679 | return 0
2680 |
Is attached fix good backward-compatibility workaround?
Regards,
Luke
--
Łukasz Nowak R&D Ventis http://www.ventis.com.pl/
tel: +48 32 768 16 85 fax: +48 32 392 10 61
``Use the Source, Luke...''
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Base.py-getQuantityPrecision-not-always-defined.patch
Type: text/x-patch
Size: 521 bytes
Desc: not available
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20070717/1f852ecb/attachment.bin>
More information about the Erp5-dev
mailing list