[Erp5-dev] getQuantityPrecision is not always defined on object
Łukasz Nowak
lukasz.nowak at ventis.com.pl
Fri Jul 20 10:09:11 CEST 2007
Hello,
On 2007-07-20, 09:45:55
Jerome Perrin <jerome at nexedi.com> wrote:
> Łukasz Nowak a écrit :
> > 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 |
> >
>
> Hello,
>
> Can you still check what is resource here, and what is the
> portal_type of resource_value ?
It was account_module/2 <Account 2>.
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...''
More information about the Erp5-dev
mailing list